Update to 1.10

This commit is contained in:
ShadowRanger 2016-06-09 22:46:36 +10:00
parent de0d28b12d
commit eaabd30dc2

View file

@ -58,7 +58,7 @@ public class OpenInvCommand implements CommandExecutor {
} }
if (args.length > 0 && args[0].equalsIgnoreCase("?")) { if (args.length > 0 && args[0].equalsIgnoreCase("?")) {
OpenInv.showHelp((Player) sender); OpenInv.showHelp(sender);
return true; return true;
} }
@ -76,8 +76,7 @@ public class OpenInvCommand implements CommandExecutor {
// Read from history if target is not named // Read from history if target is not named
if (args.length < 1) { if (args.length < 1) {
uuid = history; uuid = history;
} } else {
else {
uuid = UUIDUtils.getPlayerUUID(args[0]); uuid = UUIDUtils.getPlayerUUID(args[0]);
if (uuid == null) { if (uuid == null) {
player.sendMessage(ChatColor.RED + "Player not found!"); player.sendMessage(ChatColor.RED + "Player not found!");