Implement PluginEvent API
This commit is contained in:
parent
7004a2cd80
commit
c787bcfe3c
17 changed files with 250 additions and 1 deletions
|
|
@ -0,0 +1,5 @@
|
|||
package net.frankheijden.serverutils.common.events;
|
||||
|
||||
public interface PluginDisableEvent<T> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package net.frankheijden.serverutils.common.events;
|
||||
|
||||
public interface PluginEnableEvent<T> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
package net.frankheijden.serverutils.common.events;
|
||||
|
||||
public interface PluginEvent<T> {
|
||||
|
||||
enum Stage {
|
||||
PRE,
|
||||
POST
|
||||
}
|
||||
|
||||
T getPlugin();
|
||||
|
||||
Stage getStage();
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package net.frankheijden.serverutils.common.events;
|
||||
|
||||
public interface PluginLoadEvent<T> {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package net.frankheijden.serverutils.common.events;
|
||||
|
||||
public interface PluginUnloadEvent<T> {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue