diff options
author | jessenic <jessenic@digiex.net> | 2011-06-21 05:07:45 +0800 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-06-22 07:44:01 +0800 |
commit | 86a842a33127965e2590ee811019620a9edf8e14 (patch) | |
tree | e5710e5bc89ba6d5f8b370e6b1a119e7f75d8ead /EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuadd.java | |
parent | 6a1cbe203d7280db35b64aca446168c902c4fdfb (diff) | |
download | Essentials-86a842a33127965e2590ee811019620a9edf8e14.tar Essentials-86a842a33127965e2590ee811019620a9edf8e14.tar.gz Essentials-86a842a33127965e2590ee811019620a9edf8e14.tar.lz Essentials-86a842a33127965e2590ee811019620a9edf8e14.tar.xz Essentials-86a842a33127965e2590ee811019620a9edf8e14.zip |
Adding a command deprecated notice for players
Diffstat (limited to 'EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuadd.java')
-rw-r--r-- | EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuadd.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuadd.java b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuadd.java index 3f35b74bc..65a4df759 100644 --- a/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuadd.java +++ b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuadd.java @@ -23,7 +23,9 @@ public class Commandmanuadd extends EssentialsCommand final String player = args[0]; final String group = args[1]; //TODO: Make this command add a player if it doesnt exist /permissions +player+ create - ess.getServer().dispatchCommand(sender, "/permissions "+player+" parents add "+group+""); + String command = "/permissions "+player+" parents add "+group; + sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead."); + ess.getServer().dispatchCommand(sender, command); } |