mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Fix brackets not being escaped properly in descriptions
Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
1 parent
06754c88a4
commit
280a37ef5b
7 files changed
+14
-14
No files matched your search
@@ -9,7 +9,7 @@ public class EditingHandler {
|
||||
|
||||
public static void showEditHomeOptions(Player p, Home home) {
|
||||
MessageManager.sendMessage(p, "edit_home_title", home.getName());
|
||||
p.spigot().sendMessage(new MineDown(MessageManager.getRawMessage("edit_description")).replaceFirst(false).replace("%1%", home.getDescription()).toComponent());
|
||||
MessageManager.sendMessage(p, "edit_description", MineDown.escape(home.getDescription().replace("]", "]").replace("[", "[").replace("(", "❲").replace(")", "❳")));
|
||||
MessageManager.sendMessage(p, "edit_location",
|
||||
Integer.toString((int) home.getX()),
|
||||
Integer.toString((int) home.getY()),
|
||||
@@ -37,7 +37,7 @@ public class EditingHandler {
|
||||
|
||||
public static void showEditWarpOptions(Player p, Warp warp) {
|
||||
MessageManager.sendMessage(p, "edit_warp_title", warp.getName());
|
||||
p.spigot().sendMessage(new MineDown(MessageManager.getRawMessage("edit_description")).replaceFirst(false).replace("%1%", warp.getDescription()).toComponent());
|
||||
MessageManager.sendMessage(p, "edit_description", MineDown.escape(warp.getDescription().replace("]", "]").replace("[", "[").replace("(", "❲").replace(")", "❳")));
|
||||
MessageManager.sendMessage(p, "edit_location",
|
||||
Integer.toString((int) warp.getX()),
|
||||
Integer.toString((int) warp.getY()),
|
||||
|
||||
Reference in new issue
Block a user