File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class PaycheckPlugin : RocketPlugin<PaycheckPluginConfiguration>
2020 {
2121 public static PaycheckPlugin Instance ;
2222 public static PaycheckPluginConfiguration Config ;
23- public const string Version = "v1.2 " ;
23+ public const string Version = "v1.3 " ;
2424
2525 private float _nextPaycheck ;
2626 private Dictionary < CSteamID , Vector3 > _playerPositions ;
@@ -99,15 +99,13 @@ public void GivePaycheck(UnturnedPlayer player)
9999 if ( _playerPositions . ContainsKey ( player . CSteamID ) )
100100 {
101101 var distance = ( player . Position - _playerPositions [ player . CSteamID ] ) . sqrMagnitude ;
102- _playerPositions [ player . CSteamID ] = player . Position ;
103102 if ( distance <= Mathf . Pow ( Config . MinimumMovementBetweenPaychecks , 2 ) )
104103 {
104+ ShowNotification ( player , Translate ( "paycheck_stationary" ) , Color . yellow ) ;
105105 return ;
106106 }
107107 }
108108 _playerPositions [ player . CSteamID ] = player . Position ;
109- ShowNotification ( player , Translate ( "paycheck_stationary" ) , Color . yellow ) ;
110- return ;
111109 }
112110
113111 var experience = GetPaycheckExperienceSum ( paychecks ) ;
You can’t perform that action at this time.
0 commit comments