Package com.bergerkiller.bukkit.mw

Examples of com.bergerkiller.bukkit.mw.Position


  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!");
    }
  }
View Full Code Here


          respawnWorld = world;
          respawnWorldName = config.worldname;
        }
        Location respawnLoc = respawnWorld.getSpawnLocation();
        if (respawnLoc != null) {
          config.spawnPoint = new Position(respawnLoc);
          if (respawnLoc.getWorld() == null) {
            config.spawnPoint.setWorldName(respawnWorldName);
          }
        }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.mw.Position

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.