Added ChatService.Error, removed ChatService.ErrorMsg, removed hardcoded tuning garages

This commit is contained in:
hydrant
2019-04-22 13:22:27 +02:00
parent c756d038aa
commit 00dfb1180e
6 changed files with 72 additions and 80 deletions

View File

@@ -2,6 +2,7 @@
using Newtonsoft.Json;
using ReallifeGamemode.Server.Entities;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Services;
using ReallifeGamemode.Server.Util;
using System.Collections.Generic;
using System.Linq;
@@ -19,7 +20,7 @@ namespace ReallifeGamemode.Server.Events
Entities.Faction f = context.Factions.FirstOrDefault(x => x.Id == helper.FactionId);
if (f == null)
{
player.SendChatMessage("~r~[FEHLER]~s~ Bei der Bearbeitung der Ränge ist ein Fehler aufgetreten: Die Fraktion existiert nicht.");
ChatService.Error(player, "Bei der Bearbeitung der Ränge ist ein Fehler aufgetreten: Die Fraktion existiert nicht.");
return;
}