RAGE Multiplayer 1.1.0-DP Update
/freeze was obselete and removed /unfreeze was obselete and removed /spectate was obselete and removed
This commit is contained in:
@@ -19,22 +19,22 @@ namespace ReallifeGamemode.Server.Services
|
||||
{
|
||||
class ChatService
|
||||
{
|
||||
public static void NotAuthorized(Client player)
|
||||
public static void NotAuthorized(Player player)
|
||||
{
|
||||
ChatService.ErrorMessage(player, "Du kannst diesen Befehl nicht ausführen");
|
||||
}
|
||||
|
||||
public static void PlayerNotFound(Client player)
|
||||
public static void PlayerNotFound(Player player)
|
||||
{
|
||||
ChatService.ErrorMessage(player, "Der Spieler wurde nicht gefunden");
|
||||
}
|
||||
|
||||
public static void ErrorMessage(Client player, string message)
|
||||
public static void ErrorMessage(Player player, string message)
|
||||
{
|
||||
ChatService.SendMessage(player, $"~r~[FEHLER]~s~ {message}~s~.");
|
||||
}
|
||||
|
||||
public static void SendMessage(Client player, string message)
|
||||
public static void SendMessage(Player player, string message)
|
||||
{
|
||||
if (player == null) return;
|
||||
player.SendChatMessage(message);
|
||||
@@ -49,7 +49,7 @@ namespace ReallifeGamemode.Server.Services
|
||||
/// <param name="factions">Die Liste an Fraktionen, die diese Nachricht bekommen sollen</param>
|
||||
public static void BroadcastFaction(string message, List<Faction> factions)
|
||||
{
|
||||
foreach (Client c in NAPI.Pools.GetAllPlayers())
|
||||
foreach (Player c in NAPI.Pools.GetAllPlayers())
|
||||
{
|
||||
Faction f = c.GetUser()?.Faction;
|
||||
if (f != null)
|
||||
@@ -94,7 +94,7 @@ namespace ReallifeGamemode.Server.Services
|
||||
}
|
||||
public static void BroadcastDutyAdmin(string message)
|
||||
{
|
||||
foreach (Client admin in GlobalHelper.DutyAdmins)
|
||||
foreach (Player admin in GlobalHelper.DutyAdmins)
|
||||
{
|
||||
ChatService.SendMessage(admin, message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user