diff --git a/src/main/java/com/garbagemule/MobArena/ArenaImpl.java b/src/main/java/com/garbagemule/MobArena/ArenaImpl.java index df8b63f..d3c067c 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaImpl.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaImpl.java @@ -829,6 +829,10 @@ public class ArenaImpl implements Arena // Skip players who are either null or offline if (p == null || !p.isOnline()) continue; + // Skip the My Items class + ArenaClass ac = arenaPlayerMap.get(p).getArenaClass(); + if (ac == null || ac.getConfigName().equals("My Items")) continue; + // Grab the inventory PlayerInventory inv = p.getInventory(); if (inv == null) continue; @@ -861,6 +865,10 @@ public class ArenaImpl implements Arena // Skip players who are either null or offline if (p == null || !p.isOnline()) continue; + // Skip the My Items class + ArenaClass ac = arenaPlayerMap.get(p).getArenaClass(); + if (ac == null || ac.getConfigName().equals("My Items")) continue; + // Grab the inventory PlayerInventory inv = p.getInventory(); if (inv == null) continue;