All Mods Resource Packs Data Packs Shaders Modpacks Plugins
ServerVariables

ServerVariables

by Ajneb97 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

FULL WIKI ON THIS LINK:

https://ajneb97.gitbook.io/servervariables/

DISCORD SUPPORT:

(This is a Spanish Discord, however there is a category for both spanish and english support. Go to the "Plugins Ajneb97" category and there you can ask for help in the "general" channel. If you need MY help specifically, then ask me in the discussion of the plugin here on SpigotMC) CLICK HERE

SPIGOTMC POST:

CLICK HERE

IMAGE TRANSCRIPTION

IMAGE TRANSCRIPTION

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 command or via PlaceholderAPI.

Some examples of what you can do with the plugin:

  1. An economy system, creating multiple currencies.
  2. A portal that has an on/off status.
  3. Custom player points system.
  4. Set a number of infractions to a player when they do something wrong.
  5. 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

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3 26.2 26.1.x +14
Paper Purpur Spigot
14h ago 1
26.3 26.2 26.1.x +14
Paper Purpur Spigot
14h ago 1
26.2 26.1.x 1.21.x +13
Paper Purpur Spigot
14h ago 1
26.2 26.1.x 1.21.x +13
Paper Purpur Spigot
14h ago 1
26.2 26.1.x 1.21.x +13
Paper Purpur Spigot
14h ago 1
26.1.x 1.21.x 1.20.x +12
Paper Purpur Spigot
14h ago 1
26.1.x 1.21.x 1.20.x +12
Paper Purpur Spigot
14h ago 1
26.1 1.21.x 1.20.x +12
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +10
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21.x 1.13.x
Paper Purpur Spigot
14h ago 1
1.21.x 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.21 1.20.x 1.19.x +11
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
1.20.x 1.19.x 1.18.x +10
Paper Purpur Spigot
14h ago 1
  • Fixed important bug when accessing non existent player data.
  • Added compatibility with 26.3.
  • Fixed issue regarding data not being loaded correctly for players.

  • Fixed issue when using double quotes to specify a value in /svar set and /svar list set/add commands.
  • Added %servervariables_possible_value_display_<variable>:<value>% PlaceholderAPI variable to get the display of a certain possible value of a variable defined in the config.
  • Added compatibility with 26.2.
  • 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_<variable>% PlaceholderAPI variable to show all the set values from a player list.

  • Added %servervariables_list_globalvalues_<variable>% 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
[3.4.1] 3.4.1 by Ajneb97 on Oct 15, 2026
Download
  • 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.
[3.3.1] 3.3.1 by Ajneb97 on Oct 15, 2026
Download
  • Added compatibility with 1.21.11
[3.2.1] 3.2.1 by Ajneb97 on Oct 15, 2026
Download
  • 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_<player>:<variable>% PlaceholderAPI variable.
[3.1.1] 3.1.1 by Ajneb97 on Oct 15, 2026
Download
  • 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.
[2.7.1] 2.7.1 by Ajneb97 on Oct 15, 2026
Download
  • Added compatibility with 1.21.8.

  • Added %servervariables_initial_value_<variable>% 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.
[2.6.3] 2.6.3 by Ajneb97 on Oct 15, 2026
Download
  • Added compatibility with 1.21.7

  • Fixed HEX colors in 1.21 versions.
[2.6.2] 2.6.2 by Ajneb97 on Oct 15, 2026
Download
  • Added multiple new parameters to MySQL config to customize the connection with your needs.
[2.6.1] 2.6.1 by Ajneb97 on Oct 15, 2026
Download
  • Added max_decimals limitation to Double type variables.

  • Added: Optimized player data storage.

  • Fixed issue with Integer values not supporting long numbers.
[2.5.2] 2.5.2 by Ajneb97 on Oct 15, 2026
Download
  • 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.
[2.5.1] 2.5.1 by Ajneb97 on Oct 15, 2026
Download
  • Added compatibility with 1.21.
[2.4.2] 2.4.2 by Ajneb97 on Oct 15, 2026
Download
  • Added: Increased performance when getting variables and having big amounts of player data.
[2.3.4] 2.3.4 by Ajneb97 on Oct 15, 2026
Download
  • Fixed important lag when saving players.

  • Fixed issue when trying to get data from a corrupted player data file.
[2.3.3] 2.3.3 by Ajneb97 on Oct 15, 2026
Download
  • Modified: /svar reset <variable> all command is now /svar reset <variable> *

  • Fixed important lag issue when loading data while having MySQL enabled.

[2.3.2] 2.3.2 by Ajneb97 on Oct 15, 2026
Download
  • Added /svar reset <variable> all command, to reset a variable for all players.
[2.3.1] 2.3.1 by Ajneb97 on Oct 15, 2026
Download
  • Added max characters length limitation for variables.

  • Modified PlaceholderAPI variable %servervariables_value_otherplayer_<player>_<variable>% to %servervariables_value_otherplayer_<player>:<variable>%

  • Modified PlaceholderAPIvariable %servervariables_display_otherplayer_<player>_<variable>% to %servervariables_display_otherplayer_<player>:<variable>%
[2.2.2] 2.2.2 by Ajneb97 on Oct 15, 2026
Download
  • Fixed important bug from latest update, loading server data.
[2.2.1] 2.2.1 by Ajneb97 on Oct 15, 2026
Download
  • Added multi-config system for variables creation.
[2.1.3] 2.1.3 by Ajneb97 on Oct 15, 2026
Download
  • Added some value parameters to command tab completion

  • Fixed bug when trying to add integer values to variables with DOUBLE value type.
[2.1.2] 2.1.2 by Ajneb97 on Oct 15, 2026
Download
  • Added bStats.

  • Fixed issue with %servervariables_value_otherplayer_<player>_<variable>% and %servervariables_display_otherplayer_<player>_<variable>% PlaceholderAPI variables.

  • Fixed possible syncronization bug when using MySQL.
[2.1.1] 2.1.1 by Ajneb97 on Oct 15, 2026
Download
  • Added limitations option for variables (max value and min value).

  • Added %servervariables_value_otherplayer_<player>_<variable>% and %servervariables_display_otherplayer_<player>_<variable>% PlaceholderAPI variables.
ServerVariables Icon
Download ServerVariables
Select game version
Select platform