Solved get world name from NMS World

Discussion in 'Spigot Plugin Development' started by WAS, Apr 19, 2017.

Thread Status:
Not open for further replies.
  1. WAS

    WAS

    Is there any way to find out the name of a world via NMS World?
     
  2. Do it like CraftBukkit does it?
    org.bukkit.craftbukkit.v1_10_R1.CraftWorld#getName:
    Code (Java):
    public String getName() {
      return world.worldData.getName();
    }
    net.minecraft.server.v1_10_R1.World.worldData -> net.minecraft.server.v1_10_R1.WorldData#getName
     
  3. WAS

    WAS

    Cool. Thanks...
     
Thread Status:
Not open for further replies.