mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Add option to hide warps from the warp list if you do not have permission to use it, Closes #27
This commit is contained in:
1 parent
e5d265a155
commit
8d527033f6
3 files changed
+10
No files matched your search
@@ -188,6 +188,9 @@ 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 (!Warp.getWarpCanUse(player, warp.getName())) { continue; }
|
||||
}
|
||||
if (i != warpsLowerBound) {
|
||||
warpList.append(divider(), ComponentBuilder.FormatRetention.NONE);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user