Module gomint.api

Class PlayerLoginEvent

  • public class PlayerLoginEvent
    extends CancellablePlayerEvent
    1.0 This event is fired when the login stage begins, way before any data will be sent to the client. If you cancel this event to kick someone the player will have no impact on performance, chunk loading, etc.
    • Constructor Detail

      • PlayerLoginEvent

        public PlayerLoginEvent​(EntityPlayer player)
    • Method Detail

      • getKickMessage

        public String getKickMessage()
        If this event is cancelled you have the chance to set a custom kick message here.
        custom kick message
      • setKickMessage

        public void setKickMessage​(String kickMessage)
        Set the custom kick message. This is only used when the event is cancelled and the player is going to be kicked
        kickMessage - The custom kick message