-
Notifications
You must be signed in to change notification settings - Fork 8
Zones options
What I call zones are safe, war and faction (a claim), or any not built-in zone. You can specify some options to these zones and they will handle these options.
To specify these options you have to modify the file [config dir]/factionmod/zones.json. In this file you will find the declaration for the zones which will be loaded. A zone object contains at least an attribute name and class, then add an attribute parameters which will contain a String.
Let's take the safezone as an example :
{
"name":"safe",
"class":"factionmod.manager.ManagerSafeZone",
"instance":"DEFAULT"
}
I'll add the parameters attribute :
{
"name":"safe",
"class":"factionmod.manager.ManagerSafeZone",
"instance":"DEFAULT",
"parameters": ""
}
The options need to be specified with the same format of the programs arguments : --nameOfTheArg "value of the arg"
name : String, the displayed text when entering in the zone
enforceEnchantmentLevel : Boolean, indicates if the level of the enchantment should be enforced
enchantmentLevel : Integer, the enchantment level which will be enforced
name : String, the displayed text when entering in the zone
{
"name":"safe",
"class":"factionmod.manager.ManagerSafeZone",
"instance":"DEFAULT",
"parameters": "--enforceEnchantmentLevel true --enchantmentLevel 10 --name \"You're now safe\" "
}