The purpose of this module is to create area where player have restriction. It can be a full godmode safezone or a simply no fire safezone or a zone with simple messages when entering and leaving.
For all Safezones, it will be necessary to :
- Block different all kind of actions.
- Disable FallDamage.
- Define a cleanup entities (needs to have exception with authorizedAnimals).
- Set a notification on entering and leaving the safezone.
- Create a custom ui for showing a leaving the Safezone in X seconds .
Then for each safezone, we can define the following features:
- Ability to set the safezone in full god mode or not (damage or no damage)
- Ability to set to no fire or not
- Ability to have a custom leaving counter that will make the player leave the safezone only after the counter is done
- Ability to specify a list of animals that won't be clean up in the area like HunterZ dogs or horses ;)
- version - string : useful for versioning (start at 0.0.1)
- msgOnEnteringZone - string : message that appear in the notification when entering
- msgOnLeavingZone - string : message that appear after countdown is down when leaving
- safezones - array : list of safeZone object
- fullGodMode - bool : if set to 1, the user cannot take damage
- noFire - bool : if set to 1, the user won't be able to shoot on other people
- leavingCounter - int : define the counter value before the player actually leave the safezone
- authorizedAnimals - array: specify the list of animals that won't be clean up in the area