mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-02-12 18:31:26 +01:00
Update JeffChestSortListener.java
This commit is contained in:
parent
2b7c954216
commit
621ac10ccd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user