Fix warp permission nodes not enforcing lower case

This commit is contained in:
William committed 2022-11-29 00:18:09 +00:00
1 parent 7c01b434e6
commit 741a4c69fd
2 files changed
+4 -3

No files matched your search

@@ -18,8 +18,8 @@ public class WarpDeleteEvent extends Event implements IWarpDeleteEvent, Cancella
this.warp = warp;
}
@NotNull
@Override
@NotNull
public HandlerList getHandlers() {
return HANDLER_LIST;
}
@@ -40,7 +40,8 @@ public class WarpDeleteEvent extends Event implements IWarpDeleteEvent, Cancella
}
@Override
public @NotNull Warp getWarp() {
@NotNull
public Warp getWarp() {
return warp;
}
}
@@ -37,7 +37,7 @@ public class Warp extends SavedPosition {
@NotNull
@Subst("huskhomes.command.warp")
public static String getPermissionNode(@NotNull String warp) {
return Permission.COMMAND_WARP + "." + warp;
return Permission.COMMAND_WARP + "." + warp.toLowerCase();
}
/**