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:
What did I wrong? :O
_____________________
second problem: I want to create a global coinsystem.
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
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