mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-06 18:47:52 +01:00
Update PapiExtension.java
This commit is contained in:
parent
f43c84cb15
commit
651ec8f2af
@ -73,13 +73,13 @@ public class PapiExtension extends PlaceholderExpansion {
|
|||||||
case "world_loaded":
|
case "world_loaded":
|
||||||
if (!config.hasWorld())
|
if (!config.hasWorld())
|
||||||
return "none";
|
return "none";
|
||||||
return Objects.requireNonNull(SystemWorld.getSystemWorld(config.getWorldname()).isLoaded() + "";
|
return Objects.requireNonNull(SystemWorld.getSystemWorld(config.getWorldname())).isLoaded() + "";
|
||||||
case "pretty_world_name":
|
case "pretty_world_name":
|
||||||
if (!p.isOnline()) {
|
if (!p.isOnline()) {
|
||||||
if (!config.hasWorld()) {
|
if (!config.hasWorld()) {
|
||||||
Player p1 = p.getPlayer();
|
Player p1 = p.getPlayer();
|
||||||
if (p1 != null && p1.isOnline())
|
if (p1 != null && p1.isOnline())
|
||||||
return Objects.requireNonNull(p1.getLocation().getWorld().getName();
|
return Objects.requireNonNull(p1.getLocation().getWorld()).getName();
|
||||||
return "none";
|
return "none";
|
||||||
}
|
}
|
||||||
return config.getOwner().getName();
|
return config.getOwner().getName();
|
||||||
|
Loading…
Reference in New Issue
Block a user