mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Fix home lists displaying incorrectly
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user