Fixed kick command.

This commit is contained in:
Brianna 2019-04-04 13:41:07 -04:00
parent 08492c23d3
commit 2a213ca1a8
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ public class Punishment {
sendMessage(victim);
break;
case KICK:
if (victim.isOnline()) {
victim.getPlayer().kickPlayer(plugin.getLocale().getMessage("event.ban.message",
reason == null ? "" : reason,
Methods.makeReadable(duration)));
}
break;
case WARNING:
sendMessage(victim);
break;