Skip to content

Misc events - #8801

Open
AnOwlBe wants to merge 15 commits into
SkriptLang:dev/featurefrom
AnOwlBe:MiscEvents
Open

Misc events#8801
AnOwlBe wants to merge 15 commits into
SkriptLang:dev/featurefrom
AnOwlBe:MiscEvents

Conversation

@AnOwlBe

@AnOwlBe AnOwlBe commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

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:

  • EvtAtTime
  • EvtPeriodical
  • EvtRealTime
  • EvtScript
  • EvtSkript
  • EvtBroadcast - updated the pattern to have optional [message] + added new one (message being broadcast[ed])
  • EvtServerListPing
  • EvtAnvilPrepare

Enchantment Events:

  • EvtEnchantPrepare
  • EvtEnchant

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

@AnOwlBe
AnOwlBe requested review from a team as code owners July 28, 2026 05:37
@AnOwlBe
AnOwlBe requested review from Efnilite, Pesekjak and sovdeeth and removed request for a team July 28, 2026 05:37
@skriptlang-automation skriptlang-automation Bot added needs reviews A PR that needs additional reviews needs triage An issue that hasn't been classified or verified yet labels Jul 28, 2026
@skriptlang-automation

This comment has been minimized.

@sovdeeth sovdeeth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/elements/events/EvtSkript.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/elements/events/MiscEvents.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/elements/events/MiscEvents.java Outdated

@sovdeeth sovdeeth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

@sovdeeth sovdeeth added enhancement Feature request, an issue about something that could be improved, or a PR improving something. and removed needs triage An issue that hasn't been classified or verified yet labels Jul 28, 2026
@github-project-automation github-project-automation Bot moved this to In Review in 2.17 Releases Jul 28, 2026
@AnOwlBe

AnOwlBe commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

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
the rest is small stuff like updating description changing order of methods/classes adding - to event args to mark nullable to ones that previously didn't have it n such (code cleanup basically)

@AnOwlBe
AnOwlBe requested a review from sovdeeth July 28, 2026 20:03
AnOwlBe and others added 2 commits July 28, 2026 17:29
…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>
@AnOwlBe
AnOwlBe requested a review from sovdeeth July 28, 2026 21:38
Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/elements/events/EvtAtTime.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/elements/events/EvtAtTime.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/elements/events/EvtRealTime.java Outdated
Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/elements/events/MiscEvents.java Outdated
.supplier(() -> new SimpleEvent("server list ping"))
.build());

syntaxRegistry.register(BukkitSyntaxInfos.Event.KEY, BukkitSyntaxInfos.Event.builder(SimpleEvent.class, "Anvil Prepare")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this should be somewhere within BlockModule

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some sort of server module might be good given the existence of other related syntaxes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe in the future but for 1 single event its a bit overkill

Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/MiscModule.java Outdated
@skriptlang-automation skriptlang-automation Bot removed the needs reviews A PR that needs additional reviews label Jul 30, 2026
@AnOwlBe
AnOwlBe requested a review from APickledWalrus July 30, 2026 19:11
Comment thread src/main/java/org/skriptlang/skript/bukkit/misc/elements/events/EvtRealTime.java Outdated
@AnOwlBe
AnOwlBe requested a review from Absolutionism July 30, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature request, an issue about something that could be improved, or a PR improving something.

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

4 participants