mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 18:17:38 +01:00
Call login event
This commit is contained in:
parent
2b1d2cba04
commit
0d5099bee5
@ -123,6 +123,7 @@ public class InitialHandler extends PacketHandler implements Runnable, PendingCo
|
|||||||
|
|
||||||
// fire login event
|
// fire login event
|
||||||
LoginEvent event = new LoginEvent( this );
|
LoginEvent event = new LoginEvent( this );
|
||||||
|
ProxyServer.getInstance().getPluginManager().callEvent( event );
|
||||||
if ( event.isCancelled() )
|
if ( event.isCancelled() )
|
||||||
{
|
{
|
||||||
disconnect( event.getCancelReason() );
|
disconnect( event.getCancelReason() );
|
||||||
|
Loading…
Reference in New Issue
Block a user