From 9b30140e2274528f6680b69ddccdb3c44388e762 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 19 Nov 2013 22:48:33 +1300 Subject: [PATCH] Fixed problem with disguisehelp command not telling you that you don't have perms. And perms not working. --- .../libraryaddict/disguise/commands/DisguiseHelpCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java b/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java index d422d4df..2cda3db7 100644 --- a/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java +++ b/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java @@ -22,7 +22,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand { @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { for (String node : new String[] { "disguise", "disguiseradius", "disguiseentity", "disguiseplayer" }) { - ArrayList allowedDisguises = getAllowedDisguises(sender, node); + ArrayList allowedDisguises = getAllowedDisguises(sender, "libsdisguises." + node + "."); if (!allowedDisguises.isEmpty()) { if (args.length == 0) { sendCommandUsage(sender); @@ -126,6 +126,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand { } } } + sender.sendMessage(ChatColor.RED + "You are forbidden from using this command!"); return true; }