From fb4b20d9aa7596628d2e8f319b2db07074dc0a67 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Mon, 10 Aug 2020 21:46:15 +0200 Subject: [PATCH] Underline is bad --- src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java | 4 ++-- .../java/net/Indyuce/mmoitems/gui/edition/AbilityEdition.java | 2 +- .../net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java | 2 +- .../Indyuce/mmoitems/gui/edition/ArrowParticlesEdition.java | 2 +- .../net/Indyuce/mmoitems/gui/edition/CommandListEdition.java | 2 +- .../net/Indyuce/mmoitems/gui/edition/CraftingEdition.java | 2 +- .../net/Indyuce/mmoitems/gui/edition/ElementsEdition.java | 2 +- .../java/net/Indyuce/mmoitems/gui/edition/ItemEdition.java | 2 +- .../net/Indyuce/mmoitems/gui/edition/ItemUpdaterEdition.java | 2 +- .../net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java | 2 +- .../java/net/Indyuce/mmoitems/gui/edition/RecipeEdition.java | 4 ++-- .../java/net/Indyuce/mmoitems/gui/edition/SoundsEdition.java | 2 +- .../net/Indyuce/mmoitems/gui/edition/UpgradingEdition.java | 2 +- 13 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java b/src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java index 45531c27..e2387d8e 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/ItemBrowser.java @@ -60,7 +60,7 @@ public class ItemBrowser extends PluginInventory { * by the player */ if (type == null) { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Item Explorer"); + Inventory inv = Bukkit.createInventory(this, 54, "Item Explorer"); List types = new ArrayList<>(MMOItems.plugin.getTypes().getAll()); for (int j = min; j < Math.min(max, types.size()); j++) { Type type = types.get(j); @@ -127,7 +127,7 @@ public class ItemBrowser extends PluginInventory { * map at the top to reduce performance impact and are directly rendered */ Inventory inv = Bukkit.createInventory(this, 54, - (deleteMode ? (ChatColor.UNDERLINE + "Delete Mode: ") : (ChatColor.UNDERLINE + "Item Explorer: ")) + type.getName()); + (deleteMode ? ("Delete Mode: ") : ("Item Explorer: ")) + type.getName()); for (int j = min; j < Math.min(max, templates.size()); j++) { MMOItemTemplate template = templates.get(j); if (!cached.containsKey(template.getId())) { diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityEdition.java index 15da6873..c31c4311 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityEdition.java @@ -43,7 +43,7 @@ public class AbilityEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Ability Edition"); + Inventory inv = Bukkit.createInventory(this, 54, "Ability Edition"); int n = 0; String configString = getEditedSection().getString("ability." + configKey + ".type"); diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java index 53a69170..854ad159 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/AbilityListEdition.java @@ -34,7 +34,7 @@ public class AbilityListEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Ability List"); + Inventory inv = Bukkit.createInventory(this, 54, "Ability List"); int n = 0; if (getEditedSection().contains("ability")) diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/ArrowParticlesEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/ArrowParticlesEdition.java index cea71c35..38b03f86 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/ArrowParticlesEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/ArrowParticlesEdition.java @@ -31,7 +31,7 @@ public class ArrowParticlesEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Arrow Particles: " + template.getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Arrow Particles: " + template.getId()); // FileConfiguration config = // template.getType().getConfigFile().getConfig(); diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/CommandListEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/CommandListEdition.java index e944ac71..2b65b038 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/CommandListEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/CommandListEdition.java @@ -32,7 +32,7 @@ public class CommandListEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Command List"); + Inventory inv = Bukkit.createInventory(this, 54, "Command List"); int n = 0; if (getEditedSection().contains("commands")) diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/CraftingEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/CraftingEdition.java index 0d820489..58e5dac6 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/CraftingEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/CraftingEdition.java @@ -32,7 +32,7 @@ public class CraftingEdition extends EditionInventory { @Override public Inventory getInventory() { Inventory inv = Bukkit.createInventory(this, MMOLib.plugin.getVersion().isStrictlyHigher(1, 14) ? 45 : 36, - ChatColor.UNDERLINE + "Crafting Recipes: " + template.getId()); + "Crafting Recipes: " + template.getId()); int n = 0; diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/ElementsEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/ElementsEdition.java index 1745e183..7b3429a1 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/ElementsEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/ElementsEdition.java @@ -47,7 +47,7 @@ public class ElementsEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Elements E.: " + template.getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Elements E.: " + template.getId()); int n = 0; for (Element element : Element.values()) { diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/ItemEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/ItemEdition.java index 0b4d5ace..bbdcda93 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/ItemEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/ItemEdition.java @@ -47,7 +47,7 @@ public class ItemEdition extends EditionInventory { List appliable = new ArrayList<>(getEdited().getType().getAvailableStats()).stream() .filter(stat -> stat.hasValidMaterial(getCachedItem()) && !(stat instanceof InternalStat)).collect(Collectors.toList()); - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Item Edition: " + getEdited().getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Item Edition: " + getEdited().getId()); for (int j = min; j < Math.min(appliable.size(), max); j++) { ItemStat stat = appliable.get(j); ItemStack item = stat.getItem(); diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/ItemUpdaterEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/ItemUpdaterEdition.java index 587e9777..0ea078bc 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/ItemUpdaterEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/ItemUpdaterEdition.java @@ -28,7 +28,7 @@ public class ItemUpdaterEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Item Updater: " + template.getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Item Updater: " + template.getId()); // setup if not in map if (!MMOItems.plugin.getUpdater().hasData(template)) { diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java index 88314472..1a4445c8 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/ParticlesEdition.java @@ -34,7 +34,7 @@ public class ParticlesEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Particles E.: " + template.getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Particles E.: " + template.getId()); int[] slots = { 37, 38, 39, 40, 41, 42, 43 }; int n = 0; diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/RecipeEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/RecipeEdition.java index b0106b8f..d557214b 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/RecipeEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/RecipeEdition.java @@ -35,7 +35,7 @@ public class RecipeEdition extends EditionInventory { } private Inventory setupShapedInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Recipe Editor: " + template.getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Recipe Editor: " + template.getId()); if (!getEditedSection().contains("crafting.shaped.1")) { getEditedSection().set("crafting.shaped.1", new String[] { "AIR AIR AIR", "AIR AIR AIR", "AIR AIR AIR" }); @@ -78,7 +78,7 @@ public class RecipeEdition extends EditionInventory { } private Inventory setupShapelessInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Recipe Editor: " + template.getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Recipe Editor: " + template.getId()); if (!getEditedSection().contains("crafting.shapeless.1")) { getEditedSection().set("crafting.shapeless.1", Arrays.asList("AIR", "AIR", "AIR", "AIR", "AIR", "AIR", "AIR", "AIR", "AIR")); registerTemplateEdition(); diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/SoundsEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/SoundsEdition.java index 3dff3a07..fa2c9f5d 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/SoundsEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/SoundsEdition.java @@ -37,7 +37,7 @@ public class SoundsEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Custom Sounds: " + template.getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Custom Sounds: " + template.getId()); int[] slots = { 19, 22, 25, 28, 31, 34, 37, 40, 43 }; int n = 0; diff --git a/src/main/java/net/Indyuce/mmoitems/gui/edition/UpgradingEdition.java b/src/main/java/net/Indyuce/mmoitems/gui/edition/UpgradingEdition.java index e3b2488b..02ced5ba 100644 --- a/src/main/java/net/Indyuce/mmoitems/gui/edition/UpgradingEdition.java +++ b/src/main/java/net/Indyuce/mmoitems/gui/edition/UpgradingEdition.java @@ -33,7 +33,7 @@ public class UpgradingEdition extends EditionInventory { @Override public Inventory getInventory() { - Inventory inv = Bukkit.createInventory(this, 54, ChatColor.UNDERLINE + "Upgrade Setup: " + template.getId()); + Inventory inv = Bukkit.createInventory(this, 54, "Upgrade Setup: " + template.getId()); boolean workbench = getEditedSection().getBoolean("upgrade.workbench"); if (!template.getType().corresponds(Type.CONSUMABLE)) {