-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathSuperiorSkyblockBridge.java
More file actions
32 lines (28 loc) · 1.46 KB
/
SuperiorSkyblockBridge.java
File metadata and controls
32 lines (28 loc) · 1.46 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
package com.denizenscript.depenizen.bukkit.bridges;
import com.denizenscript.denizencore.events.ScriptEvent;
import com.denizenscript.denizencore.objects.ObjectFetcher;
import com.denizenscript.denizencore.tags.TagManager;
import com.denizenscript.depenizen.bukkit.Bridge;
import com.denizenscript.depenizen.bukkit.events.superiorskyblock.*;
import com.denizenscript.depenizen.bukkit.objects.superiorskyblock.SuperiorSkyblockIslandTag;
import com.denizenscript.depenizen.bukkit.properties.superiorskyblock.*;
public class SuperiorSkyblockBridge extends Bridge {
@Override
public void init() {
ScriptEvent.registerScriptEvent(SuperiorSkyblockIslandCreatedScriptEvent.class);
ScriptEvent.registerScriptEvent(SuperiorSkyblockIslandDisbandedScriptEvent.class);
SuperiorSkyblockLocationExtensions.register();
SuperiorSkyblockPlayerExtensions.register();
ObjectFetcher.registerWithObjectFetcher(SuperiorSkyblockIslandTag.class, SuperiorSkyblockIslandTag.tagProcessor);
// <--[tag]
// @attribute <superiorskyblock_island[<name>]>
// @returns SuperiorSkyblockIslandTag
// @plugin Depenizen, SuperiorSkyblock
// @description
// Returns the superiorskyblock island tag with the given name.
// -->
TagManager.registerTagHandler(SuperiorSkyblockIslandTag.class, SuperiorSkyblockIslandTag.class, "superiorskyblock_island", (attribute, param) -> {
return param;
});
}
}