From fbbd8a26f7aaa7cc4565d3e680f15afcdcdc7853 Mon Sep 17 00:00:00 2001 From: Adam <893184+NotAdam@users.noreply.github.com> Date: Tue, 29 Dec 2020 00:10:07 +1100 Subject: [PATCH] fix command not working --- Penumbra/Plugin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Penumbra/Plugin.cs b/Penumbra/Plugin.cs index 3b6647b5..02f5ff35 100644 --- a/Penumbra/Plugin.cs +++ b/Penumbra/Plugin.cs @@ -68,14 +68,14 @@ public void Dispose() private void OnCommand( string command, string rawArgs ) { var args = rawArgs.Split( ' ' ); - if( args.Length > 0 ) + if( args.Length > 0 && args[ 0 ].Length > 0 ) { switch( args[ 0 ] ) { case "reload": { ModManager.DiscoverMods(); - PluginInterface.Framework.Gui.Chat.Print( + PluginInterface.Framework.Gui.Chat.Print( $"Reloaded Penumbra mods. You have {ModManager.Mods.ModSettings.Count} mods, {ModManager.Mods.EnabledMods.Length} of which are enabled." ); break;