33 lines
843 B
Java
33 lines
843 B
Java
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;
|
|
|
|
import com.majinnaibu.bukkitplugins.metropolis.MetropolisPlugin;
|
|
|
|
public class MetropolisHomeGenerateCommand implements CommandExecutor {
|
|
|
|
private MetropolisPlugin _plugin;
|
|
|
|
public MetropolisHomeGenerateCommand(MetropolisPlugin plugin){
|
|
_plugin = plugin;
|
|
}
|
|
|
|
@SuppressWarnings("deprecation")
|
|
@Override
|
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
|
if(args.length < 1){
|
|
return false;
|
|
}
|
|
|
|
_plugin.generateHome(Bukkit.getOfflinePlayer(args[0]));
|
|
|
|
sender.sendMessage("[Metropolis] Home generated for " + args[0]);
|
|
|
|
return true;
|
|
}
|
|
|
|
}
|