1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon EventSK 1.0.0

A addon that enables you to catch Bukkit events from within Skript

  1. CC007
    Supported Minecraft Versions:
    • 1.10, 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).

    Say you have the following Bukkit event class:

    Code (Text):
    1. package some.package.name;
    3. import ...
    5. public YourEvent extends Event {
    6.     private static final HandlerList handlers = new HandlerList();
    8.     @override
    9.     public HandlerList getHandlers(){
    10.         return handlers;
    11.     }
    13.     public static HandlerList getHandlerList(){
    14.         return handlers;
    15.     }
    17.     private String var;
    19.     public String getVar(){
    20.         return var;
    21.     }
    22. }
    With this plugin you can write the following skript code:

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

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

    Code (Text):
    1. events:
    2.     - "some.package.name.YourEvent"

Recent Reviews

  1. UnscriptedCode
    Version: 1.0.0
    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
    1. CC007
      Author's Response
      I tried to make that possible, but I hit some limitations. This was the easiest way to implement it to work around those limitations.