diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-15 20:49:47 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-15 20:49:47 +0200 |
commit | 705f9c267c28d99876a9774bd0886ed1ffe464f8 (patch) | |
tree | 27b094fa6ccc3661a37ace6f6ec53bddb8aa0f60 /Essentials/src/com/earth2me/essentials/commands/Commandkick.java | |
parent | d2db6348d92752ee6a07a875ccd63ee779b32361 (diff) | |
download | Essentials-705f9c267c28d99876a9774bd0886ed1ffe464f8.tar Essentials-705f9c267c28d99876a9774bd0886ed1ffe464f8.tar.gz Essentials-705f9c267c28d99876a9774bd0886ed1ffe464f8.tar.lz Essentials-705f9c267c28d99876a9774bd0886ed1ffe464f8.tar.xz Essentials-705f9c267c28d99876a9774bd0886ed1ffe464f8.zip |
Broadcast message on kick/ban
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandkick.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandkick.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkick.java b/Essentials/src/com/earth2me/essentials/commands/Commandkick.java index ba9c2153a..a20f654da 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandkick.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandkick.java @@ -34,6 +34,8 @@ public class Commandkick extends EssentialsCommand } charge(sender); - u.kickPlayer(args.length > 1 ? getFinalArg(args, 1) : Util.i18n("kickDefault")); + final String kickReason = args.length > 1 ? getFinalArg(args, 1) : Util.i18n("kickDefault"); + u.kickPlayer(kickReason); + server.broadcastMessage(Util.format("playerKicked", u.getName(), kickReason)); } } |