mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Add check if restricted warps are on
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user