Module gomint.api

Class PlayerJoinEvent


  • public class PlayerJoinEvent
    extends CancellablePlayerEvent
    Version:
    1.0 This event gets fired after the inital login stage has been completed and the player is ready to be added to the world to be sent to other players (become visible). If you cancel this event the player will never be spawned but it has loaded world chunks and got all resource pack data.
    Author:
    geNAZt
    • Constructor Detail

    • Method Detail

      • setJoinMessage

        public void setJoinMessage​(String joinMessage)
        Set the message that will be displayed when the player joins the server
        Parameters:
        joinMessage - the message to display
      • getJoinMessage

        public String getJoinMessage()
        Get the message that will be displayed when the player joins the server
        Returns:
        the message that will be displayed
      • setKickReason

        public void setKickReason​(String kickReason)
        Set the reason which will be used to disconnect the player when this event has been cancelled
        Parameters:
        kickReason - which is used to kick the player
      • getKickReason

        public String getKickReason()
        Get the reason which the player will get then this event has been cancelled
        Returns:
        reason for kick