fix house cmd
This commit is contained in:
@@ -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")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user