Skip to content

Commit 70bb47a

Browse files
committed
enablePermissionsCommand removed for handling.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 01889a5 commit 70bb47a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/permissions/impl/commands/ConfigurePermissionsCommand.kt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,6 @@ internal object ConfigurePermissionsCommand : CommandBase(
6464
return 0
6565
}
6666

67-
internal fun enablePermissionsCommand(context: CommandContext<CommandSource>): Int {
68-
validate(
69-
context,
70-
"ess.configure.permissions.enable-permissions-command",
71-
"enable-permissions-command"
72-
) {
73-
val value = CommandAPI.getString(context, "value")
74-
val oldValue = permissionsSettings.take().enablePermissionsCommand
75-
permissionsSettings.take().enablePermissionsCommand = value.toBoolean()
76-
changed(context, "enable-permissions-command", oldValue.toString(), value)
77-
executed(context)
78-
}
79-
return 0
80-
}
81-
8267
internal fun debugMode(context: CommandContext<CommandSource>): Int {
8368
validate(
8469
context,

0 commit comments

Comments
 (0)