Add distribute items on team leave #34
@ -130,6 +130,15 @@ public class MWTeam {
|
||||
if (!players.contains(p)) return;
|
||||
|
||||
players.remove(p);
|
||||
for (ItemStack stack : p.getInventory().getContents()) {
|
||||
if (stack == null) continue;
|
||||
if (stack.getType() == Material.AIR) continue;
|
||||
if (stack.isSimilar(bow)) continue;
|
||||
givePlayerItem(stack);
|
||||
}
|
||||
|
||||
p.getInventory().clear();
|
||||
|
||||
p.setDisplayName("§7" + p.getName());
|
||||
sbteam.removePlayer(p);
|
||||
if (players.isEmpty() && MissileWars.getFightState() == FightState.FIGHTING)
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren