ServerVariables
  • ServerVariables Wiki
  • How to Start
  • Variables Tutorial
  • Commands and Permissions
  • Config.yml
  • PlaceholderAPI Variables
  • API
  • Examples
Powered by GitBook
On this page

ServerVariables Wiki

Here you will learn how to properly use my plugin: https://www.spigotmc.org/resources/107803/

Description

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:

Economy system with multiple currencies

variables:
  currency_1:
    variable_type: PLAYER
    value_type: INTEGER
    initial_value: 0
    limitations:
      min_value: 0
  currency_2:
    variable_type: PLAYER
    value_type: DOUBLE
    initial_value: 1.50
    limitations:
      max_decimals: 3

A portal that has an on/off status.

variables:
  lobby_portal_status:
    variable_type: GLOBAL
    value_type: TEXT
    possible_values:
    - off;&c&lPortal Disabled
    - on;&a&lPortal Enabled
    initial_value: 'off'

Custom player points system.

variables:
  player_points:
    variable_type: PLAYER
    value_type: INTEGER
    initial_value: 0
  • Set a number of infractions to a player when they do something wrong.

NextHow to Start

Last updated 2 months ago

A life system, tracking when the player dies and reducing the amount of lives the player has (Using my plugin ).

ConditionalEvents