Variables - OfficialDonut/VisualBukkit GitHub Wiki
Variables are used to store a value and to later retrieve the stored value.
- Local Variable
- "Local" to the plugin component (command, event listener, etc.) in which it is used
- e.g. if you use a local variable in a command then the value will be reset each time the command runs
- Global Variable
- Keeps it value until the server stops
- Can be used across plugin components
- Persistent Variable
- Same as a global variable except its value is saved across server restarts
- Saved in "plugins/YourPlugin/data.yml"