Fixed incorrect permission for /vsd a.k.a /disguiseviewself

This commit is contained in:
NavidK0 2015-07-15 08:25:15 -04:00
parent 8c0e61680b
commit 7301a60aa4
2 changed files with 12 additions and 16 deletions

View File

@ -19,7 +19,6 @@ public class DisguiseViewSelf implements CommandExecutor {
sender.sendMessage(ChatColor.RED + "You may not use this command from the console!"); sender.sendMessage(ChatColor.RED + "You may not use this command from the console!");
return true; return true;
} }
if (sender.hasPermission("libsdisguises.viewself")) {
Player player = (Player) sender; Player player = (Player) sender;
if (DisguiseAPI.isViewSelfToggled(player)) { if (DisguiseAPI.isViewSelfToggled(player)) {
DisguiseAPI.setViewDisguiseToggled(player, false); DisguiseAPI.setViewDisguiseToggled(player, false);
@ -28,9 +27,6 @@ public class DisguiseViewSelf implements CommandExecutor {
DisguiseAPI.setViewDisguiseToggled(player, true); DisguiseAPI.setViewDisguiseToggled(player, true);
sender.sendMessage(ChatColor.GREEN + "Toggled viewing own disguise on!"); sender.sendMessage(ChatColor.GREEN + "Toggled viewing own disguise on!");
} }
} else {
sender.sendMessage(ChatColor.RED + "You are forbidden to use this command.");
}
return true; return true;
} }