Module gomint.api

Class PlayerQuitEvent


  • public class PlayerQuitEvent
    extends PlayerEvent
    Version:
    1.0 This event is fired when a client has disconnected. Its called before entity cleanup so you can access all data loaded associated with the entity or alter data in it before its persisted.
    Author:
    geNAZt
    • Constructor Detail

      • PlayerQuitEvent

        public PlayerQuitEvent​(EntityPlayer player,
                               String quitMessage)
        Construct a quit event with the player who disconnected
        Parameters:
        player - The player which disconnected
    • Method Detail

      • setQuitMessage

        public void setQuitMessage​(String quitMessage)
        Set the message that will be displayed when the player leaves the server
        Parameters:
        quitMessage - the message to display
      • getQuitMessage

        public String getQuitMessage()
        Get the message that will be displayed when the player leaves the server
        Returns:
        the message that will be displayed