@@ -83,12 +83,12 @@ public void onPluginMessage(PluginMessageEvent pluginMessageEvent) {
8383 plugin .getScheduler ().runAsync (() -> readMessage (forPlayer , channel , data ));
8484 }
8585
86- private void readMessage (Player forPlayer , String channel , byte [] data ) {
86+ private void readMessage (Player sender , String channel , byte [] data ) {
8787 FastLoginCore <Player , CommandSource , FastLoginVelocity > core = plugin .getCore ();
8888
8989 ByteArrayDataInput dataInput = ByteStreams .newDataInput (data );
9090 if (successChannel .equals (channel )) {
91- onSuccessMessage (forPlayer );
91+ onSuccessMessage (sender );
9292 } else if (changeChannel .equals (channel )) {
9393 ChangePremiumMessage changeMessage = new ChangePremiumMessage ();
9494 changeMessage .readFrom (dataInput );
@@ -97,19 +97,19 @@ private void readMessage(Player forPlayer, String channel, byte[] data) {
9797 boolean isSourceInvoker = changeMessage .isSourceInvoker ();
9898 if (changeMessage .shouldEnable ()) {
9999 Boolean premiumWarning = plugin .getCore ().getConfig ().get ("premium-warning" , true );
100- if (playerName .equals (forPlayer .getUsername ()) && premiumWarning
101- && !core .getPendingConfirms ().contains (forPlayer .getUniqueId ())) {
100+ if (playerName .equals (sender .getUsername ()) && premiumWarning
101+ && !core .getPendingConfirms ().contains (sender .getUniqueId ())) {
102102 String message = core .getMessage ("premium-warning" );
103- forPlayer .sendMessage (LegacyComponentSerializer .legacyAmpersand ().deserialize (message ));
104- core .getPendingConfirms ().add (forPlayer .getUniqueId ());
103+ sender .sendMessage (LegacyComponentSerializer .legacyAmpersand ().deserialize (message ));
104+ core .getPendingConfirms ().add (sender .getUniqueId ());
105105 return ;
106106 }
107107
108- core .getPendingConfirms ().remove (forPlayer .getUniqueId ());
109- Runnable task = new AsyncToggleMessage (core , forPlayer , playerName , true , isSourceInvoker );
108+ core .getPendingConfirms ().remove (sender .getUniqueId ());
109+ Runnable task = new AsyncToggleMessage (core , sender , playerName , true , isSourceInvoker );
110110 plugin .getScheduler ().runAsync (task );
111111 } else {
112- Runnable task = new AsyncToggleMessage (core , forPlayer , playerName , false , isSourceInvoker );
112+ Runnable task = new AsyncToggleMessage (core , sender , playerName , false , isSourceInvoker );
113113 plugin .getScheduler ().runAsync (task );
114114 }
115115 }
0 commit comments