fixed kick reason for bans
This commit is contained in:
parent
6405253b1c
commit
d5515d11b2
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user