mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Fix warp permission nodes not enforcing lower case
This commit is contained in:
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;
|
this.warp = warp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
|
||||||
@Override
|
@Override
|
||||||
|
@NotNull
|
||||||
public HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
return HANDLER_LIST;
|
return HANDLER_LIST;
|
||||||
}
|
}
|
||||||
@@ -40,7 +40,8 @@ public class WarpDeleteEvent extends Event implements IWarpDeleteEvent, Cancella
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull Warp getWarp() {
|
@NotNull
|
||||||
|
public Warp getWarp() {
|
||||||
return warp;
|
return warp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -37,7 +37,7 @@ public class Warp extends SavedPosition {
|
|||||||
@NotNull
|
@NotNull
|
||||||
@Subst("huskhomes.command.warp")
|
@Subst("huskhomes.command.warp")
|
||||||
public static String getPermissionNode(@NotNull String warp) {
|
public static String getPermissionNode(@NotNull String warp) {
|
||||||
return Permission.COMMAND_WARP + "." + warp;
|
return Permission.COMMAND_WARP + "." + warp.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user