Map name

Discussion in 'BungeeCord Plugin Development' started by aquathickshell, May 20, 2015.

  1. Is there anyway of using the world name in a sign?
    I am struggling to find out how. Pls help
     
  2. If you don't know, is there a way to do something along the lines of:
    Code (Text):
    Bukkit.getWorld(serverPlayers = worldPlayers);
    or
    Bukkit.getWorlds(serverPlayers = worldPlayers);
     
  3. What're you trying to do? I don't understand
     
  4. This code makes no sense (invalid syntax). I'm not sure what you're asking.

    If you want to get the world that a sign belongs to, you can simple use getWorld() from the block that the sign belongs to:

    block.getWorld()

    If you want to get all loaded worlds in a server, you can use Bukkit.getWorlds(), which will return List<World>. You can call getName() on a world to get the name of a world.
     
  5. I am wanting to find the world from another server where all of the players on that server are playing