mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-20 20:51:27 +01:00
Implemented #31
This commit is contained in:
parent
5411983f7d
commit
c299e51c7e
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user