mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
Adding a command deprecated notice for players
This commit is contained in:
parent
798d4458d4
commit
e24c053b95
@ -21,8 +21,9 @@ public class Commandmangadd extends EssentialsCommand
|
|||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
final String group = args[0];
|
final String group = args[0];
|
||||||
|
String command = "/permissions g:" + group + " create";
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions g:"+group+" create");
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmangaddi extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String target = args[0];
|
final String target = args[0];
|
||||||
final String group = args[1];
|
final String group = args[1];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions g:"+target+" parents add "+group+"");
|
String command = "/permissions g:"+target+" parents add "+group;
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmangaddp extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String target = args[0];
|
final String target = args[0];
|
||||||
final String perm = args[1];
|
final String perm = args[1];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions g:"+target+" perms add "+perm+"");
|
String command = "/permissions g:"+target+" perms add "+perm;
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmangcheckp extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String target = args[0];
|
final String target = args[0];
|
||||||
final String perm = args[1];
|
final String perm = args[1];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions g:"+target+" has "+perm+"");
|
String command = "/permissions g:"+target+" has "+perm;
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,9 @@ public class Commandmangdel extends EssentialsCommand
|
|||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
final String group = args[0];
|
final String group = args[0];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions g:"+group+" delete");
|
String command = "/permissions g:"+group+" delete";
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmangdeli extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String target = args[0];
|
final String target = args[0];
|
||||||
final String group = args[1];
|
final String group = args[1];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions g:"+target+" parents remove "+group+"");
|
String command = "/permissions g:"+target+" parents remove "+group;
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmangdelp extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String target = args[0];
|
final String target = args[0];
|
||||||
final String perm = args[1];
|
final String perm = args[1];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions g:"+target+" perms remove "+perm+"");
|
String command = "/permissions g:"+target+" perms remove "+perm;
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,9 @@ public class Commandmanglistp extends EssentialsCommand
|
|||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
final String target = args[0];
|
final String target = args[0];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions g:"+target+" perms list");
|
String command = "/permissions g:"+target+" perms list";
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,8 +21,9 @@ public class Commandmanload extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
world = args[0];
|
world = args[0];
|
||||||
}
|
}
|
||||||
|
String command = "/permissions -reload "+world;
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions -reload "+world+"");
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,7 +23,9 @@ public class Commandmanuadd extends EssentialsCommand
|
|||||||
final String player = args[0];
|
final String player = args[0];
|
||||||
final String group = args[1];
|
final String group = args[1];
|
||||||
//TODO: Make this command add a player if it doesnt exist /permissions +player+ create
|
//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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmanuaddp extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String player = args[0];
|
final String player = args[0];
|
||||||
final String perm = args[1];
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmanuaddsub extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String player = args[0];
|
final String player = args[0];
|
||||||
final String group = args[1];
|
final String group = args[1];
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmanucheckp extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String player = args[0];
|
final String player = args[0];
|
||||||
final String perm = args[1];
|
final String perm = args[1];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions "+player+" has "+perm+"");
|
String command = "/permissions "+player+" has "+perm;
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,9 @@ public class Commandmanudel extends EssentialsCommand
|
|||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
final String player = args[0];
|
final String player = args[0];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions "+player+" delete");
|
String command = "/permissions "+player+" delete";
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmanudelp extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String player = args[0];
|
final String player = args[0];
|
||||||
final String perm = args[1];
|
final String perm = args[1];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions "+player+" perms remove "+perm+"");
|
String command = "/permissions "+player+" perms remove "+perm;
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,9 @@ public class Commandmanudelsub extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final String player = args[0];
|
final String player = args[0];
|
||||||
final String group = args[1];
|
final String group = args[1];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions "+player+" parents remove "+group+"");
|
String command = "/permissions "+player+" parents remove "+group;
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,9 @@ public class Commandmanulistp extends EssentialsCommand
|
|||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
final String player = args[0];
|
final String player = args[0];
|
||||||
ess.getServer().dispatchCommand(sender, "/permissions "+player+" perms list");
|
String command = "/permissions "+player+" perms list";
|
||||||
|
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||||
|
ess.getServer().dispatchCommand(sender, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user