mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-09-21 03:21:02 +02:00
update itembuilder
This commit is contained in:
parent
eb30c713ea
commit
ee3d4f30c7
@ -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) {
|
Loading…
Reference in New Issue
Block a user