What can I do with ServerVariables?
This plugin allows you to create your own variables for the server and players, meaning you have total control on which values you set. Variables are modified through commands, and you can obtain them by using the /svar get <variable> command or via PlaceholderAPI.
Some examples of what you can do with the plugin:
- An economy system, creating multiple currencies.
- A portal that has an on/off status.
- Custom player points system.
- Set a number of infractions to a player when they do something wrong.
- A life system, tracking when the player dies and reducing the amount of lives the player has (Using my plugin ConditionalEvents).
Features:
✓ Create player variables
✓ Create global (or server) variables
✓ Value type for variables: TEXT, INTEGER, DOUBLE
✓ Possible values for variables
✓ Possible display values for variables
✓ Initial value for variables
✓ Commands to set/get/increment/reduce/reset a certain variable for the player or the server
✓ Easy to configure
✓ PlaceholderAPI support to display variable values wherever you want.
✓ Developer API
✓ Works with 1.8+
✓ MySQL
Commands:
(The player parameter is only necessary when the specified variable type is set to PLAYER. You can add silent:true to the end of a command to hide the information message)
- /svar set <variable> <value> (optional)<player> (optional)silent:true (Sets the value of a variable)
- /svar get <variable> (optional)<player> (optional)silent:true (Gets the value from a variable)
- /svar add <variable> <value> (optional)<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> (optional)<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> (optional)<player> (optional)silent:true (Resets the value of a variable)
- /svar reload (Reloads the configuration) (Alias: /servervariables)