Fix home lists displaying incorrectly

This commit is contained in:
William committed 2021-10-02 23:53:17 +01:00
1 parent 0b3cc6a297
commit 815ef51fd1
1 file changed
+1 -6
@@ -1,6 +1,5 @@
package me.william278.huskhomes2.commands;
import de.themoep.minedown.MineDown;
import me.william278.huskhomes2.HuskHomes;
import me.william278.huskhomes2.MessageManager;
import me.william278.huskhomes2.data.DataManager;
@@ -67,11 +66,7 @@ public class HomeListCommand extends CommandBase {
ArrayList<String> homeList = new ArrayList<>();
for (Home home : homes) {
homeList.add(MessageManager.getRawMessage("home_list_item", home.getName(), home.getOwnerUsername(), MineDown.escape(home.getDescription()
.replace("]", "\\]")
.replace("[", "\\[")
.replace("(", "\\(")
.replace(")", "\\)"))));
homeList.add(MessageManager.getRawMessage("home_list_item", home.getName(), home.getDescription()));
}
final int itemsPerPage = HuskHomes.getSettings().getPrivateHomesPerPage();