diff --git a/Essentials/src/net/ess3/commands/Commandignore.java b/Essentials/src/net/ess3/commands/Commandignore.java index d0efc48c6..73b102246 100644 --- a/Essentials/src/net/ess3/commands/Commandignore.java +++ b/Essentials/src/net/ess3/commands/Commandignore.java @@ -2,6 +2,7 @@ package net.ess3.commands; import static net.ess3.I18n._; import net.ess3.api.IUser; +import net.ess3.utils.Util; public class Commandignore extends EssentialsCommand @@ -13,8 +14,18 @@ public class Commandignore extends EssentialsCommand { throw new NotEnoughArgumentsException(); } - IUser player = ess.getUserMap().matchUserExcludingHidden(args[0], user.getPlayer()); - + IUser player; + try { + player = ess.getUserMap().matchUserExcludingHidden(args[0], user.getPlayer()); + } catch(Exception e) { + if (args[0].equalsIgnoreCase("list")) { + user.sendMessage(Util.joinList(user.getData().getIgnore())); + throw new NoChargeException(); + } else { + throw e; + } + } + if (user.isIgnoringPlayer(player)) { user.setIgnoredPlayer(player, false); diff --git a/Essentials/src/plugin.yml b/Essentials/src/plugin.yml index 6be38184a..14b2eed7f 100644 --- a/Essentials/src/plugin.yml +++ b/Essentials/src/plugin.yml @@ -161,7 +161,7 @@ commands: aliases: [ehome,homes,ehomes] ignore: description: Ignore other players. - usage: / + usage: / aliases: [eignore] info: description: Shows information set by the server owner