mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-12-25 02:17:45 +01:00
changed around the permissions
This commit is contained in:
parent
8f5fba9959
commit
fbbd104881
@ -87,4 +87,4 @@ ThrowbackAmount: 0.7 # How fast to throw them back, 0 or lower to disable throwb
|
||||
# e Ops can create all perm commands without special perms
|
||||
# k Ops can create console commands without special perms
|
||||
#
|
||||
CommandLevels: n
|
||||
CommandLevels: opchek
|
||||
|
@ -163,24 +163,21 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
|
||||
executesCommand = true;
|
||||
portalCommand = parseArgVariable(args, i, "command:");
|
||||
i += this.portalArgsStringLength - 1;
|
||||
if(portalCommand.startsWith("#")
|
||||
&& !(this.plugin.getSettings().hasCommandLevel("c")
|
||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.console")
|
||||
|| (this.plugin.getSettings().hasCommandLevel("k") && sender.isOp()) ) )){
|
||||
if(portalCommand.startsWith("#") && ((this.plugin.getSettings().hasCommandLevel("c")
|
||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.console"))
|
||||
|| (this.plugin.getSettings().hasCommandLevel("k") && sender.isOp())))) {
|
||||
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a console command portal!");
|
||||
return true;
|
||||
}
|
||||
else if(portalCommand.startsWith("!")
|
||||
&& !(this.plugin.getSettings().hasCommandLevel("o")
|
||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.op")
|
||||
|| (this.plugin.getSettings().hasCommandLevel("h") && sender.isOp()) ) )){
|
||||
else if(portalCommand.startsWith("!") && ((this.plugin.getSettings().hasCommandLevel("o")
|
||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.op"))
|
||||
|| (this.plugin.getSettings().hasCommandLevel("p") && sender.isOp())))) {
|
||||
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a op command portal!");
|
||||
return true;
|
||||
}
|
||||
else if(portalCommand.startsWith("^")
|
||||
&& !(this.plugin.getSettings().hasCommandLevel("p")
|
||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.perms")
|
||||
|| (this.plugin.getSettings().hasCommandLevel("e") && sender.isOp()) ) )){
|
||||
else if(portalCommand.startsWith("^") && ((this.plugin.getSettings().hasCommandLevel("p")
|
||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.perms"))
|
||||
|| (this.plugin.getSettings().hasCommandLevel("e") && sender.isOp())))) {
|
||||
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a all perms command portal!");
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user