Skip to content

Commit 1a0c31f

Browse files
committed
feat(integration): Patch some things before testing stuff
1 parent a3952f2 commit 1a0c31f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bukkit-impl/src/main/java/dev/jsinco/brewery/bukkit/integration/event/skript/TbpSkriptEventStructure.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public boolean init(Literal<?>[] args, int matchedPattern, SkriptParser.ParseRes
4040
this.key = BreweryKey.parse((String) args[0].getSingle());
4141
this.displayName = (Component) args[1].getSingle();
4242
if (entryContainer == null) {
43-
Skript.error("[TBP] Empty entry container, this event does nothing! ");
43+
Skript.error("[TBP] Empty entry container, this event does nothing!");
4444
return false;
4545
}
4646
this.source = entryContainer.getSource();
@@ -54,12 +54,12 @@ public boolean load() {
5454
}
5555

5656
public void run() {
57-
// What to do here?
57+
TriggerItem.walk(code.getFirst(), null);
5858
}
5959

6060
public static void register(SyntaxRegistry syntaxRegistry) {
6161
syntaxRegistry
62-
.register(SyntaxRegistry.Key.of("tbp_custom_event_structure"), DefaultSyntaxInfos.Structure.builder(TbpSkriptEventStructure.class)
62+
.register(SyntaxRegistry.STRUCTURE, DefaultSyntaxInfos.Structure.builder(TbpSkriptEventStructure.class)
6363
.addPattern("[tbp_]register event with key %text% [and ][display ]name %text component%")
6464
.supplier(TbpSkriptEventStructure::new)
6565
.build()

0 commit comments

Comments
 (0)