mirror of
https://github.com/songoda/UltimateModeration.git
synced 2025-03-11 06:00:19 +01:00
Fixed kick command.
This commit is contained in:
parent
08492c23d3
commit
2a213ca1a8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user