File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class OnLeave : IScript
99 [ Target ( GameSourceEvent . PlayerDestroy , ExecutionMode . Event ) ]
1010 public void OnEvent ( ShPlayer player )
1111 {
12- if ( ! player . isHuman ) return ;
12+ if ( ! player . isHuman ) { return ; }
1313 Core . Instance . PlayerHandler . Remove ( player . ID ) ;
1414 Core . Instance . Logger . LogInfo ( $ "[DISCONNECT] { player . username } disconnected.") ;
1515 }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class OnLogin : IScript
99 [ Target ( GameSourceEvent . PlayerInitialize , ExecutionMode . Event ) ]
1010 public void OnEvent ( ShPlayer player )
1111 {
12- if ( ! player . isHuman ) return ;
12+ if ( ! player . isHuman ) { return ; }
1313 Core . Instance . PlayerHandler . AddOrReplace ( player ) ;
1414 Core . Instance . Logger . LogInfo ( $ "[CONNECT] { player . username } Connected to the server.") ;
1515 }
You can’t perform that action at this time.
0 commit comments