Skip to content

Commit

Permalink
Fixed meta and context.
Browse files Browse the repository at this point in the history
  • Loading branch information
Talamar1 committed Jul 1, 2015
1 parent 6ed6d16 commit 8486ec5
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -20,14 +20,15 @@ public class LightningStrikesScriptEvent extends BukkitScriptEvent implements Li

// <--[event]
// @Events
// spawn changes (in area)
// lightning strikes (in <area>)
//
// @Cancellable true
//
// @Triggers when lightning strikes in a world.
//
// @Context
// <context.world> returns the dWorld the lightning struck in.
// <context.world> DEPRECATED
// <context.lightning> returns the dEntity of the lightning.
// <context.location> returns the dLocation where the lightning struck.
//
// -->
Expand Down Expand Up @@ -75,6 +76,7 @@ public boolean applyDetermination(ScriptContainer container, String determinatio
public HashMap<String, dObject> getContext() {
HashMap<String, dObject> context = super.getContext();
context.put("lightning", lightning);
context.put("world", new dWorld(location.getWorld()));
context.put("location", location);
return context;
}
Expand Down

0 comments on commit 8486ec5

Please sign in to comment.