Implement getNameUnsafe method to allow an unloaded world's name to be accessed (#1712)

* Implement getNameUnsafe method to allow an unloaded world's name to be accessed
 - Fixes #1671 and #504

* Add javadoc since tag

Co-authored-by: Alexander Brandes <mc.cache@web.de>

Co-authored-by: Alexander Brandes <mc.cache@web.de>
This commit is contained in:
Jordan
2022-05-05 20:39:45 +01:00
committed by GitHub
parent c1b5f8c84a
commit 210ee9f2ef
8 changed files with 63 additions and 7 deletions

View File

@ -15,4 +15,11 @@ public class WorldUnloadedException extends WorldEditException {
super(Caption.of("worldedit.error.world-unloaded"));
}
/**
* Create a new instance.
*/
public WorldUnloadedException(String name) {
super(Caption.of("worldedit.error.named-world-unloaded", name));
}
}