Add check if restricted warps are on

This commit is contained in:
William278 committed 2021-04-16 15:03:33 +01:00
1 parent 8d527033f6
commit 47305e38e9
1 file changed
+1 -1
@@ -188,7 +188,7 @@ public class ListHandler {
for (int i = warpsLowerBound; i < warpsUpperBound; i++) {
try {
Warp warp = warps.get(i);
if (HuskHomes.getSettings().doHideRestrictedWarps()) { // Don't show inaccessible warps if hiding restricted warps is on.
if (HuskHomes.getSettings().doPermissionRestrictedWarps() && HuskHomes.getSettings().doHideRestrictedWarps()) { // Don't show inaccessible warps if hiding restricted warps is on.
if (!Warp.getWarpCanUse(player, warp.getName())) { continue; }
}
if (i != warpsLowerBound) {