Fixed incorrect permission for /vsd a.k.a /disguiseviewself
This commit is contained in:
parent
8c0e61680b
commit
7301a60aa4
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user