mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
Implemented World.getWorldType
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
876c2db682
commit
e3c83ba119
1 changed files with 4 additions and 0 deletions
|
@ -943,4 +943,8 @@ public class CraftWorld implements World {
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public org.bukkit.WorldType getWorldType() {
|
||||||
|
return org.bukkit.WorldType.getByName(world.getWorldData().getType().name());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue