mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Underline is bad
This commit is contained in:
parent
0c406f1277
commit
fb4b20d9aa
@ -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<Type> 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())) {
|
||||
|
@ -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");
|
||||
|
@ -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"))
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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"))
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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()) {
|
||||
|
@ -47,7 +47,7 @@ public class ItemEdition extends EditionInventory {
|
||||
List<ItemStat> 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();
|
||||
|
@ -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)) {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user