mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-17 04:51:28 +01:00
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:
parent
991a0ced67
commit
a8b62623e8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user