mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-06-26 06:35:05 +02: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
|
# e Ops can create all perm commands without special perms
|
||||||
# k Ops can create console 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;
|
executesCommand = true;
|
||||||
portalCommand = parseArgVariable(args, i, "command:");
|
portalCommand = parseArgVariable(args, i, "command:");
|
||||||
i += this.portalArgsStringLength - 1;
|
i += this.portalArgsStringLength - 1;
|
||||||
if(portalCommand.startsWith("#")
|
if(portalCommand.startsWith("#") && ((this.plugin.getSettings().hasCommandLevel("c")
|
||||||
&& !(this.plugin.getSettings().hasCommandLevel("c")
|
&& (sender.hasPermission("advancedportals.createportal.commandlevel.console"))
|
||||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.console")
|
|| (this.plugin.getSettings().hasCommandLevel("k") && sender.isOp())))) {
|
||||||
|| (this.plugin.getSettings().hasCommandLevel("k") && sender.isOp()) ) )){
|
|
||||||
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a console command portal!");
|
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a console command portal!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if(portalCommand.startsWith("!")
|
else if(portalCommand.startsWith("!") && ((this.plugin.getSettings().hasCommandLevel("o")
|
||||||
&& !(this.plugin.getSettings().hasCommandLevel("o")
|
&& (sender.hasPermission("advancedportals.createportal.commandlevel.op"))
|
||||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.op")
|
|| (this.plugin.getSettings().hasCommandLevel("p") && sender.isOp())))) {
|
||||||
|| (this.plugin.getSettings().hasCommandLevel("h") && sender.isOp()) ) )){
|
|
||||||
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a op command portal!");
|
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a op command portal!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if(portalCommand.startsWith("^")
|
else if(portalCommand.startsWith("^") && ((this.plugin.getSettings().hasCommandLevel("p")
|
||||||
&& !(this.plugin.getSettings().hasCommandLevel("p")
|
&& (sender.hasPermission("advancedportals.createportal.commandlevel.perms"))
|
||||||
&& (sender.hasPermission("advancedportals.createportal.commandlevel.perms")
|
|| (this.plugin.getSettings().hasCommandLevel("e") && sender.isOp())))) {
|
||||||
|| (this.plugin.getSettings().hasCommandLevel("e") && sender.isOp()) ) )){
|
|
||||||
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a all perms command portal!");
|
player.sendMessage(PluginMessages.customPrefixFail + " You need permission to make a all perms command portal!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user