1. 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!


    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by Allesco, Feb 12, 2018.

Thread Status:
Not open for further replies.
  1. Allesco

    Allesco Member

    Feb 2, 2018
    Likes Received:

    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 (Skript):
    1. on first join:
    2.     if network variable {firstjoin.%player%} is set:
    3.         stop
    4.     else:
    5.         wait 1 tick
    6.         set network variable {firstjoin.%player%} to 1
    7.         add 1 to network variable {logins}
    8.         set {_logins} to network variable {logins}
    9.         wait 1 tick
    10.         set network variable {broadcastnew} to "&8%nl%&8┃ &2MatrixMC&7.&aDE &8┃  &e%player% &aist neu! &8[&7%{_logins}%&8]%nl%&8"
    11.         set {_broadcastnew} to network variable {broadcastnew}
    12.         wait 1 tick
    13.         skungee message {broadcastnew} to bungee all players
    14.         stop
    What did I wrong? :O


    second problem: I want to create a global coinsystem.

    Code (Skript):
    1. command /globalcoins:
    2.     aliases: /gc
    3.     trigger:
    4.         set {_coins.%player%} to network variable {coins.%player%}
    5.         message "&7Deine globalen Coins&8: &e%{_coins.%player%}%"
    6.         stop
    Code (Skript):
    1. on join:
    2.     if network variable {coins.%player%} is not set:
    3.         set network variable {coins.%player%} to 0
    Code (Skript):
    1. command /§belohnung:
    2.             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!


    Allesco | Timon
Thread Status:
Not open for further replies.