Метод | Описание | |
---|---|---|
AllowJoining ( |
This method is being called at the beginning when a new client connects to the proxy server. A plugin can decide to allow, or deny the incoming connection.
|
|
GetServerVersion ( PluginResultEventArgs |
IN this method plugins can specify the protocol version of the server the proxy should connect to
|
|
IsOnlineModeEnabled ( PluginResultEventArgs |
In this method a plugin can specify if the server should respond to be in online-mode or offline-mode. This can be used to allow administrators to join if minecraft.net is down
|
|
Load ( |
This message is being called once after instantiating the plugin. It is used to initialize the plugin, register packet listeners, or storing references to the plugin manager, or other relevant parts of the proxy server
|
|
OnConnectionLost ( |
This method is called when the connection to a user is terminated because of the client disconnected, or a network problem appeared
|
|
OnPlayerConnected ( |
This method is called after the proxy verified, that the incoming connection is a user who wants to join the server and the proxy server verified that it knows the protocol version the client wants to connect with
|
|
OnPlayerServerSelection ( PluginResultEventArgs |
This method is called when the proxy server needs to know to which backend server it should connect to. A plugin can change it, specify the minecraft version, or cancel it to kick the user.
|
|
OnUserAccountCheckAsync ( CheckAccountEventArgs args ) : System.Threading.Tasks.Task |
In this method a plugin can specify, if a user account is allowed to join with this specific server hash. if no plugin specify it the proxy server will contact minecraft.net to check user accounts.
|
|
OnUserConnectedCompleted ( |
This event is called after a user successfully joined, and after connecting to the backend server
|
public AllowJoining ( |
||
args | The IP address of the remote client | |
Результат | void |
public GetServerVersion ( PluginResultEventArgs |
||
args | PluginResultEventArgs |
Gives information about server and client |
Результат | void |
public IsOnlineModeEnabled ( PluginResultEventArgs |
||
args | PluginResultEventArgs |
The argument contains information about the user and the result of this call. true means authentification enabled, false means authentification disabled. if the result is null the option in the server configuration file is used |
Результат | void |
public abstract Load ( |
||
manager | The plugin manager which loaded the plugin | |
Результат | void |
public OnConnectionLost ( |
||
args | The arguments give information about the user, who disconnected from the server | |
Результат | void |
public OnPlayerConnected ( |
||
args | A UserEventArgs which give access to relevant operations like reading user information, or methods to cancel the request | |
Результат | void |
public OnPlayerServerSelection ( PluginResultEventArgs |
||
args | PluginResultEventArgs |
A UserEventArgs which give access to relevant operations like reading user information, and the current server which is a connect candidate, or methods to cancel the request |
Результат | void |
public OnUserAccountCheckAsync ( CheckAccountEventArgs args ) : System.Threading.Tasks.Task | ||
args | CheckAccountEventArgs | Contains the user connection object and the user hash. A plugin can kick users by setting the call canceled |
Результат | System.Threading.Tasks.Task |
public OnUserConnectedCompleted ( |
||
args | Information about the connected user | |
Результат | void |