Use player.getPlayer instead

This commit is contained in:
Maroon28 2021-09-28 10:07:58 +02:00
parent 8a4b1320bd
commit b42f9ce73f
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import de.erethon.dungeonsxl.api.dungeon.Game;
import de.erethon.dungeonsxl.api.player.PlayerGroup;
import de.erethon.dungeonsxl.api.world.GameWorld;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.entity.Player;
import org.bukkit.OfflinePlayer;
/**
* @author Daniel Saukel
@ -67,7 +67,7 @@ public class PlaceholderUtil extends PlaceholderExpansion {
if (player == null) {
return "";
}
PlayerGroup group = plugin.getPlayerGroup(player);
PlayerGroup group = plugin.getPlayerGroup(player.getPlayer());
switch (identifier) {
case "group_members":