mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-01 20:15:28 +02:00
PAPI Support WIP
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.gmail.nossr50.placeholders;
|
||||
|
||||
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class XpRatePlaceholder implements Placeholder {
|
||||
private final PapiExpansion papiExpansion;
|
||||
|
||||
public <S extends PrimarySkillType> XpRatePlaceholder(PapiExpansion papiExpansion) {
|
||||
this.papiExpansion = papiExpansion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String process(Player player, String params) {
|
||||
return papiExpansion.getXpRate(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "xprate";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user