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
@Description("Creates Slimefun locked category (it will not show up in the guide unless you create at least 1 item for it)")
26
-
@Examples("create locked slimefun category named \"Locked Cool Stuff\" with menu item dirt named \"Locked Cool Stuff\" with priority 0 with required categories \"RESOURCES\"")
26
+
@Examples("create locked slimefun category with ID \"cool_locked_stuff\" with menu item dirt named \"Cool Locked Stuff\" with priority 0 with required categories \"RESOURCES\"")
27
27
publicclassEffCreateLockedCategoryextendsEffect {
28
28
29
29
static {
30
-
Skript.registerEffect(EffCreateLockedCategory.class, "create [a] [new] locked [Slimefun] category [(named|with name)] %string% with [menu] item %itemstack% with (level|priority) %integer% with required categor(y|ies) %strings%");
30
+
Skript.registerEffect(EffCreateLockedCategory.class, "create [a] [new] locked [Slimefun] category [with ID] %string% with [menu] item %itemstack% with (level|priority|tier) %integer% with required categor(y|ies) %strings%");
31
31
}
32
32
33
-
privateExpression<String> name;
33
+
privateExpression<String> id;
34
34
privateExpression<ItemStack> item;
35
35
privateExpression<Integer> level;
36
36
privateExpression<String> categories;
@@ -42,30 +42,27 @@ public boolean init(Expression<?>[] e, int matchedPattern, Kleenean isDelayed, S
42
42
Skript.error("You can not use Slimefun create locked category effect in any event but on skript load.");
43
43
returnfalse;
44
44
}
45
-
name = (Expression<String>) e[0];
45
+
id = (Expression<String>) e[0];
46
46
item = (Expression<ItemStack>) e[1];
47
47
level = (Expression<Integer>) e[2];
48
48
categories = (Expression<String>) e[3];
49
49
returntrue;
50
50
}
51
51
@Override
52
52
publicStringtoString(@NullableEvente, booleanb) {
53
-
return"create Slimefun category " + name.toString(e, b) + " with item " + item.toString(e, b) + " with level " + level.toString(e, b) + " with required categories " + categories.toString(e, b);
53
+
return"create Slimefun category " + id.toString(e, b) + " with item " + item.toString(e, b) + " with level " + level.toString(e, b) + " with required categories " + categories.toString(e, b);
0 commit comments