mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-02 03:02:49 +02:00
Corrected all commands of PermCommands
onCommand now supports the change of the permissions prefix
This commit is contained in:
@@ -21,7 +21,7 @@ public class Commandmangadd extends EssentialsCommand
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
final String group = args[0];
|
||||
String command = "/permissions g:" + group + " create";
|
||||
String command = "permissions g:" + group + " create";
|
||||
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||
ess.getServer().dispatchCommand(sender, command);
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ public class Commandmangaddi extends EssentialsCommand
|
||||
}
|
||||
final String target = args[0];
|
||||
final String group = args[1];
|
||||
String command = "/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,7 @@ public class Commandmangaddp extends EssentialsCommand
|
||||
}
|
||||
final String target = args[0];
|
||||
final String perm = args[1];
|
||||
String command = "/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,7 @@ public class Commandmangcheckp extends EssentialsCommand
|
||||
}
|
||||
final String target = args[0];
|
||||
final String perm = args[1];
|
||||
String command = "/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,7 @@ public class Commandmangdel extends EssentialsCommand
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
final String group = args[0];
|
||||
String command = "/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,7 @@ public class Commandmangdeli extends EssentialsCommand
|
||||
}
|
||||
final String target = args[0];
|
||||
final String group = args[1];
|
||||
String command = "/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,7 @@ public class Commandmangdelp extends EssentialsCommand
|
||||
}
|
||||
final String target = args[0];
|
||||
final String perm = args[1];
|
||||
String command = "/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,7 @@ public class Commandmanglistp extends EssentialsCommand
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
final String target = args[0];
|
||||
String command = "/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,7 +21,7 @@ public class Commandmanload extends EssentialsCommand
|
||||
{
|
||||
world = args[0];
|
||||
}
|
||||
String command = "/permissions -reload "+world;
|
||||
String command = "permissions -reload "+world;
|
||||
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||
ess.getServer().dispatchCommand(sender, command);
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@ 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
|
||||
String command = "/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,7 @@ public class Commandmanuaddp extends EssentialsCommand
|
||||
}
|
||||
final String player = args[0];
|
||||
final String perm = args[1];
|
||||
String command = "/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,7 @@ public class Commandmanuaddsub extends EssentialsCommand
|
||||
}
|
||||
final String player = args[0];
|
||||
final String group = args[1];
|
||||
String command = "/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,7 @@ public class Commandmanucheckp extends EssentialsCommand
|
||||
}
|
||||
final String player = args[0];
|
||||
final String perm = args[1];
|
||||
String command = "/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,7 @@ public class Commandmanudel extends EssentialsCommand
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
final String player = args[0];
|
||||
String command = "/permissions "+player+" delete";
|
||||
String command = "permissions "+player+" delete";
|
||||
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||
ess.getServer().dispatchCommand(sender, command);
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ public class Commandmanudelp extends EssentialsCommand
|
||||
}
|
||||
final String player = args[0];
|
||||
final String perm = args[1];
|
||||
String command = "/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,7 @@ public class Commandmanudelsub extends EssentialsCommand
|
||||
}
|
||||
final String player = args[0];
|
||||
final String group = args[1];
|
||||
String command = "/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,7 @@ public class Commandmanulistp extends EssentialsCommand
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
final String player = args[0];
|
||||
String command = "/permissions "+player+" perms list";
|
||||
String command = "permissions "+player+" perms list";
|
||||
sender.sendMessage(commandLabel + " is deprecated. Use " + command + " instead.");
|
||||
ess.getServer().dispatchCommand(sender, command);
|
||||
}
|
||||
|
@@ -35,7 +35,7 @@ public class EssentialsPermissionsCommands extends JavaPlugin
|
||||
@Override
|
||||
public boolean onCommand(final CommandSender sender, final Command command, final String label, final String[] args)
|
||||
{
|
||||
return Essentials.getStatic().onCommandEssentials(sender, command, label, args, EssentialsPermissionsCommands.class.getClassLoader(), "com.earth2me.essentials.permissions.Command");
|
||||
return Essentials.getStatic().onCommandEssentials(sender, command, label, args, EssentialsPermissionsCommands.class.getClassLoader(), "com.earth2me.essentials.permissions.Command", "groupmanager.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user