mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-03 11:31:21 +01:00
Fixed elements back button
This commit is contained in:
parent
69027e83f2
commit
246af9a998
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user