mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
Typo
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1255 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
00425eee73
commit
e08bba4db3
@ -28,14 +28,14 @@ public class Commandban extends EssentialsCommand
|
|||||||
if (server.matchPlayer(args[0]).isEmpty())
|
if (server.matchPlayer(args[0]).isEmpty())
|
||||||
{
|
{
|
||||||
((CraftServer)server).getHandle().a(args[0]);
|
((CraftServer)server).getHandle().a(args[0]);
|
||||||
sender.sendMessage("§cPlayer" + args[0] + " banned");
|
sender.sendMessage("§cPlayer " + args[0] + " banned");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
p = User.get(server.matchPlayer(args[0]).get(0));
|
p = User.get(server.matchPlayer(args[0]).get(0));
|
||||||
p.kickPlayer(args.length > 1 ? getFinalArg(args, 1) : "Banned from server");
|
p.kickPlayer(args.length > 1 ? getFinalArg(args, 1) : "Banned from server");
|
||||||
((CraftServer)server).getHandle().a(p.getName());
|
((CraftServer)server).getHandle().a(p.getName());
|
||||||
sender.sendMessage("§cPlayer" + p.getName() + " banned");
|
sender.sendMessage("§cPlayer " + p.getName() + " banned");
|
||||||
}
|
}
|
||||||
Essentials.getStatic().loadBanList();
|
Essentials.getStatic().loadBanList();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user