Skip to content

Easier Event System #2

@phase

Description

@phase

Instead of implementing every Event in Sponge and transfering it to Bukkit (or vice versa), is there any way you could call the event based on the Bukkit event?

public class EventTranslator implements Listener {
    @EventHandler
    public void genericEvent(Event e){
        Sponge.Magic.call(e);
    }
}

Obvisouly that doesn't work, but there's probably some way to add a switch for each Event. Plus I don't know if a normal Event will be called.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions