Update PapiExtension.java

This commit is contained in:
CrazyCloudCraft | Argantiu 2022-10-12 08:29:36 +02:00 committed by GitHub
parent b308f0aca9
commit 57e16d12f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,9 +38,9 @@ public class PapiExtension extends PlaceholderExpansion {
DependenceConfig config = new DependenceConfig(p);
switch (params) {
case "has_world":
String has_world = "%worldsystem_has_world%";
has_world = PlaceholderAPI.setPlaceholders(event.getPlayer(), has_world);
event.setJoinMessage(joinText);
String hasworld = "%worldsystem_has_world%";
hasworld = PlaceholderAPI.setPlaceholders(event.getPlayer(), hasworld);
event.setJoinMessage(hasworld);
return new DependenceConfig(p).hasWorld() + "";
case "is_creator":
WorldPlayer player = new WorldPlayer(Objects.requireNonNull(Bukkit.getPlayer(p.getUniqueId())));