/save location leerzeichen

This commit is contained in:
hydrant
2019-10-04 19:03:53 +02:00
parent d61a9bcdb8
commit 1a80237ff6
2 changed files with 7 additions and 3 deletions

View File

@@ -1738,7 +1738,7 @@ namespace ReallifeGamemode.Server.Commands
}
}
[Command("save", "~m~Benutzung: ~s~/save [Typ = ~g~Blip~s~, ~g~Goto (X)~s~, ~r~Marker~s~, ~r~Ped~s~, ~r~Pickup~s~, ~r~TextLabel~s~, ~g~Vehicle~s~, ~g~FVehicle~s~, ~g~SVehicle (X)~s~, ~g~JVehicle (X)~s~, ~g~Location~s~] (Weitere Angaben) = (X)")]
[Command("save", "~m~Benutzung: ~s~/save [Typ = ~g~Blip~s~, ~g~Goto (X)~s~, ~r~Marker~s~, ~r~Ped~s~, ~r~Pickup~s~, ~r~TextLabel~s~, ~g~Vehicle~s~, ~g~FVehicle~s~, ~g~SVehicle (X)~s~, ~g~JVehicle (X)~s~, ~g~Location~s~] (Weitere Angaben) = (X)", GreedyArg = true)]
public void CmdAdminSave(Client player, string typ, string option1 = null, string option2 = null)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
@@ -1902,7 +1902,7 @@ namespace ReallifeGamemode.Server.Commands
{
dbContext.Locations.Add(new Location
{
Description = option1,
Description = option1 + (option2 != null ? " " + option2 : ""),
X = player.Position.X,
Y = player.Position.Y,
Z = player.Position.Z,