public boolean allowConsole() {
return false;
}
public void execute() {
Position pos = new Position(player.getLocation());
this.genWorldname(0);
if (this.handleWorld()) {
WorldManager.setSpawn(worldname, pos);
if (worldname.equalsIgnoreCase(player.getWorld().getName())) {
player.getWorld().setSpawnLocation(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ());
}
sender.sendMessage(ChatColor.GREEN + "Spawn location of world '" + worldname + "' set to your position!");
}
}