Commands and Permissions
Main Commands
/svar set <variable> <value> <player> (optional)silent:true
Sets the value to the variable.
You can also set a value with spaces:
/svar set <variable> "value with spaces" <player>
/svar get <variable> <player>
Gets the value of the variable.
/svar add <variable> <value> <player> (optional)silent:true
Adds a value to a variable, only if the variable value type is set to INTEGER or DOUBLE.
/svar reduce <variable> <value> <player> (optional)silent:true
Reduces the value of a variable, only if the variable value type is set to INTEGER or DOUBLE.
/svar reset <variable> <player>/* (optional)silent:true
Resets the value of a variable to the default/initial value. * means all players.
/svar reload
Reloads the config.
List Commands
When you want to access or modify LIST variables you must use these commands instead.
/svar list get <variable> <index> <player>
Gets the value at a certain index of the list.
/svar list set <variable> <index> <value> <player>
Sets a new value on a certain index of the list.
/svar list add <variable> <value> <player>
Adds a new value to the end of the list.
/svar list removeindex <variable> <index> <player>
Removes the element at the specified index from the list.
/svar list removevalue <variable> <value> <player>
Removes the first occurrence of the value from the list.
/svar list reset <variable> <player>/*
Resets the value of the list to the default/initial value.
/svar list display <variable> <player>
Displays all the elements of the list.
Permissions
servervariables.admin
Grants access to all plugin commands.
Last updated