diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 47587712..67012bcb 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -954,6 +954,7 @@ namespace ReallifeGamemode.Server.Commands } VehicleManager.DeleteVehicle(targetVeh); + targetVeh.Trailer?.Delete(); } [Command("vlivery", "~m~Benutzung: ~s~/vlivery [Livery]")] diff --git a/ReallifeGamemode.Server/Events/Key.cs b/ReallifeGamemode.Server/Events/Key.cs index 82cfdf1b..d860c575 100644 --- a/ReallifeGamemode.Server/Events/Key.cs +++ b/ReallifeGamemode.Server/Events/Key.cs @@ -115,7 +115,7 @@ namespace ReallifeGamemode.Server.Events }; string faction = u.FactionLeader ? u.Faction.Name : null; - string group = u.Group?.Name ?? null; + string group = u.Group != null && u.GroupRank >= GroupRank.MANAGER ? u.Group.Name : null; bool factionInvite = player.HasData("accept_faction_invite"); bool groupInvite = player.HasData("accept_group_invite");