PaperMC / Folia

Fork of Paper which adds regionised multithreading to the dedicated server.
GNU General Public License v3.0
3.56k stars 457 forks source link

Major API Issue for PlayerJoinEvent #80

Closed SlayorPlayz closed 1 year ago

SlayorPlayz commented 1 year ago

Stack trace

https://paste.gg/p/anonymous/db8a584ccceb42499608c1e40518dc75

Caused by plugin join event (see below)

Plugin and Datapack List

My own plugin image

Actions to reproduce (if known)

No response

Folia version

[01:11:05 INFO]: This server is running Folia version git-Folia-"be3c9e5" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: be3c9e5) You are running the latest version

Other

No response

emilyy-dev commented 1 year ago

To prevent a player from joining, cancel/set the appropriate result in the PlayerLoginEvent, Join is too late for preventing it but too early to kick