Don't give pets and mounts to players who bring their own items.

Bringing a full stack of bones will no longer result in a full pack of wolves.
This commit is contained in:
Andreas Troelsen 2017-03-12 21:42:57 +01:00
parent 991a0ced67
commit a8b62623e8

View File

@ -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;