Atavism Version 2018.1AGIS API

atavism.server.objects
Interface ProxyLoginCallback


public interface ProxyLoginCallback

Methods called during player proxy login. Implementations are registered with ProxyPlugin.setProxyLoginCallback().

The method call order is:

  1. preLoad()
  2. postLoad()
  3. postSpawn()


Method Summary
 boolean duplicateLogin(ProxyPlugin.PlayerLoginStatus existingLogin, ClientConnection con)
          Called when player already logged in.
 java.lang.String postLoad(Player player, ClientConnection con)
          Called after player object is loaded, before any communication back to the client.
 void postSpawn(Player player, ClientConnection con)
          Called after the initial player spawn.
 java.lang.String preLoad(Player player, ClientConnection con)
          Called before player object is loaded.
 

Method Detail

duplicateLogin

boolean duplicateLogin(ProxyPlugin.PlayerLoginStatus existingLogin,
                       ClientConnection con)
Called when player already logged in.

Parameters:
existingLogin - Information about the existing login.
con - The new connection.
Returns:
True if the new login should be denied, false if the new login should be allowed to continue.

preLoad

java.lang.String preLoad(Player player,
                         ClientConnection con)
Called before player object is loaded.

Returns:
null if the login should proceed. Otherwise, an error message string if the login should fail. The error message is returned to the client.

postLoad

java.lang.String postLoad(Player player,
                          ClientConnection con)
Called after player object is loaded, before any communication back to the client.

Returns:
null if the login should proceed. Otherwise, an error message string if the login should fail. The error message is returned to the client.

postSpawn

void postSpawn(Player player,
               ClientConnection con)
Called after the initial player spawn.



Copyright © 2018 Dragonsan Studios Sp. z o.o.