mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-08 02:12:37 -05:00
Also strip under BungeeChat mode to support ChatColor plugin etc.
This commit is contained in:
1 parent
8a752c2ec2
commit
36764ffaaa
1 file changed
+5
-3
@@ -485,8 +485,10 @@ public class ShopManager implements Reloadable {
|
||||
if (!plugin.getShopManager().getActions().containsKey(p.getUniqueId())) {
|
||||
return;
|
||||
}
|
||||
final String message = ChatColor.stripColor(msg);
|
||||
String message = net.md_5.bungee.api.ChatColor.stripColor(msg);
|
||||
message = ChatColor.stripColor(message);
|
||||
// Use from the main thread, because Bukkit hates life
|
||||
String finalMessage = message;
|
||||
Util.mainThreadRun(() -> {
|
||||
Map<UUID, Info> actions = getActions();
|
||||
// They wanted to do something.
|
||||
@@ -500,10 +502,10 @@ public class ShopManager implements Reloadable {
|
||||
return;
|
||||
}
|
||||
if (info.getAction() == ShopAction.CREATE) {
|
||||
actionCreate(p, info, message, bypassProtectionChecks);
|
||||
actionCreate(p, info, finalMessage, bypassProtectionChecks);
|
||||
}
|
||||
if (info.getAction() == ShopAction.BUY) {
|
||||
actionTrade(p, info, message);
|
||||
actionTrade(p, info, finalMessage);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user