330331332333334335336337338339340
// get the receiver AutoRefPlayer apl = match.getPlayer(args[1]); if (apl == null) { sender.sendMessage("Not a valid player: " + args[1]); return true; } kit.giveTo(apl); sender.sendMessage("Gave kit " + ChatColor.GOLD + kit.getName() + ChatColor.RESET + " to player " + apl.getDisplayName()); return true; }
694695696697698699700701702703704
if (p != null) PlayerUtil.reset(p); if (getTeam() != null) { PlayerKit kit = getTeam().getKit(); if (kit != null) kit.giveTo(this); } } public void registerDamage(EntityDamageEvent e, Player damager) {