fix house cmd

This commit is contained in:
hydrant
2020-03-09 21:35:43 +01:00
parent 3fc863da7b
commit fad7d32bc6

View File

@@ -2771,7 +2771,7 @@ namespace ReallifeGamemode.Server.Commands
} }
[Command("house", "~m~Benutzung: ~s~/house [add / remove / price / type / reloadhouses]", GreedyArg = true)] [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) if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
{ {
@@ -2779,7 +2779,7 @@ namespace ReallifeGamemode.Server.Commands
return; return;
} }
option1 = option1.ToLower(); option1 = option1?.ToLower();
if (option1 == "add") if (option1 == "add")
{ {