Update JeffChestSortListener.java

This commit is contained in:
JEFF 2019-01-22 18:28:14 +01:00 committed by GitHub
parent 2b7c954216
commit 621ac10ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,10 @@ public class JeffChestSortListener implements Listener {
return; return;
} }
if(plugin.disabledWorlds.contains(p.getWorld().getName().toLowerCase())) {
return;
}
// Don't sort automatically when player is spectator or in adventure mode // Don't sort automatically when player is spectator or in adventure mode
if (p.getGameMode() == GameMode.SPECTATOR || p.getGameMode() == GameMode.ADVENTURE) { if (p.getGameMode() == GameMode.SPECTATOR || p.getGameMode() == GameMode.ADVENTURE) {
return; return;