Fixed elements back button

This commit is contained in:
Aria Sangarin 2020-01-23 20:48:03 +01:00
parent 69027e83f2
commit 246af9a998
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ public class ElementsEdition extends EditionInventory {
public ElementsEdition(Player player, Type type, String id) { public ElementsEdition(Player player, Type type, String id) {
super(player, type, id); super(player, type, id);
if (correspondingSlot.isEmpty()) { if (correspondingSlot.isEmpty()) {
correspondingSlot.put(19, "fire.damage"); correspondingSlot.put(19, "fire.damage");
correspondingSlot.put(25, "fire.defense"); correspondingSlot.put(25, "fire.defense");
@ -114,7 +114,7 @@ public class ElementsEdition extends EditionInventory {
} }
registerItemEdition(config); registerItemEdition(config);
new ElementsEdition(player, type, id).open(); new ElementsEdition(player, type, id).open(getPreviousPage());
player.sendMessage(MMOItems.plugin.getPrefix() + ChatColor.RED + MMOUtils.caseOnWords(elementPath.replace(".", " ")) + ChatColor.GRAY + " successfully removed."); player.sendMessage(MMOItems.plugin.getPrefix() + ChatColor.RED + MMOUtils.caseOnWords(elementPath.replace(".", " ")) + ChatColor.GRAY + " successfully removed.");
} }
} }

View File

@ -107,7 +107,7 @@ public class SoundsEdition extends EditionInventory {
} }
registerItemEdition(config); registerItemEdition(config);
new SoundsEdition(player, type, id).open(); new SoundsEdition(player, type, id).open(getPreviousPage());
player.sendMessage(MMOItems.plugin.getPrefix() + ChatColor.RED + MMOUtils.caseOnWords(soundPath.replace("-", " ")) + " Sound" + ChatColor.GRAY + " successfully removed."); player.sendMessage(MMOItems.plugin.getPrefix() + ChatColor.RED + MMOUtils.caseOnWords(soundPath.replace("-", " ")) + " Sound" + ChatColor.GRAY + " successfully removed.");
} }
} }