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
"Where using %size of {list::*}% will only return 3 (the first layer of indices only), while %recursive size of {list::*}% will return 6 (the entire list)",
41
35
"Please note that getting a list's recursive size can cause lag if the list is large, so only use this expression if you need to!"})
42
-
@Examples({"message \"There are %number of all players% players online!\""})
36
+
@Example("message \"There are %number of all players% players online!\"")
Skript.error("'" + this.exprs.toString(null, Skript.debug()) + "' can only ever have one value at most, thus the 'amount of ...' expression is useless. Use '... exists' instead to find out whether the expression has a value.");
72
+
returnfalse;
73
+
}
74
+
67
75
this.recursive = matchedPattern == 2;
68
76
for (Expression<?> expr : this.exprs.getExpressions()) {
69
-
if (exprinstanceofLiteral<?>) {
70
-
returnfalse;
71
-
}
72
-
if (expr.isSingle()) {
73
-
Skript.error("'" + expr.toString(null, false) + "' can only ever have one value at most, thus the 'amount of ...' expression is useless. Use '... exists' instead to find out whether the expression has a value.");
74
-
returnfalse;
75
-
}
76
77
if (recursive && !(exprinstanceofVariable<?>)) {
77
-
Skript.error("Getting the recursive size of a list only applies to variables, thus the '" + expr.toString(null, false) + "' expression is useless.");
78
+
Skript.error("Getting the recursive size of a list only applies to variables, thus the '" + expr.toString(null, Skript.debug()) + "' expression is useless.");
0 commit comments