fix: replace usage of deleted SkullUtils class with XSkull

Updating the Core also updated XSeries which got rid of
SkullUtils in favor of new methods in XSkull
This commit is contained in:
Christian Koop 2024-06-22 15:52:38 +02:00
parent 23079d068e
commit 99eb5d9e54
No known key found for this signature in database
GPG Key ID: 6A4A09E8ED946113

View File

@ -1,11 +1,12 @@
package com.craftaro.epicvouchers.libraries.inventory;
import com.craftaro.third_party.com.cryptomorin.xseries.SkullUtils;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicvouchers.EpicVouchers;
import com.craftaro.epicvouchers.libraries.ItemBuilder;
import com.craftaro.epicvouchers.menus.ActionMenu;
import com.craftaro.epicvouchers.voucher.Voucher;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.profiles.builder.XSkull;
import com.craftaro.third_party.com.cryptomorin.xseries.profiles.objects.Profileable;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@ -53,7 +54,7 @@ public abstract class PlayersMenu extends FastInv {
Player player = this.players.get(index);
ItemStack itemStack = SkullUtils.getSkull(player.getUniqueId());
ItemStack itemStack = XSkull.createItem().profile(new Profileable.OfflinePlayerProfileable(player)).apply();
ItemMeta itemMeta = itemStack.getItemMeta();
itemMeta.setDisplayName(YELLOW + player.getName());