File tree Expand file tree Collapse file tree
src/main/java/ch/njol/skript
hooks/regions/expressions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 "The value is automatically converted to the specified type (e.g. text, number) where possible."
3030})
3131@ Example ("""
32- set {_node} to node "language" in the skript config
33- broadcast the text value of {_node}
34- """ )
32+ set {_node} to node "language" in the skript config
33+ broadcast the text value of {_node}
34+ """ )
3535@ Example ("""
36- set {_node} to node "update check interval" in the skript config
37-
38- broadcast text value of {_node}
39- # text value of {_node} = "12 hours" (text)
40-
41- wait for {_node}'s timespan value
42- # timespan value of {_node} = 12 hours (duration)
43- """ )
36+ set {_node} to node "update check interval" in the skript config
37+
38+ broadcast text value of {_node}
39+ # text value of {_node} = "12 hours" (text)
40+
41+ wait for {_node}'s timespan value
42+ # timespan value of {_node} = 12 hours (duration)
43+ """ )
4444@ Since ("2.10 (Nodes), 2.10 (Any)" )
4545@ Deprecated (since ="2.13" , forRemoval = true )
4646public class ExprValue extends SimplePropertyExpression <Object , Object > {
Original file line number Diff line number Diff line change 2828 "You cannot use the W component with vectors; it is for quaternions only."
2929})
3030@ Example ("""
31- set {_v} to vector 1, 2, 3
32- send "%x of {_v}%, %y of {_v}%, %z of {_v}%"
33- add 1 to x of {_v}
34- add 2 to y of {_v}
35- add 3 to z of {_v}
36- send "%x of {_v}%, %y of {_v}%, %z of {_v}%"
37- set x component of {_v} to 1
38- set y component of {_v} to 2
39- set z component of {_v} to 3
40- send "%x component of {_v}%, %y component of {_v}%, %z component of {_v}%"
41- """ )
31+ set {_v} to vector 1, 2, 3
32+ send "%x of {_v}%, %y of {_v}%, %z of {_v}%"
33+ add 1 to x of {_v}
34+ add 2 to y of {_v}
35+ add 3 to z of {_v}
36+ send "%x of {_v}%, %y of {_v}%, %z of {_v}%"
37+ set x component of {_v} to 1
38+ set y component of {_v} to 2
39+ set z component of {_v} to 3
40+ send "%x component of {_v}%, %y component of {_v}%, %z component of {_v}%"
41+ """ )
4242@ Since ("2.2-dev28, 2.10 (quaternions)" )
4343public class ExprXYZComponent extends SimplePropertyExpression <Object , Number > {
4444
Original file line number Diff line number Diff line change 2929})
3030@ Example ("""
3131 on entering of a region:
32- message "You're entering %region% whose owners are %owners of region%"
32+ message "You're entering %region% whose owners are %owners of region%"
3333 """ )
3434@ Since ("2.1" )
3535@ RequiredPlugins ("Supported regions plugin" )
You can’t perform that action at this time.
0 commit comments