varunbln / Spawners

Pocketmine plugin made in PHP implementing stackable spawners
GNU Lesser General Public License v3.0
35 stars 23 forks source link

Add world protection support #83

Open RKAbdul opened 4 years ago

RKAbdul commented 4 years ago

Hi, people can remove the spawners from UI even at the protected areas. Cause people can steal Spawners from other skyblock islands. At the Spawn where i am using WorldGuard plugin. They can interact with spawner and remove the Spawners through the UI. Edit: Can you add so people can't remove spawners or add in protected areas?

jaylac2000 commented 4 years ago

he has the same issue with his sellwands plugin but it was got fixed. im sure he will fix it when he can. he is probably busy with his life atm as i never waited 21 days for a response from him

varunbln commented 3 years ago

Not sure why this occurs, it should already work with protection plugins. If anyone knows why, feel free to comment or PR a fix

cosmicnebula200 commented 3 years ago

The event priority is set to MONITOR and the event is cancelled later ig

varunbln commented 3 years ago

The event priority is set to MONITOR and the event is cancelled later ig

Handlers under MONITOR are the last to be called, that is intended

cosmicnebula200 commented 3 years ago

ooop my bad , I thought MONITOR was called first. Here is what i think is messing with protections, most of the World Protection plugins do not cancel the PlayerInteractEvent so maybe try calling a BlockBreakEvent and if the BlockBreakEvent is cancelled you can cancel the PlayerInteractEvent