update itembuilder

This commit is contained in:
Ryder Belserion 2024-07-11 20:01:47 -04:00
parent eb30c713ea
commit ee3d4f30c7
No known key found for this signature in database

View File

@ -2,8 +2,8 @@ package com.badbones69.crazyauctions.api.builders;
import com.badbones69.crazyauctions.CrazyAuctions;
import com.badbones69.crazyauctions.Methods;
import com.badbones69.crazyauctions.api.support.PluginSupport;
import com.badbones69.crazyauctions.api.support.SkullCreator;
import com.ryderbelserion.vital.paper.enums.Support;
import io.th0rgal.oraxen.api.OraxenItems;
import me.clip.placeholderapi.PlaceholderAPI;
import org.bukkit.*;
@ -266,7 +266,7 @@ public class ItemBuilder {
public ItemBuilder() {}
private String parse(String message) {
if (PluginSupport.PLACEHOLDERAPI.isPluginEnabled() && this.target != null) {
if (Support.placeholder_api.isEnabled() && this.target != null) {
return Methods.color(PlaceholderAPI.setPlaceholders(this.target, message));
}
@ -280,7 +280,7 @@ public class ItemBuilder {
*/
public ItemStack build() {
// Check if oraxen is enabled.
if (PluginSupport.ORAXEN.isPluginEnabled()) {
if (Support.oraxen.isEnabled()) {
// Get the item.
io.th0rgal.oraxen.items.ItemBuilder oraxenItem = OraxenItems.getItemById(this.customMaterial);
@ -588,7 +588,7 @@ public class ItemBuilder {
this.material = this.itemStack.getType();
} else {
if (PluginSupport.ORAXEN.isPluginEnabled()) {
if (Support.oraxen.isEnabled()) {
io.th0rgal.oraxen.items.ItemBuilder oraxenItem = OraxenItems.getItemById(this.customMaterial);
if (oraxenItem != null) {