Placeholders no longer break when reloading PAPI

This commit is contained in:
ASangarin 2020-08-29 16:07:12 +02:00
parent 6cdd7608d5
commit 741d855fc5

View File

@ -18,6 +18,15 @@ import net.Indyuce.mmocore.api.quest.PlayerQuests;
import net.mmogroup.mmolib.api.util.AltChar;
public class RPGPlaceholders extends PlaceholderExpansion {
@Override
public boolean persist(){
return true;
}
@Override
public boolean canRegister(){
return true;
}
@Override
public String getAuthor() {
@ -36,7 +45,6 @@ public class RPGPlaceholders extends PlaceholderExpansion {
@Override
public String onRequest(@Nullable OfflinePlayer player, @NotNull String identifier) {
if (identifier.equals("level"))
return "" + PlayerData.get(player).getLevel();