Rules
A rule defines wich values will be saved from the player
The simplest way to define a Rule. is to create a yml-file in the plugin directory.
This file has to match this pattern: rule_[\w].yml, for example rule_test.yml.
Sample file
#Savename RegEx pattern savename: ^test[\d]+$ #Playername RegEx pattern playername: ^[\S]+$ #In any rule is not in this List, #this default Value will be used. default: false #Save the location of the Player location: true #Save if the player is flying isflying: true #Save the gamemode of the player gamemode: true #Save the current falldistance of the Player falldistance: true #Save the fireticks of the Player fireticks: true #Save the velocity of the Player velocity: true #Save the heathbar of the Player health: true #Save the foodlevel of the Player foodlevel: true #Save the experience of the Player exp: true #Save the level of the Player level: true #Save the armor-inventory of the Player armor: true #Save the inventory of the Player (not the armor) inventory: true #Save the potion effect of the Player potions: true
The choise, which rule is to apply will be chosen by the following weighting criteria:
- savename is not defined: -1
- savename regex match: 0
- savename exact match: 999
- savename no match: -999
plus
- playername is not defined: -1
- playername regex match: 0
- playername exact match: 1000
- playername no match: -1000
Comments