-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathProjectKorraBridge.java
More file actions
22 lines (19 loc) · 970 Bytes
/
ProjectKorraBridge.java
File metadata and controls
22 lines (19 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.denizenscript.depenizen.bukkit.bridges;
import com.denizenscript.denizencore.events.ScriptEvent;
import com.denizenscript.denizencore.utilities.debugging.Debug;
import com.denizenscript.depenizen.bukkit.Bridge;
import com.denizenscript.depenizen.bukkit.events.projectkorra.*;
public class ProjectKorraBridge extends Bridge {
@Override
public void init() {
if (!plugin.isEnabled()) {
Debug.log("ProjectKorra plugin is not enabled or not present. ProjectKorra events will not be available.");
return;
}
ScriptEvent.registerScriptEvent(EntityBendingDeathScriptEvent.class);
ScriptEvent.registerScriptEvent(PlayerAbilityDamageEntityScriptEvent.class);
ScriptEvent.registerScriptEvent(PlayerAbilityEndScriptEvent.class);
ScriptEvent.registerScriptEvent(PlayerAbilityProgressScriptEvent.class);
ScriptEvent.registerScriptEvent(PlayerAbilityStartScriptEvent.class);
}
}