Commands and Permissions
Main Commands
For commands used to modify variables, the player parameter is only necessary when the specified variable type is set to PLAYER.
For commands that modify player variables: The player must be online.
You can add
silent:trueto the end of a command to hide the information/feedback message.Command alias:
/servervariables
/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.
(This will also modify offline player files, and there is no need for players to be online)
/svar reload
Reloads the config.
List Commands
When you want to access or modify LIST variables you must use these commands instead.
The first element of a list will always be INDEX 0.
The silent:true parameter works as well as in the main commands.
/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. * means all players.
(This will also modify offline player files, and there is no need for players to be online)
/svar list display <variable> <player>
Displays all the elements of the list.
Permissions
servervariables.admin
Grants access to all plugin commands.
Last updated