Fix typo in iteminfo book generation message key

This commit is contained in:
Phoenix616 2020-06-28 18:09:00 +01:00
parent 6ee7c4759a
commit a0630db6f8
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
3 changed files with 4 additions and 6 deletions

View File

@ -26,7 +26,7 @@ public class Messages {
public static Message iteminfo_shopname;
public static Message iteminfo_repaircost;
public static Message iteminfo_book;
public static Message iteminfo_book_generatopm;
public static Message iteminfo_book_generation;
public static Message iteminfo_lore;
public static Message METRICS;

View File

@ -1,7 +1,6 @@
package com.Acrobot.ChestShop.Listeners;
import com.Acrobot.Breeze.Utils.StringUtil;
import com.Acrobot.ChestShop.Configuration.Messages;
import com.Acrobot.ChestShop.Events.ItemInfoEvent;
import org.bukkit.ChatColor;
import org.bukkit.Material;
@ -23,10 +22,9 @@ import static com.Acrobot.Breeze.Utils.NumberUtil.toRoman;
import static com.Acrobot.Breeze.Utils.NumberUtil.toTime;
import static com.Acrobot.Breeze.Utils.StringUtil.capitalizeFirstLetter;
import static com.Acrobot.ChestShop.Configuration.Messages.iteminfo_book;
import static com.Acrobot.ChestShop.Configuration.Messages.iteminfo_book_generatopm;
import static com.Acrobot.ChestShop.Configuration.Messages.iteminfo_book_generation;
import static com.Acrobot.ChestShop.Configuration.Messages.iteminfo_lore;
import static com.Acrobot.ChestShop.Configuration.Messages.iteminfo_repaircost;
import static com.Acrobot.ChestShop.Configuration.Messages.replace;
/**
* @author Acrobot
@ -110,7 +108,7 @@ public class ItemInfoListener implements Listener {
"pages", String.valueOf(book.getPageCount())
);
if (book.hasGeneration()) {
iteminfo_book_generatopm.send(event.getSender(),
iteminfo_book_generation.send(event.getSender(),
"generation", StringUtil.capitalizeFirstLetter(book.getGeneration().name(), '_')
);
}

View File

@ -7,7 +7,7 @@ iteminfo_book: |-
&fBook Title: &7%title
&fBook Author: &7%author
&fBook Pages: &7%pages
iteminfo_book_generatopm: "&fBook Generation: &7%generation"
iteminfo_book_generation: "&fBook Generation: &7%generation"
iteminfo_lore: |-
&fLore:
&r%lore