add house reload command
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user