From a7cf9c575f1242543a904b6e7a251bbc58e67520 Mon Sep 17 00:00:00 2001 From: CrazyCloudCraft | Argantiu <95505222+CrazyCloudCraft@users.noreply.github.com> Date: Wed, 12 Oct 2022 07:33:49 +0200 Subject: [PATCH] Update PapiExtension.java --- src/main/java/de/butzlabben/world/util/PapiExtension.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/butzlabben/world/util/PapiExtension.java b/src/main/java/de/butzlabben/world/util/PapiExtension.java index b570db7..2cb6356 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: