Misc events - #8801
Conversation
This comment has been minimized.
This comment has been minimized.
sovdeeth
left a comment
There was a problem hiding this comment.
Pretty much every text block has spaces instead of tabs for indentation.
Also, please note any changes/bug fixes you decided to make in the PR description. If you don't, it's unclear whether they were intended to be in this PR and easier for reviewers to miss checking.
|
Fixed the issues with spaces instead of tabs and for the changes this PR specifically has not many (the other ones do have a chunk) the only notable change is the broadcast pattern |
…s/EvtPeriodical.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
…s/EvtPeriodical.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
| .supplier(() -> new SimpleEvent("server list ping")) | ||
| .build()); | ||
|
|
||
| syntaxRegistry.register(BukkitSyntaxInfos.Event.KEY, BukkitSyntaxInfos.Event.builder(SimpleEvent.class, "Anvil Prepare") |
There was a problem hiding this comment.
Seems like this should be somewhere within BlockModule
There was a problem hiding this comment.
maybe in InventoryEvents since it extends paper.event.inventory.PrepareResultEvent but I don't think block events would fit
| .supplier(() -> new SimpleEvent("broadcast message")) | ||
| .build()); | ||
|
|
||
| syntaxRegistry.register(BukkitSyntaxInfos.Event.KEY, BukkitSyntaxInfos.Event.builder(SimpleEvent.class, "Server List Ping") |
There was a problem hiding this comment.
Some sort of server module might be good given the existence of other related syntaxes
There was a problem hiding this comment.
Maybe in the future but for 1 single event its a bit overkill
…s/EvtAtTime.java Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
Problem
This is part idk at this point of probably 6-8 more prs needed to migrate all of simpleevents & njol/skript/events into the skriptlang folder in their related module while (hopefully) preventing any breaking changes.
Solution
Migrates misc events
Progress:
message being broadcast[ed])Enchantment Events:
Testing Completed
Manual testing completeld
quickTest ran successfully
JUnitQuick failed due to a random expr failing for some reason? not sure why exactly since the expr is not an event expr nore related to the events I changed at all but will look into it if tests fail here too
Supporting Information
Completes: none
Related: none
AI assistance: none