Implemented #31

This commit is contained in:
Butzlabben 2019-08-02 13:31:36 +02:00
parent 5411983f7d
commit c299e51c7e
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ public class PapiExtension extends PlaceholderExpansion {
if (!config.hasWorld())
return "none";
return SystemWorld.getSystemWorld(config.getWorldname()).isLoaded() + "";
case "pretty_world_name":
if (!config.hasWorld())
return "none";
return config.getOwner().getName();
default:
throw new IllegalArgumentException("No placeholder named\"" + getIdentifier() + "_" + params + "\" is known");
}