mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +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
|
@Default
|
||||||
public void baseCommand(Player player, String... args) {
|
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"));
|
String format = PlaceholderAPI.setPlaceholders(player, simpleChat.getConfig().getString("language.me"));
|
||||||
Component component = MiniMessage.instance().parse(format, "message", message);
|
Component component = MiniMessage.instance().parse(format, "message", message);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user