diff --git a/spigot/src/main/java/net/cybercake/cyberapi/spigot/items/GUI.java b/spigot/src/main/java/net/cybercake/cyberapi/spigot/items/GUI.java deleted file mode 100644 index 770ea2c..0000000 --- a/spigot/src/main/java/net/cybercake/cyberapi/spigot/items/GUI.java +++ /dev/null @@ -1,24 +0,0 @@ -package net.cybercake.cyberapi.spigot.items; - -import net.cybercake.cyberapi.spigot.CyberAPI; -import net.cybercake.cyberapi.spigot.basic.BetterStackTraces; -import net.cybercake.cyberapi.spigot.chat.UChat; -import org.bukkit.Material; -import org.bukkit.enchantments.Enchantment; -import org.bukkit.inventory.Inventory; -import org.bukkit.inventory.ItemFlag; -import org.bukkit.inventory.ItemStack; -import org.bukkit.inventory.meta.ItemMeta; -import org.bukkit.util.ChatPaginator; - -import java.util.ArrayList; -import java.util.List; - -/** - * Represents basic GUI functions - */ -public class GUI { - - - -} diff --git a/spigot/src/main/java/net/cybercake/cyberapi/spigot/items/ItemCreator.java b/spigot/src/main/java/net/cybercake/cyberapi/spigot/items/ItemCreator.java index 6f720eb..c29f77c 100644 --- a/spigot/src/main/java/net/cybercake/cyberapi/spigot/items/ItemCreator.java +++ b/spigot/src/main/java/net/cybercake/cyberapi/spigot/items/ItemCreator.java @@ -371,6 +371,7 @@ public ItemBuilder lore(List lore) { * @since 90 */ public ItemBuilder addLore(String line) { + if (line == null) return this; return addLore(Collections.singletonList(line)); // string is formatted later } @@ -379,6 +380,7 @@ public ItemBuilder addLore(String line) { * @return 90 */ public ItemBuilder addLore(String... lines) { + if (lines == null) return this; return addLore(Arrays.asList(lines)); // strings are formatted later } @@ -387,6 +389,8 @@ public ItemBuilder addLore(String... lines) { * @return 90 */ public ItemBuilder addLore(List lines) { + if (lines == null) return this; + List lore = this.meta.getLore(); if (lore == null)