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:
@@ -829,6 +829,10 @@ public class ArenaImpl implements Arena
|
|||||||
// Skip players who are either null or offline
|
// Skip players who are either null or offline
|
||||||
if (p == null || !p.isOnline()) continue;
|
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
|
// Grab the inventory
|
||||||
PlayerInventory inv = p.getInventory();
|
PlayerInventory inv = p.getInventory();
|
||||||
if (inv == null) continue;
|
if (inv == null) continue;
|
||||||
@@ -861,6 +865,10 @@ public class ArenaImpl implements Arena
|
|||||||
// Skip players who are either null or offline
|
// Skip players who are either null or offline
|
||||||
if (p == null || !p.isOnline()) continue;
|
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
|
// Grab the inventory
|
||||||
PlayerInventory inv = p.getInventory();
|
PlayerInventory inv = p.getInventory();
|
||||||
if (inv == null) continue;
|
if (inv == null) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user