diff --git a/src/main/java/de/butzlabben/world/util/PapiExtension.java b/src/main/java/de/butzlabben/world/util/PapiExtension.java index 2cb6356..b570db7 100644 --- a/src/main/java/de/butzlabben/world/util/PapiExtension.java +++ b/src/main/java/de/butzlabben/world/util/PapiExtension.java @@ -85,8 +85,8 @@ public class PapiExtension extends PlaceholderExpansion { return config.getOwner().getName(); } else { World world = ((Player) p).getWorld(); - if (WorldConfig.exists(world.getName())) - return WorldConfig.getWorldConfig(world.getName()).getOwnerName(); + if (WorldConfig.exists(world.getName()) + return WorldConfig.getWorldConfig(world.getName().getOwnerName(); return world.getName(); } default: