1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-03 17:41:57 +02:00

Adding a command deprecated notice for players

This commit is contained in:
jessenic
2011-06-21 05:07:45 +08:00
committed by snowleo
parent 6a1cbe203d
commit 86a842a331
17 changed files with 51 additions and 19 deletions

View File

@@ -22,7 +22,9 @@ public class Commandmanuaddp extends EssentialsCommand
}
final String player = args[0];
final String perm = args[1];
ess.getServer().dispatchCommand(sender, "/permissions "+player+" perms add "+perm+"");
String command = "/permissions "+player+" perms add "+perm;
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
ess.getServer().dispatchCommand(sender, command);
}