mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-17 15:49:17 +01:00
Fixed problem with disguisehelp command not telling you that you don't have perms. And perms not working.
This commit is contained in:
parent
3808579614
commit
9b30140e22
@ -22,7 +22,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
||||||
for (String node : new String[] { "disguise", "disguiseradius", "disguiseentity", "disguiseplayer" }) {
|
for (String node : new String[] { "disguise", "disguiseradius", "disguiseentity", "disguiseplayer" }) {
|
||||||
ArrayList<String> allowedDisguises = getAllowedDisguises(sender, node);
|
ArrayList<String> allowedDisguises = getAllowedDisguises(sender, "libsdisguises." + node + ".");
|
||||||
if (!allowedDisguises.isEmpty()) {
|
if (!allowedDisguises.isEmpty()) {
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
sendCommandUsage(sender);
|
sendCommandUsage(sender);
|
||||||
@ -126,6 +126,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sender.sendMessage(ChatColor.RED + "You are forbidden from using this command!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user