Fixed kick command.

This commit is contained in:
Brianna 2019-04-04 13:59:39 -04:00
parent 2a213ca1a8
commit 82b41d1b5e
2 changed files with 23 additions and 1 deletions

22
.gitignore vendored
View File

@ -262,3 +262,25 @@ target/classes/com/songoda/ultimatemoderation/staffchat/StaffChannel\.class
target/classes/com/songoda/ultimatemoderation/staffchat/StaffChatManager\.class
target/classes/com/songoda/ultimatemoderation/gui/GUITicketType\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$1\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$2\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$AdvancedBarChart\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$AdvancedPie\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$CustomChart\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$DrilldownPie\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$MultiLineChart\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$SimpleBarChart\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$SimplePie\.class
target/classes/com/songoda/ultimatemoderation/utils/Metrics\$SingleLineChart\.class

View File

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