SpigotMC / BungeeCord

BungeeCord, the 6th in a generation of server portal suites. Efficiently proxies and maintains connections and transport between multiple Minecraft servers.
https://www.spigotmc.org/go/bungeecord
Other
1.58k stars 1.11k forks source link

Never call the pre-join event althougt I have registered it #3302

Open disymayufei opened 2 years ago

disymayufei commented 2 years ago

(I'm Chinese so my English may not good,sorry!)

  Hi, I'm using the latest version of Bungeecord (#3301), and when I try to use the pre-join event in my plugin,I found there was no response of my plugin (Although for test, I only write just a "System.out.println("test")", even that there was also no response when a player join the server, nothing was printed in console).
  
  I'm sure that I add the "@EventHandler" decorator at the method, and have registered the event in "onEnable" method(the pre-login event listener in same class can work normally), Is this a bug?

Janmm14 commented 2 years ago

@disymayufei Bungeecord does not have a pre join event.

Here you can see the events of BungeeCord: https://ci.md-5.net/view/SpigotMC/job/BungeeCord/ws/api/target/apidocs/net/md_5/bungee/api/event/package-summary.html

JadssDev commented 2 years ago

@disymayufei Bungeecord does not have a pre join event.

Here you can see the events of BungeeCord: https://ci.md-5.net/view/SpigotMC/job/BungeeCord/ws/api/target/apidocs/net/md_5/bungee/api/event/package-summary.html

https://ci.md-5.net/view/SpigotMC/job/BungeeCord/ws/api/target/apidocs/net/md_5/bungee/api/event/PreLoginEvent.html

Janmm14 commented 2 years ago

@disymayufei Bungeecord does not have a pre join event. Here you can see the events of BungeeCord: https://ci.md-5.net/view/SpigotMC/job/BungeeCord/ws/api/target/apidocs/net/md_5/bungee/api/event/package-summary.html

https://ci.md-5.net/view/SpigotMC/job/BungeeCord/ws/api/target/apidocs/net/md_5/bungee/api/event/PreLoginEvent.html

He said in his original message that the PreLoginEvent listener works:

(the pre-login event listener in same class can work normally)