mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-11 10:58:51 +01:00
Fix string match error on none existing user (/ban).
This commit is contained in:
parent
93db8bc7c1
commit
3a789bdcfe
@ -71,7 +71,7 @@ public class Commandban extends EssentialsCommand
|
|||||||
server.getLogger().log(Level.INFO, _("playerBanned", senderName, user.getName(), banReason));
|
server.getLogger().log(Level.INFO, _("playerBanned", senderName, user.getName(), banReason));
|
||||||
|
|
||||||
if (nomatch) {
|
if (nomatch) {
|
||||||
sender.sendMessage(_("userUnknown", user.getName()));
|
sender.sendMessage(_("userUnknown", args[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Player onlinePlayer : server.getOnlinePlayers())
|
for (Player onlinePlayer : server.getOnlinePlayers())
|
||||||
|
Loading…
Reference in New Issue
Block a user