Update PapiExtension.java

This commit is contained in:
CrazyCloudCraft | Argantiu 2022-10-12 07:21:44 +02:00 committed by GitHub
parent 4d4a157d58
commit 2a94ce099d
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: