mirror of
https://github.com/songoda/EpicVouchers.git
synced 2024-11-22 01:56:21 +01:00
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:
parent
23079d068e
commit
99eb5d9e54
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user