Hey guys. I am attempting to fix a previous plugin that was posted on Spigot. I know the developer of the plugin but he does not develop anymore. The Problem: Whenever I have this plugin installed, Players can PVP in WorldGuard regions with PvP Deny unless of course they disable PvP using this plugin. Any help would be appreciated. Thanks Main - https://pastebin.com/h14baxXc PvPPlayer - https://pastebin.com/T8J4RP0P
Try doing this on the @EventHandler tags: @EventHandler (priority = EventPriority.LOWEST) It will set it priority to the lowest one so it should work
It's odd. I just started up a test server, with Worldguard, Worldedit, and this plugin, as well as Permissions/Essentials. This problem does not seem to be happening on the test server.
Basically, your event priority is Normal also is the world guard event, so you should listen for a higher priority and check if the event is cancelled. Lowert priority: Called first Higher priority: Called last
I don't think you registered you're events? I looked in the onEnable() and didn't see it. (I don't know if Spigot does that automatically for you)