EventSK 1.0.0

A Skript addon that makes it possible to listen for Bukkit events from skript

  1. cc007
    Tested Minecraft Versions:
    • 1.10
    EventSK v1.0.0

    This plugin is a Skript add-on that makes it possible to listen to all Bukkit events (even events from other plugins).

    Syntax:
    Say you have the following bukkit event class:

    Code (Text):
    package some.package.name;

    import ...

    public YourEvent extends Event {
        private static final HandlerList handlers = new HandlerList();

        @override
        public HandlerList getHandlers(){
            return handlers;
        }

        public static HandlerList getHandlerList(){
            return handlers;
        }

        private String var;

        public String getVar(){
            return var;
        }
    }
    With this plugin you can write the following skript code:

    Code (Text):
    on bukkit event "some.package.name.YourEvent"
       set {_var} to YourEvent-getVar

    Setup:
    To be able to use events, you have to add them to the config.yml file:

    config.yml:
    Code (Text):
    events:
        - "some.package.name.YourEvent"