mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-12-24 04:57:36 +01:00
Removed %player%, use player expansion instead
This commit is contained in:
parent
174898ba72
commit
a299325b39
@ -1,17 +1,16 @@
|
||||
package net.Indyuce.mmocore.comp.placeholder;
|
||||
|
||||
import io.lumine.mythic.lib.MythicLib;
|
||||
import me.clip.placeholderapi.PlaceholderAPI;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
|
||||
import me.clip.placeholderapi.PlaceholderAPI;
|
||||
import io.lumine.mythic.lib.MythicLib;
|
||||
|
||||
public class PlaceholderAPIParser implements PlaceholderParser {
|
||||
public PlaceholderAPIParser() {
|
||||
new RPGPlaceholders().register();
|
||||
}
|
||||
public PlaceholderAPIParser() {
|
||||
new RPGPlaceholders().register();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String parse(OfflinePlayer player, String string) {
|
||||
return MythicLib.plugin.parseColors(PlaceholderAPI.setPlaceholders(player, string.replace("%player%", player.getName())));
|
||||
}
|
||||
@Override
|
||||
public String parse(OfflinePlayer player, String string) {
|
||||
return MythicLib.plugin.parseColors(PlaceholderAPI.setPlaceholders(player, string));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user