fixed kick reason for bans

This commit is contained in:
Chiss 2014-11-09 14:27:01 +11:00
parent 6405253b1c
commit d5515d11b2

View File

@ -169,12 +169,14 @@ public class Punish extends MiniPlugin
{
public void run()
{
String kickReason = C.cRed + C.Bold + "You were banned for " + durationString + " by " + caller == null ? "Mineplex Anti-Cheat" : caller.getName() +
String kickReason = C.cRed + C.Bold + "You were banned for " + durationString + " by " + (caller == null ? "Mineplex Anti-Cheat" : caller.getName()) +
"\n" + C.cWhite + reason +
"\n" + C.cDGreen + "Unfairly banned? Appeal at " + C.cGreen + "www.mineplex.com/appeals"
;
UtilPlayer.kick(UtilPlayer.searchOnline(null, playerName, false), GetName(), kickReason);
Player target = UtilPlayer.searchOnline(null, playerName, false);
if (target != null)
target.kickPlayer(kickReason);
}
});