This functionality was what I missed so I made it with help of the area code of iProtector.
What is it?
The Festival plugin provides ingame commands for pocketmine servers to create area’s and set protective flags (like iProtector) AND provides a structure to attach commands to the area. The commands are attachted to specific events in the area and executed when a player triggers an event.
Festival now includes 3 basic area events to get started; enter, leave and center. More are on the way. Each event holds an array of commands to be executed. The players position triggers the events in the area. Any command triggered by an area event is executed with OP permission.
Also, a standard welcome message (incl. a custom description line) and a leave message is displayed at the outer borders and in the center area. Set the flag ‘msg’ to turn messages of for regular players.
The flags edit, god, touch, msg and barrier can be set for each area or as default in the config.yml.
For now see below or head over to the Festival Poggit page
Festival usage overview infographic:
The area code derives from the iProctector plugin, all credits for the basic area creation and protection go to the iProtector creator LDX-MCPE. In a first fork from poggit-orphanage the new code was extending the area with enter and leave messages and lateron also adding options to attach separate event-objects to an area and trigger specific events with commands. These test versions kept the core iProtector areas unchanged (to be able to use excisting area’s). These first adjustments worked well being a test plugin but keeping iProtector area’s while adding separate event data made me create a split command structure (wich isn’t logical or handy) and separate event objects are only needed if the original area class should stay the same. So, for a better plugin command structure and performance the iProtector Area code was used to create the setup for what now has become the Festival Plugin.
Refinements in progress @ github.com/genboy/Festival