We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1afe98e commit c4cbd91Copy full SHA for c4cbd91
1 file changed
src/main/kotlin/com/mairwunnx/projectessentials/core/impl/vanilla/commands/SaveAllCommand.kt
@@ -1,5 +1,5 @@
1
/**
2
- * ! This command implementation by Mojang Game Studios!
+ * ! This command implementation by Mojang Studios!
3
*
4
* Decompiled with idea source code was converted to kotlin code.
5
* But with additions such as permissions checking and etc.
@@ -19,7 +19,9 @@ internal object SaveAllCommand : VanillaCommandBase("save-all") {
19
override fun register(dispatcher: CommandDispatcher<CommandSource>) {
20
super.register(dispatcher)
21
dispatcher.register(
22
- Commands.literal(name).executes {
+ Commands.literal(name).requires {
23
+ isAllowed(it, "save.all", 4)
24
+ }.executes {
25
ConfigurationAPI.saveAll()
26
SaveAllCommand.saveAll(it.source, false)
27
}.then(
0 commit comments