Update PapiExtension.java

This commit is contained in:
CrazyCloudCraft | Argantiu 2022-10-12 07:33:49 +02:00 committed by GitHub
parent 2a94ce099d
commit a7cf9c575f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: