You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert {-StructCommand::entries::1::*} is "It is not possible to restrict execution to the console as the parent command is only executable by players."
120
+
set {_error_missing_trigger} to "You must have a 'trigger' entry if there are no subcommands!"
121
+
assert {-StructCommand::entries::1::*} is {_error_missing_trigger}
122
+
assert {-StructCommand::entries::2::*} is "It is not possible to restrict execution to the console as the parent command is only executable by players."
123
+
assert {-StructCommand::entries::3::*} is {_error_missing_trigger} and {_error_missing_trigger}
100
124
assert {-StructCommand::args::1::*} is "The argument name 'x' was already used."
101
125
assert {-StructCommand::args::2::*} is "text arguments do not support minimum or maximum values."
102
126
assert {-StructCommand::args::3::*} is not set
@@ -105,6 +129,15 @@ test "StructCommand":
105
129
assert {-StructCommand::hints::1::*} is "Expected variable '{_x}' to be a text, but it is a number" with "Hint failed (%{StructCommand::hints::1::*}%)"
106
130
assert {-StructCommand::hints::2::*} is "Expected variable '{_x::*}' to be a text, but it is a number" with "Hint failed (%{StructCommand::hints::2::*}%)"
107
131
132
+
# entry validation
133
+
assert the main command name of the command "structcommand" is "structcommand"
134
+
assert the description of the command "structcommand" is "This is the description"
135
+
assert the label of the command "structcommand" is "structcommand"
136
+
#assert the usage of the command "structcommand" is "This is the usage"
137
+
assert the aliases of the command "structcommand" are "structcommand2" and "skript:structcommand2"
138
+
#assert the permission of the command "structcommand" is "skript.structcommand"
139
+
assert the plugin of the command "structcommand" is "Skript"
140
+
108
141
# execution
109
142
execute command "test-subcommand 10"
110
143
assert {-test-subcommand} is 10 with "root command execution failed"
0 commit comments