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

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