mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-05 03:06:24 +02:00
22 lines
542 B
Java
22 lines
542 B
Java
package com.gmail.nossr50.placeholders;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class PartyIsMemberPlaceholder implements Placeholder {
|
|
|
|
private final PapiExpansion papiExpansion;
|
|
public PartyIsMemberPlaceholder(PapiExpansion papiExpansion) {
|
|
this.papiExpansion = papiExpansion;
|
|
}
|
|
|
|
@Override
|
|
public String process(Player player, String params) {
|
|
return (papiExpansion.getPartyName(player) == null) ? "false" : "true";
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return "in_party";
|
|
}
|
|
}
|