Skip to content

Commit

Permalink
Remove unnecesary arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Feb 18, 2022
1 parent b4c3030 commit b99911c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void onPluginMessage(final PluginMessageEvent event, Continuation continu
switch(sChannel){
case "LOGIN" :
if (loggedPlayer != null && api.addPlayer(loggedPlayer)){
createServerConnectionRequest(loggedPlayer, proxy, logger, connection);
this.createServerConnectionRequest(loggedPlayer, connection);
}
break;
case "LOGOUT":
Expand All @@ -80,7 +80,7 @@ public void onPluginMessage(final PluginMessageEvent event, Continuation continu
continuation.resume();
}

private void createServerConnectionRequest(Player loggedPlayer, ProxyServer proxy, Logger logger, ServerConnection connection){
private void createServerConnectionRequest(Player loggedPlayer, ServerConnection connection){
final RegisteredServer loginServer = loggedPlayer.getCurrentServer().orElse(connection).getServer();
proxy.getEventManager().fireAndForget(new ProxyLoginEvent(loggedPlayer));
if(config.getToServerOptions().sendToServer()){
Expand Down

0 comments on commit b99911c

Please sign in to comment.