• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Supported Minecraft Versions
  1. 1.10
  2. 1.11
EventSK v1.0.0

(Same resource as on Spigot)

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:
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:
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:
events:
    - "some.package.name.YourEvent"
Author
CC007
Downloads
834
Views
834
First release
Last update
Rating
4.00 star(s) 1 ratings

Latest reviews

Very good addon! A good feature would, if we don't need the config but we register the events on script load with that it would be easier to post scripta with this addon
CC007
CC007
I tried to make that possible, but I hit some limitations. This was the easiest way to implement it to work around those limitations.