Debug command should try to use sender as player context if none is given

This commit is contained in:
gravitylow committed 2014-01-23 16:01:14 -05:00
1 parent a7bae1e329
commit 3517b6068a
2 files changed
+4 -1

No files matched your search

@@ -45,6 +45,10 @@ public class CommandDebug extends CommandBase {
Player player = null;
if (args.length == 1) {
player = Bukkit.getPlayer(args[0]);
} else {
if (cs instanceof Player) {
player = (Player) cs;
}
}
cs.sendMessage(GRAY + "Please wait while I collect some data...");