-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathFabledBridge.java
More file actions
34 lines (30 loc) · 1.5 KB
/
FabledBridge.java
File metadata and controls
34 lines (30 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.denizenscript.depenizen.bukkit.bridges;
import com.denizenscript.denizencore.tags.TagManager;
import com.denizenscript.depenizen.bukkit.properties.fabled.FabledPlayerExtensions;
import com.denizenscript.depenizen.bukkit.Bridge;
import com.denizenscript.depenizen.bukkit.events.fabled.*;
import com.denizenscript.depenizen.bukkit.objects.fabled.FabledClassTag;
import com.denizenscript.denizencore.events.ScriptEvent;
import com.denizenscript.denizencore.objects.ObjectFetcher;
public class FabledBridge extends Bridge {
@Override
public void init() {
ObjectFetcher.registerWithObjectFetcher(FabledClassTag.class, FabledClassTag.tagProcessor);
FabledPlayerExtensions.register();
ScriptEvent.registerScriptEvent(FabledPlayerUnlocksSkillScriptEvent.class);
ScriptEvent.registerScriptEvent(FabledPlayerUpgradesSkillScriptEvent.class);
ScriptEvent.registerScriptEvent(FabledPlayerDowngradesSkillScriptEvent.class);
ScriptEvent.registerScriptEvent(FabledPlayerLevelsUpScriptEvent.class);
// <--[tag]
// @attribute <fabledclass[<class>]>
// @returns FabledClassTag
// @plugin Depenizen, Fabled
// @description
// Returns the fabledclass tag with the given name.
// Refer to <@link objecttype FabledClassTag> for more information.
// -->
TagManager.registerTagHandler(FabledClassTag.class, FabledClassTag.class, "fabledclass", (attribute, param) -> {
return param;
});
}
}