Skip to content

Commit

Permalink
add a save option to the firework command
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 2, 2019
1 parent 5267ad2 commit 722a297
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -1397,6 +1397,7 @@ public void registerCoreMembers() {
// <e@entity.firework_item>
// <i@item.is_firework>
// <i@item.firework>
// <entry[saveName].launched_firework> returns a dEntity of the firework that was launched.
//
// @Usage
// Use to launch a star firework which explodes yellow and fades to white afterwards at the player's location
Expand Down
Expand Up @@ -2,6 +2,7 @@

import net.aufdemrand.denizen.BukkitScriptEntryData;
import net.aufdemrand.denizen.objects.dColor;
import net.aufdemrand.denizen.objects.dEntity;
import net.aufdemrand.denizen.objects.dLocation;
import net.aufdemrand.denizen.utilities.Conversion;
import net.aufdemrand.denizen.utilities.debugging.dB;
Expand Down Expand Up @@ -125,5 +126,7 @@ public void execute(final ScriptEntry scriptEntry) throws CommandExecutionExcept

fireworkMeta.addEffects(fireworkBuilder.build());
firework.setFireworkMeta(fireworkMeta);

scriptEntry.addObject("launched_firework", new dEntity(firework));
}
}

0 comments on commit 722a297

Please sign in to comment.