From fad7d32bc64af6f3d6da5e4339f3ef96d3dcc4cf Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 9 Mar 2020 21:35:43 +0100 Subject: [PATCH] fix house cmd --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index f4096dfd..e44eaaa1 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -2771,7 +2771,7 @@ namespace ReallifeGamemode.Server.Commands } [Command("house", "~m~Benutzung: ~s~/house [add / remove / price / type / reloadhouses]", GreedyArg = true)] - public void CmdAdminHouse(Player player, string option1, string option2 = null) + public void CmdAdminHouse(Player player, string option1 = null, string option2 = null) { if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true) { @@ -2779,7 +2779,7 @@ namespace ReallifeGamemode.Server.Commands return; } - option1 = option1.ToLower(); + option1 = option1?.ToLower(); if (option1 == "add") {