mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +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;
|
package me.william278.huskhomes2.commands;
|
||||||
|
|
||||||
import de.themoep.minedown.MineDown;
|
|
||||||
import me.william278.huskhomes2.HuskHomes;
|
import me.william278.huskhomes2.HuskHomes;
|
||||||
import me.william278.huskhomes2.MessageManager;
|
import me.william278.huskhomes2.MessageManager;
|
||||||
import me.william278.huskhomes2.data.DataManager;
|
import me.william278.huskhomes2.data.DataManager;
|
||||||
@@ -67,11 +66,7 @@ public class HomeListCommand extends CommandBase {
|
|||||||
|
|
||||||
ArrayList<String> homeList = new ArrayList<>();
|
ArrayList<String> homeList = new ArrayList<>();
|
||||||
for (Home home : homes) {
|
for (Home home : homes) {
|
||||||
homeList.add(MessageManager.getRawMessage("home_list_item", home.getName(), home.getOwnerUsername(), MineDown.escape(home.getDescription()
|
homeList.add(MessageManager.getRawMessage("home_list_item", home.getName(), home.getDescription()));
|
||||||
.replace("]", "\\]")
|
|
||||||
.replace("[", "\\[")
|
|
||||||
.replace("(", "\\(")
|
|
||||||
.replace(")", "\\)"))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final int itemsPerPage = HuskHomes.getSettings().getPrivateHomesPerPage();
|
final int itemsPerPage = HuskHomes.getSettings().getPrivateHomesPerPage();
|
||||||
|
|||||||
Reference in new issue
Block a user