Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Commit this too
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Dec 17, 2016
1 parent 9d6e1bb commit ebdb044
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Expand Up @@ -4,6 +4,7 @@
import com.denizenscript.denizen2core.commands.CommandEntry;
import com.denizenscript.denizen2core.commands.CommandQueue;
import com.denizenscript.denizen2core.utilities.ErrorInducedException;
import com.denizenscript.denizen2sponge.spongeevents.Denizen2SpongeReloadEvent;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.format.TextColors;
Expand All @@ -15,7 +16,7 @@ public class Denizen2SpongeImplementation extends Denizen2Implementation {

@Override
public void reload() {
// TODO: stuff?
Sponge.getEventManager().post(new Denizen2SpongeReloadEvent(Denizen2Sponge.getGenericCause()));
}

@Override
Expand Down
@@ -0,0 +1,18 @@
package com.denizenscript.denizen2sponge.spongeevents;

import org.spongepowered.api.event.cause.Cause;
import org.spongepowered.api.event.impl.AbstractEvent;

public class Denizen2SpongeReloadEvent extends AbstractEvent {

private Cause cause;

public Denizen2SpongeReloadEvent(Cause cause) {
this.cause = cause;
}

@Override
public Cause getCause() {
return cause;
}
}

0 comments on commit ebdb044

Please sign in to comment.