From 1d961c7d81462cf74473b8e3f560983f32f05825 Mon Sep 17 00:00:00 2001 From: samczsun Date: Mon, 10 Oct 2016 09:17:43 -0400 Subject: [PATCH] GamePlayerManager: Don't load kits if offline --- .../src/nautilus/game/arcade/managers/GamePlayerManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/GamePlayerManager.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/GamePlayerManager.java index 8fd98e64f..30fa82366 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/GamePlayerManager.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/GamePlayerManager.java @@ -134,6 +134,9 @@ public class GamePlayerManager implements Listener @Override public void run() { + if (!player.isOnline()) + return; + player.sendMessage(F.main("Kit", "Loading default kit for " + C.cGreenB + Manager.GetGame().GetName() + C.cGray + "...")); for (Kit kit : Manager.GetGame().GetKits()) {