Skip to content

Commit

Permalink
Renommé TRUST permission en MANAGE_TRUST permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Euphillya committed Jan 29, 2024
1 parent d787752 commit 2102200
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public enum PermissionsCommandIsland implements Permissions {
MANAGE_PERMISSION(2_048),
BAN(4_096),
UNBAN(8_192),
TRUST(16_384),
MANAGE_TRUST(16_384),
;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public boolean onCommand(@NotNull Main plugin, @NotNull CommandSender sender, @N
PermissionRoleIsland permissionRoleIsland = skyblockManager.getPermissionIsland(island.getId(), PermissionsType.COMMANDS, executorPlayer.getRoleType()).join();

PermissionManager permissionManager = new PermissionManager(permissionRoleIsland.permission());
if (!permissionManager.hasPermission(PermissionsCommandIsland.TRUST)) {
if (!permissionManager.hasPermission(PermissionsCommandIsland.MANAGE_TRUST)) {
LanguageToml.sendMessage(plugin, player, LanguageToml.messagePlayerPermissionDenied);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public boolean onCommand(@NotNull Main plugin, @NotNull CommandSender sender, @N
PermissionRoleIsland permissionRoleIsland = skyblockManager.getPermissionIsland(island.getId(), PermissionsType.COMMANDS, executorPlayer.getRoleType()).join();

PermissionManager permissionManager = new PermissionManager(permissionRoleIsland.permission());
if (!permissionManager.hasPermission(PermissionsCommandIsland.TRUST)) {
if (!permissionManager.hasPermission(PermissionsCommandIsland.MANAGE_TRUST)) {
LanguageToml.sendMessage(plugin, player, LanguageToml.messagePlayerPermissionDenied);
return;
}
Expand Down

0 comments on commit 2102200

Please sign in to comment.