PlayerLoginEvent

public void PlayerLoginEvent(Player player, String hostname, InetAddress address, InetAddress realAddress)

This constructor defaults message to an empty string, and result to ALLOWED

Parameters

player

The Player for this event

hostname

The hostname that was used to connect to the server

address

The address the player used to connect, provided for timing issues


public void PlayerLoginEvent(Player player, String hostname, InetAddress address)


public void PlayerLoginEvent(Player player, String hostname, InetAddress address, PlayerLoginEvent.Result result, String message, InetAddress realAddress)

This constructor pre-configures the event with getClassById result and message

Parameters

player

The Player for this event

hostname

The hostname that was used to connect to the server

address

The address the player used to connect, provided for timing issues

result

The result status for this event

message

The message to be displayed if result denies login