eventport nachrichten angepasst
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
@@ -61,7 +61,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
PositionManager.eventportActive = true;
|
||||
|
||||
player.SendChatMessage("~y~Du hast hier erfolgreich einen Eventport gesetzt.");
|
||||
ChatService.BroadcastAdmin($"~b~[ADMIN]~s~ ~y~{player.Name}~s~ hat einen Eventport erstellt.", AdminLevel.ADMIN);
|
||||
ChatService.BroadcastAdmin($"~y~[EVENTPORT] ~s~{player.Name} hat den Eventport aktiviert.", AdminLevel.ADMIN);
|
||||
logger.LogInformation("Admin {0} created the eventport at x: {1}, y: {2}, z: {3}", player.Name, position.X, position.Y, position.Z);
|
||||
return;
|
||||
}
|
||||
@@ -74,14 +74,14 @@ namespace ReallifeGamemode.Server.Commands
|
||||
}
|
||||
PositionManager.eventportActive = false;
|
||||
player.SendChatMessage("~y~Du hast den Eventport deaktiviert.");
|
||||
ChatService.BroadcastAdmin($"~b~[ADMIN]~s~ ~y~{player.Name}~s~ hat einen Eventport deaktiviert.", AdminLevel.ADMIN);
|
||||
ChatService.BroadcastAdmin($"~y~[EVENTPORT] ~s~{player.Name} hat den Eventport deaktiviert.", AdminLevel.ADMIN);
|
||||
logger.LogInformation("Admin {0} removed the eventport", player.Name);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!PositionManager.eventportActive || PositionManager.eventportPosition == null)
|
||||
{
|
||||
player.SendChatMessage("~y~Im Moment ist kein Eventport aktiv.");
|
||||
ChatService.ErrorMessage(player, "Es ist kein Eventport aktiv");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
logger.LogInformation("Player {0} used the eventport to x: {1}, y: {2}, z: {3}", player.Name, currentEventport.X, currentEventport.Y, currentEventport.Z);
|
||||
|
||||
player.SafeTeleport(teleportPosition);
|
||||
player.SendNotification("Du hast dich zum Event teleportiert");
|
||||
player.SendChatMessage("~y~[EVENTPORT] ~s~Du hast dich zum Event teleportiert");
|
||||
}
|
||||
|
||||
[Command("sms", "~m~Benutzung: ~s~/sms [Spieler] [Nachricht]", GreedyArg = true)]
|
||||
|
||||
Reference in New Issue
Block a user