mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +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);
|
player.sendMessage(PerformerE.performer_list_long);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("enable"))
|
else if (args[0].equalsIgnoreCase("enable") && player.hasPermission("voxelsniper.command.vs.enable"))
|
||||||
{
|
{
|
||||||
sniper.setEnabled(true);
|
sniper.setEnabled(true);
|
||||||
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("disable"))
|
else if (args[0].equalsIgnoreCase("disable") && player.hasPermission("voxelsniper.command.vs.enable"))
|
||||||
{
|
{
|
||||||
sniper.setEnabled(false);
|
sniper.setEnabled(false);
|
||||||
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("toggle"))
|
else if (args[0].equalsIgnoreCase("toggle") && player.hasPermission("voxelsniper.command.vs.enable"))
|
||||||
{
|
{
|
||||||
sniper.setEnabled(!sniper.isEnabled());
|
sniper.setEnabled(!sniper.isEnabled());
|
||||||
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
player.sendMessage("VoxelSniper is " + (sniper.isEnabled() ? "enabled" : "disabled"));
|
||||||
|
@ -11,7 +11,7 @@ public class VoxelUndoCommand extends VoxelCommand
|
|||||||
{
|
{
|
||||||
super("VoxelUndo", plugin);
|
super("VoxelUndo", plugin);
|
||||||
setIdentifier("u");
|
setIdentifier("u");
|
||||||
setPermission("voxelsniper.sniper");
|
setPermission("voxelsniper.command.uu");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user