Skip to content

Commit 5283b60

Browse files
committed
Fix: NPC's beeing adde to the PlayerHandler
Better Code Style
1 parent 70c4741 commit 5283b60

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/BPEssentials/Events/OnLeave.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/BPEssentials/Events/OnLogin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)