mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-13 10:54:43 +02:00
Progress.
This commit is contained in:
@ -25,9 +25,9 @@
|
||||
*/
|
||||
package com.plotsquared.bukkit.placeholder;
|
||||
|
||||
import com.plotsquared.core.PlotSquared;
|
||||
import com.plotsquared.core.player.PlotPlayer;
|
||||
import com.plotsquared.core.plot.Plot;
|
||||
import com.plotsquared.core.util.uuid.UUIDHandler;
|
||||
import me.clip.placeholderapi.PlaceholderAPIPlugin;
|
||||
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
||||
import org.bukkit.Bukkit;
|
||||
@ -62,7 +62,7 @@ public class Placeholders extends PlaceholderExpansion {
|
||||
}
|
||||
|
||||
@Override public String onPlaceholderRequest(Player p, String identifier) {
|
||||
final PlotPlayer pl = PlotPlayer.get(p.getName());
|
||||
final PlotPlayer pl = PlotSquared.imp().getPlayerManager().getPlayerIfExists(p.getUniqueId());
|
||||
|
||||
if (pl == null) {
|
||||
return "";
|
||||
@ -122,7 +122,8 @@ public class Placeholders extends PlaceholderExpansion {
|
||||
if (uid == null) {
|
||||
return "";
|
||||
}
|
||||
String name = UUIDHandler.getName(uid);
|
||||
|
||||
String name = PlotSquared.get().getImpromptuUUIDPipeline() .getSingle(uid, 5L);
|
||||
|
||||
if (name != null) {
|
||||
return name;
|
||||
|
Reference in New Issue
Block a user