add house reload command

This commit is contained in:
hydrant
2019-06-27 19:33:05 +02:00
parent f2b1788939
commit c63c516757
3 changed files with 55 additions and 8 deletions

View File

@@ -2432,7 +2432,7 @@ namespace ReallifeGamemode.Server.Commands
ChatService.SendMessage(player, "~b~[ADMIN]~s~ Die Türen wurden erfolgreich neugeladen.");
}
[Command("house", "~m~Benutzung: ~s~/house [add / remove / price / type]", GreedyArg = true)]
[Command("house", "~m~Benutzung: ~s~/house [add / remove / price / type / reloadhouses]", GreedyArg = true)]
public void CmdAdminHouse(Client player, string option1, string option2 = null)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
@@ -2550,8 +2550,13 @@ namespace ReallifeGamemode.Server.Commands
return;
}
else if(option1 == "reloadhouses")
{
HouseManager.ReloadAllHouses();
player.SendNotification("Alle Häuser wurden neu geladen");
}
player.SendChatMessage("~m~Benutzung: ~s~/house [add / remove / price / type]");
player.SendChatMessage("~m~Benutzung: ~s~/house [add / remove / price / type / reloadhouses]");
}
#endregion