Skip to content

Zones options

MFFbrokenSwing edited this page Nov 26, 2017 · 1 revision

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"

Here are the available options :

Safe and War

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

Faction

name : String, the displayed text when entering in the zone

Example

{
	"name":"safe",
	"class":"factionmod.manager.ManagerSafeZone",
	"instance":"DEFAULT",
        "parameters": "--enforceEnchantmentLevel true --enchantmentLevel 10 --name \"You're now safe\" "
}

Clone this wiki locally