Adds some changes to begin the switch to UUID based homes.

This commit is contained in:
2014-08-30 12:16:29 -07:00
parent 6b601f8218
commit 79fd24c12b
10 changed files with 253 additions and 103 deletions

View File

@@ -1,5 +1,6 @@
package com.majinnaibu.bukkitplugins.metropolis.commands;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
@@ -14,13 +15,14 @@ public class MetropolisHomeGenerateCommand implements CommandExecutor {
_plugin = plugin;
}
@SuppressWarnings("deprecation")
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if(args.length < 1){
return false;
}
_plugin.generateHome(args[0]);
_plugin.generateHome(Bukkit.getOfflinePlayer(args[0]));
sender.sendMessage("[Metropolis] Home generated for " + args[0]);