[SKUNGEE] Global coinsystem and firstjoin skript help {GER/EN}

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Allesco

New Member
Feb 2, 2018
6
0
0
21
Germany, Lower Saxony
Hello,

I have two problems now.
I want two scripts with "Skungee".


_____________________
First problem: I want to create a script to broadcast a message to all players connected to the bungeecord server:

code_language.skript:
on first join:
    if network variable {firstjoin.%player%} is set:
        stop
    else:
        wait 1 tick
        set network variable {firstjoin.%player%} to 1
        add 1 to network variable {logins}
        set {_logins} to network variable {logins}
        wait 1 tick
        set network variable {broadcastnew} to "&8%nl%&8┃ &2MatrixMC&7.&aDE &8┃  &e%player% &aist neu! &8[&7%{_logins}%&8]%nl%&8"
        set {_broadcastnew} to network variable {broadcastnew}
        wait 1 tick
        skungee message {broadcastnew} to bungee all players
        stop

What did I wrong? :O

_____________________

second problem: I want to create a global coinsystem.

code_language.skript:
command /globalcoins:
    aliases: /gc
    trigger:
        set {_coins.%player%} to network variable {coins.%player%}
        message "&7Deine globalen Coins&8: &e%{_coins.%player%}%"
        stop

code_language.skript:
on join:
    if network variable {coins.%player%} is not set:
        set network variable {coins.%player%} to 0

code_language.skript:
command /§belohnung:
            add 200 to network variable {coins.%player%}

when I type /gc to get my coins the number is always "0". What can I do?

Thank you for your help!

regards,

Allesco | Timon
 
Status
Not open for further replies.