improve prestige customisation

add prestiges section of messages.yml
add prestige gui title
add first rank for prestiges
This commit is contained in:
okx-code
2018-09-06 21:30:21 +01:00
parent f78bc81d0f
commit 4c7c4ef7f5
10 changed files with 72 additions and 50 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ public class Gui implements InventoryHolder {
gui.cancel = getItem(config.getConfigurationSection("cancel"), player, oldRank, rank);
Inventory inventory = Bukkit.createInventory(gui, items.length,
plugin.getMessage(rank, Message.TITLE)
plugin.getMessage(oldRank, gui.prestige ? Message.PRESTIGE_TITLE : Message.TITLE)
.replaceRanks(player, oldRank, rank)
.replaceFromTo(oldRank)
.toString());