Add support for custom world names
This commit is contained in:
parent
28b3965582
commit
d70fb4f812
4 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
![Java CI with Maven](https://github.com/Kas-tle/CustomDimensions/workflows/Java%20CI%20with%20Maven/badge.svg)
|
||||
![Java CI with Maven](https://github.com/TBMCPlugins/CustomDimensions/workflows/Java%20CI%20with%20Maven/badge.svg)
|
||||
# CustomDimensions
|
||||
Custom dimension support for 1.16.4 Bukkit/Spigot/Paper servers
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>com.github.TBMCPlugins</groupId>
|
||||
<artifactId>CustomDimensions</artifactId>
|
||||
<version>1.5.1</version>
|
||||
<version>1.5.0</version>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
|
|
@ -69,7 +69,9 @@ public class CustomDimensions extends JavaPlugin implements Listener {
|
|||
ResourceKey<World> worldKey = ResourceKey.a(IRegistry.L, dimKey.a());
|
||||
DimensionManager dimensionmanager = dimension.b();
|
||||
ChunkGenerator chunkgenerator = dimension.c();
|
||||
var name = dimKey.a().getKey();
|
||||
String name = getConfig().getString("worldNames." + dimKey.a());
|
||||
if (name == null)
|
||||
name = dimKey.a().getKey();
|
||||
if (Bukkit.getWorld(name) != null) {
|
||||
getLogger().info(name + " already loaded");
|
||||
return;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: CustomDimensions
|
||||
main: buttondevteam.customdimensions.CustomDimensions
|
||||
version: '1.4'
|
||||
version: '1.5'
|
||||
api-version: '1.16'
|
||||
loadbefore:
|
||||
- Multiverse-Core
|
||||
|
|
Loading…
Reference in a new issue