mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2024-12-02 13:23:21 +01:00
Update PapiExtension.java
This commit is contained in:
parent
b308f0aca9
commit
57e16d12f0
@ -38,9 +38,9 @@ public class PapiExtension extends PlaceholderExpansion {
|
|||||||
DependenceConfig config = new DependenceConfig(p);
|
DependenceConfig config = new DependenceConfig(p);
|
||||||
switch (params) {
|
switch (params) {
|
||||||
case "has_world":
|
case "has_world":
|
||||||
String has_world = "%worldsystem_has_world%";
|
String hasworld = "%worldsystem_has_world%";
|
||||||
has_world = PlaceholderAPI.setPlaceholders(event.getPlayer(), has_world);
|
hasworld = PlaceholderAPI.setPlaceholders(event.getPlayer(), hasworld);
|
||||||
event.setJoinMessage(joinText);
|
event.setJoinMessage(hasworld);
|
||||||
return new DependenceConfig(p).hasWorld() + "";
|
return new DependenceConfig(p).hasWorld() + "";
|
||||||
case "is_creator":
|
case "is_creator":
|
||||||
WorldPlayer player = new WorldPlayer(Objects.requireNonNull(Bukkit.getPlayer(p.getUniqueId())));
|
WorldPlayer player = new WorldPlayer(Objects.requireNonNull(Bukkit.getPlayer(p.getUniqueId())));
|
||||||
|
Loading…
Reference in New Issue
Block a user