Global variables
Global variables are something new in BungeeSK (1.1.0). You will learn here how to use them aswell.
What's a global variable ?
First , a global variable is stored on the Bungeecord server, in the /plugins/BungeeSK/variables.json
file. It is stored with a key and a value, with key as a string and value as string, number or boolean.
Setting a global variable
You can create a global variable like this:
set global variable "money.%player%" to 100
Getting a global variable
set {_money} to global variable "money.%player%"
send "You have %{_money}%$ on your account !" to player
if {_money} >= 1000:
set {vip::%player%} to true
Last updated
Was this helpful?