diff --git a/api/src/main/java/fr/euphyllia/skyllia/api/skyblock/model/permissions/PermissionsCommandIsland.java b/api/src/main/java/fr/euphyllia/skyllia/api/skyblock/model/permissions/PermissionsCommandIsland.java index 66c78002..816ad206 100644 --- a/api/src/main/java/fr/euphyllia/skyllia/api/skyblock/model/permissions/PermissionsCommandIsland.java +++ b/api/src/main/java/fr/euphyllia/skyllia/api/skyblock/model/permissions/PermissionsCommandIsland.java @@ -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), ; diff --git a/plugin/src/main/java/fr/euphyllia/skyllia/commands/common/subcommands/TrustSubCommand.java b/plugin/src/main/java/fr/euphyllia/skyllia/commands/common/subcommands/TrustSubCommand.java index db36e2bc..2b733012 100644 --- a/plugin/src/main/java/fr/euphyllia/skyllia/commands/common/subcommands/TrustSubCommand.java +++ b/plugin/src/main/java/fr/euphyllia/skyllia/commands/common/subcommands/TrustSubCommand.java @@ -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; } diff --git a/plugin/src/main/java/fr/euphyllia/skyllia/commands/common/subcommands/UntrustSubCommand.java b/plugin/src/main/java/fr/euphyllia/skyllia/commands/common/subcommands/UntrustSubCommand.java index 24e8aa3d..8aadda98 100644 --- a/plugin/src/main/java/fr/euphyllia/skyllia/commands/common/subcommands/UntrustSubCommand.java +++ b/plugin/src/main/java/fr/euphyllia/skyllia/commands/common/subcommands/UntrustSubCommand.java @@ -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; }