- 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).
Syntax:
Say you have the following Bukkit event class:
With this plugin you can write the following skript code:
Setup:
To be able to use events, you have to add them to the config.yml file:
config.yml:
(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"