mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
1.8.5
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -23,7 +23,7 @@
|
||||
|
||||
<groupId>lol.hyper</groupId>
|
||||
<artifactId>toolstats</artifactId>
|
||||
<version>1.8.4</version>
|
||||
<version>1.8.5</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>ToolStats</name>
|
||||
|
||||
@@ -64,7 +64,7 @@ public class CraftItem implements Listener {
|
||||
|
||||
// if the player shift clicks, send them this warning
|
||||
if (event.isShiftClick()) {
|
||||
Component component = toolStats.configTools.formatLore("shift-click-warning", null, null);
|
||||
Component component = toolStats.configTools.formatLore("shift-click-warning.crafting", null, null);
|
||||
event.getWhoClicked().sendMessage(component);
|
||||
}
|
||||
|
||||
|
||||
@@ -69,10 +69,8 @@ public class VillagerTrade implements Listener {
|
||||
}
|
||||
// if the player shift clicks, show the warning
|
||||
if (event.isShiftClick()) {
|
||||
String configMessage = toolStats.config.getString("messages.shift-click-warning.trading");
|
||||
if (configMessage != null) {
|
||||
player.sendMessage(ChatColor.translateAlternateColorCodes('&', configMessage));
|
||||
}
|
||||
Component component = toolStats.configTools.formatLore("shift-click-warning.trading", null, null);
|
||||
event.getWhoClicked().sendMessage(component);
|
||||
}
|
||||
ItemStack newItem = addLore(item, player);
|
||||
if (newItem != null) {
|
||||
|
||||
@@ -107,7 +107,9 @@ public class ConfigTools {
|
||||
Component component;
|
||||
|
||||
// set the placeholder to the value
|
||||
if (placeHolder != null && value != null) {
|
||||
lore = lore.replace(placeHolder, String.valueOf(value));
|
||||
}
|
||||
|
||||
// if we match the old color codes, then format them as so
|
||||
Matcher hexMatcher = CONFIG_HEX_PATTERN.matcher(lore);
|
||||
|
||||
Reference in New Issue
Block a user