Skip to content

Commit

Permalink
🛠 Fix fireworkeffect classinfo doesn't have usage (SkriptLang#5684)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyhamAl-Ali authored May 26, 2023
1 parent aa25621 commit 9515206
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/main/java/ch/njol/skript/classes/data/BukkitClasses.java
Original file line number Diff line number Diff line change
Expand Up @@ -1352,14 +1352,17 @@ public String toVariableNameString(final CachedServerIcon o) {
Classes.registerClass(new ClassInfo<>(FireworkEffect.class, "fireworkeffect")
.user("firework ?effects?")
.name("Firework Effect")
.description("A configuration of effects that defines the firework when exploded",
.usage("See <a href='/classes.html#FireworkType'>Firework Types</a>")
.description(
"A configuration of effects that defines the firework when exploded",
"which can be used in the <a href='effects.html#EffFireworkLaunch'>launch firework</a> effect.",
"See the <a href='expressions.html#ExprFireworkEffect'>firework effect</a> expression for detailed patterns.")
.defaultExpression(new EventValueExpression<>(FireworkEffect.class))
.examples("launch flickering trailing burst firework colored blue and green at player",
"See the <a href='expressions.html#ExprFireworkEffect'>firework effect</a> expression for detailed patterns."
).defaultExpression(new EventValueExpression<>(FireworkEffect.class))
.examples(
"launch flickering trailing burst firework colored blue and green at player",
"launch trailing flickering star colored purple, yellow, blue, green and red fading to pink at target entity",
"launch ball large colored red, purple and white fading to light green and black at player's location with duration 1")
.since("2.4")
"launch ball large colored red, purple and white fading to light green and black at player's location with duration 1"
).since("2.4")
.parser(new Parser<FireworkEffect>() {
@Override
@Nullable
Expand Down

0 comments on commit 9515206

Please sign in to comment.