Solved Get DimensionManager from Location

Discussion in 'Spigot Plugin Development' started by PapiCapi, Feb 20, 2020.

Thread Status:
Not open for further replies.
  1. Hey, i'm trying to update an old plugin and i'm trying to get the DimensionManager from a location.
    In 1.11, this line seems to work quite well but not using spigot 1.15 :
    Code (Text):
    DimensionManager dimension = ((CraftWorld) location.getWorld()).getHandle().dimension;
    Does anyone know how i can get the DimensionManager ?
     
  2. Try

    Code (Java):

    ((CraftWorld)worldInstance).getHandle().worldProvider.getDimensionManager()
     
     
    • Like Like x 1
  3. Code (Text):
    ((CraftWorld) w).getHandle().worldProvider.getDimensionManager()
     
    • Like Like x 1
Thread Status:
Not open for further replies.