mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Fix format injection in RP command
This commit is contained in:
1 parent
1fc8886ccb
commit
3582816208
1 file changed
+1
-1
@@ -23,7 +23,7 @@ public class MeCommand extends BaseCommand {
|
||||
|
||||
@Default
|
||||
public void baseCommand(Player player, String... args) {
|
||||
String message = String.join(" ", args);
|
||||
String message = String.join(" ", args).replace("</pre>", "");
|
||||
String format = PlaceholderAPI.setPlaceholders(player, simpleChat.getConfig().getString("language.me"));
|
||||
Component component = MiniMessage.instance().parse(format, "message", message);
|
||||
|
||||
|
||||
Reference in new issue
Block a user