added commandScriptACE setting and custom permissions for scarpet.

This commit is contained in:
gnembon committed 2020-03-11 02:39:39 -03:00
1 parent 8f32354606
commit 493cea2c13
4 files changed
+27 -10

No files matched your search

+18 -3
View File
@@ -28,6 +28,7 @@ import static carpet.settings.RuleCategory.OPTIMIZATION;
import static carpet.settings.RuleCategory.SURVIVAL;
import static carpet.settings.RuleCategory.TNT;
import static carpet.settings.RuleCategory.DISPENSER;
import static carpet.settings.RuleCategory.SCARPET;
@SuppressWarnings("CanBeFinal")
public class CarpetSettings
@@ -303,13 +304,27 @@ public class CarpetSettings
@Rule(desc = "Enables /draw commands", extra = "... allows for drawing simple shapes", category = COMMAND)
public static String commandDraw = "true";
@Rule(desc = "Enables /script command", extra = "An in-game scripting API for Scarpet programming language", category = COMMAND)
public static boolean commandScript = true;
@Rule(
desc = "Enables /script command",
extra = "An in-game scripting API for Scarpet programming language",
category = {COMMAND, SCARPET}
)
public static String commandScript = "true";
@Rule(
desc = "Enables restrictions for arbitrary code execution with scarpet",
extra = {
"Users that don't have this permission level",
"won't be able to load apps or /script run"
},
category = {COMMAND, SCARPET}
)
public static String commandScriptACE = "ops";
@Rule(
desc = "Scarpet script from world files will autoload on server/world start ",
extra = "if /script is enabled",
category = CREATIVE
category = SCARPET
)
public static boolean scriptsAutoload = false;