WorldGuard

WorldGuard

8M Downloads

received don't disembark in not enabled worlds

LadyCailinBot opened this issue ยท 0 comments

commented

WORLDGUARD-3839 - Reported by Chewy_918

Hi

we are running a spigot 1-11 server with a self compiled SNAPSHOT-version (legacy-6.2.1-SNAPSHOT-dist) of worldguard. In one of our worlds we disabled worldguard, to try out our own protection system.

In this environment, every time a user tries to leave his horse he gets the message 'Don't disembark here!'. After some scanning of worldguards code i found the method 'RegionProtectionListener::onVehicleExit'. There i missed the isRegionSupportEnabled stuff, that i found in all other methods. So i added the following in line 520

520 if (!isRegionSupportEnabled(vehicle.getLocation().getWorld())) return; // Region support disabled

Finally this works for our server.

Probably you insert this line into your code or solve the problem in another way.

Hope this helps

Dieter