mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Fix permission restricted warps not being hidden from tab completion
This commit is contained in:
1 parent
e4b0bf22c4
commit
a0042ac4c8
2 files changed
+14
-3
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package net.william278.huskhomes.position;
|
||||
|
||||
import net.william278.huskhomes.util.Permission;
|
||||
import org.intellij.lang.annotations.Subst;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.UUID;
|
||||
@@ -26,7 +28,15 @@ public class Warp extends SavedPosition {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Subst("huskhomes.command.warp")
|
||||
public String getPermissionNode() {
|
||||
return "huskhomes.warp." + meta.name.toLowerCase();
|
||||
return getPermissionNode(meta.name);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Subst("huskhomes.command.warp")
|
||||
public static String getPermissionNode(@NotNull String warp) {
|
||||
return Permission.COMMAND_WARP + "." + warp;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user