mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Add perms for uu/enable/disable/toggle
This commit is contained in:
parent
cd4d0f7725
commit
79f72b64ac
@ -85,19 +85,19 @@ public class VoxelSniperCommand extends VoxelCommand
|
||||
player.sendMessage(PerformerE.performer_list_long);
|
||||
return true;
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("enable"))
|
||||
else if (args[0].equalsIgnoreCase("enable") && player.hasPermission("voxelsniper.command.vs.enable"))
|
||||
{
|
||||
sniper.setEnabled(true);
|
||||
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
||||
return true;
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("disable"))
|
||||
else if (args[0].equalsIgnoreCase("disable") && player.hasPermission("voxelsniper.command.vs.enable"))
|
||||
{
|
||||
sniper.setEnabled(false);
|
||||
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
||||
return true;
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("toggle"))
|
||||
else if (args[0].equalsIgnoreCase("toggle") && player.hasPermission("voxelsniper.command.vs.enable"))
|
||||
{
|
||||
sniper.setEnabled(!sniper.isEnabled());
|
||||
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
||||
|
@ -11,7 +11,7 @@ public class VoxelUndoCommand extends VoxelCommand
|
||||
{
|
||||
super("VoxelUndo", plugin);
|
||||
setIdentifier("u");
|
||||
setPermission("voxelsniper.sniper");
|
||||
setPermission("voxelsniper.command.uu");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user