
ServerVariables
Create your own player (and server) variables and manage their values using commands!
-Added retain_player_data_until_restart option to the config. When enabled, data of players that join the server will be maintained in memory until the server restarts, meaning gets/sets of variables will be possible to do if the player has disconnected.
-Added %servervariables_list_values_
% PlaceholderAPI variable to show all the set values from a player list. -Added %servervariables_list_globalvalues_
% PlaceholderAPI variable to show all the set values from a global list. -Added variables.list_values_separator configuration to modify the separator used in the previous variables.
-Modified: Small improvement when loading player data before joining the server.
-Added compatibility with 26.1
-Added: Optimized player data loading. Now, the plugin will not load all player data into memory, and instead, only when they join the server. This comes with some restrictions on the /svar reset command, more info in the wiki.
-Fixed /svar list display command format when mini message is enabled.
-Added compatibility with 1.21.11
-Added MiniMessage support. You can now use MiniMessage format for every text/message in the plugin by enabling the option in the config.
-Fixed wrong value being returned in %servervariables_display_otherplayer_
: % PlaceholderAPI variable. -Added compatibility with 1.21.9
IMPORTANT UPDATE!
ServerVariables is updated to version 3.x with a new variable type: LISTS. A big update that allows the creation of list variables with many elements, that can be accessed through commands and PlaceholderAPI variables.
This update also include the following:
- Vast changes on the API: Separation between Normal variable and List variable (if you are using the API, you'll need to make changes when updating)
- Data access/storage optimization.
-Added manage_out_of_range property to variable limitations. If this option is set to true, when changing the variable's value, to something that is outside the max/min limits, the out of range error will disappear and instead, the limit will be used as the new value.
-Modified config file code and access.
Some changes were made on the file management system on the plugin, so I recommend you make a backup of your plugin files.
-Added compatibility with 1.21.8.
-Added %servervariables_initial_value_
% PlaceholderAPI variable. -Added update_notify option in the config to enable/disable join notifications when there is a new version.
-Added new methods to the API.
-Fixed and updated some dependencies
-Fixed API issues.
-Added compatibility with 1.21.7
-Fixed HEX colors in 1.21 versions.
-Added multiple new parameters to MySQL config to customize the connection with your needs.
-Added max_decimals limitation to Double type variables.
-Added: Optimized player data storage.
-Fixed issue with Integer values not supporting long numbers.
-Added getOldValue() method to the VariableChangeEvent on he API.
-Fixed issue on database connection regarding UUID column.
-Fixed issue on database connection regarding public key retrieval.
-Added compatibility with 1.21.
-Added: Increased performance when getting variables and having big amounts of player data.
-Fixed important lag when saving players.
-Fixed issue when trying to get data from a corrupted player data file.
-Modified: /svar reset
all command is now /svar reset * -Fixed important lag issue when loading data while having MySQL enabled.
-Added /svar reset
all command, to reset a variable for all players. -Added max characters length limitation for variables.
-Modified PlaceholderAPI variable %servervariables_value_otherplayer_
% to %servervariables_value_otherplayer : % -Modified PlaceholderAPIvariable %servervariables_display_otherplayer_
% to %servervariables_display_otherplayer : %