From f2fd7a2362e908b7a07222a52cf8214011205f91 Mon Sep 17 00:00:00 2001 From: LOOHP Date: Wed, 29 Apr 2020 19:39:42 +0800 Subject: [PATCH] 2.1.3 Update --- src/com/loohp/interactivechat/Utils/MessageUtils.java | 2 +- src/config.yml | 8 ++++---- src/plugin.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/com/loohp/interactivechat/Utils/MessageUtils.java b/src/com/loohp/interactivechat/Utils/MessageUtils.java index f7356280..aef2e8af 100644 --- a/src/com/loohp/interactivechat/Utils/MessageUtils.java +++ b/src/com/loohp/interactivechat/Utils/MessageUtils.java @@ -20,7 +20,7 @@ public static String preprocessMessage(String message) { regex = regex.replaceAll("\\\\?.", "(?:§.)?(?:$0)"); message = message.replaceAll(regex, placeholder); } - message = message.replaceAll(CustomStringUtils.escapeMetaCharacters(placeholder), InteractiveChat.aliasesMapping.get(placeholder)); + message = message.replaceAll(placeholder, InteractiveChat.aliasesMapping.get(placeholder)); } return message; } diff --git a/src/config.yml b/src/config.yml index 0d4efa7b..c669c788 100644 --- a/src/config.yml +++ b/src/config.yml @@ -104,7 +104,7 @@ ItemDisplay: #The keyword to trigger the item display function Keyword: "[item]" Aliases: - - "[i]" + - "(?i)(\\[i\\])" #The text to replace the keyword #Special Placeholders: #Use {Item} for item display name @@ -130,7 +130,7 @@ ItemDisplay: #The keyword to trigger the inventory display function Keyword: "[inv]" Aliases: - - "[inventory]" + - "(?i)(\\[inventory\\])" #The text to replace the keyword Text: "&f[&b%player_name%'s Inventory&f]" #The title of the inventory view @@ -149,7 +149,7 @@ ItemDisplay: #The keyword to trigger the ender chest display function Keyword: "[ender]" Aliases: - - "[e]" + - "(?i)(\\[e\\])" #The text to replace the keyword Text: "&f[&d%player_name%'s Ender Chest&f]" #The title of the ender chest inventory view @@ -199,7 +199,7 @@ CustomPlaceholders: #The keyword to look for in the chat Text: "[money]" Aliases: - - "[m]" + - "(?i)(\\[m\\])" #Parse Placeholders in the keyword text ParseKeyword: false #Whether or the keyword check is case sensitive diff --git a/src/plugin.yml b/src/plugin.yml index a1b83859..01acabb1 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: InteractiveChat author: loohp -version: 2.1.2 +version: 2.1.3 main: com.loohp.interactivechat.InteractiveChat api-version: 1.13 description: Make the chat interactive