summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandexp.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandexp.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandexp.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandexp.java b/Essentials/src/com/earth2me/essentials/commands/Commandexp.java
index 7013d7db9..b4535414e 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandexp.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandexp.java
@@ -115,7 +115,7 @@ public class Commandexp extends EssentialsCommand
}
}
- private void showMatch(final Server server, final CommandSender sender, final String match) throws NotEnoughArgumentsException
+ private void showMatch(final Server server, final CommandSender sender, final String match) throws PlayerNotFoundException
{
boolean skipHidden = sender instanceof Player && !ess.getUser(sender).isAuthorized("essentials.vanish.interact");
boolean foundUser = false;
@@ -132,11 +132,11 @@ public class Commandexp extends EssentialsCommand
}
if (!foundUser)
{
- throw new NotEnoughArgumentsException(_("playerNotFound"));
+ throw new PlayerNotFoundException();
}
}
- private void expMatch(final Server server, final CommandSender sender, final String match, String amount, final boolean give) throws NotEnoughArgumentsException
+ private void expMatch(final Server server, final CommandSender sender, final String match, String amount, final boolean give) throws NotEnoughArgumentsException, PlayerNotFoundException
{
boolean skipHidden = sender instanceof Player && !ess.getUser(sender).isAuthorized("essentials.vanish.interact");
boolean foundUser = false;
@@ -153,7 +153,7 @@ public class Commandexp extends EssentialsCommand
}
if (!foundUser)
{
- throw new NotEnoughArgumentsException(_("playerNotFound"));
+ throw new PlayerNotFoundException();
}
}