Browse files

It's always nice if I could actually see mistakes right in front of my

face.

Signed-off-by: Robert Xu <robxu9@gmail.com>
  • Loading branch information...
1 parent 42a3b92 commit 0d7ae32673a05424c2cceafc69b168312e17ca3f @robxu9 robxu9 committed Mar 29, 2012
View
6 src/main/java/com/theminequest/MineQuest/Frontend/Command/QuestCommandFrontend.java
@@ -27,8 +27,12 @@ public boolean onCommand(CommandSender arg0, Command arg1, String arg2,
return false;
}
Player player = (Player)arg0;
+
+ if (arg2.equals(""))
+ return help(player,arg3);
+
try {
- Method m = this.getClass().getMethod(arg1.getName().toLowerCase(), Player.class, String[].class);
+ Method m = this.getClass().getMethod(arg2, Player.class, String[].class);
return (Boolean)m.invoke(this, player, arg3);
} catch (Exception e) {
return false;

0 comments on commit 0d7ae32

Please sign in to comment.