Inline Prototype
This commit is contained in:
@@ -6,8 +6,10 @@ using Content.Server.Administration;
|
||||
using Content.Shared.Administration;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Console;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -74,7 +76,8 @@ namespace Content.Server.GameTicking.Commands
|
||||
shell.ExecuteCommand($"addmap {mapId} false");
|
||||
shell.ExecuteCommand($"loadbp {mapId} \"{CommandParsing.Escape(mapName)}\" true");
|
||||
|
||||
if (player.AttachedEntity?.Prototype?.ID != "AdminObserver")
|
||||
IEntity? tempQualifier = player.AttachedEntity;
|
||||
if ((tempQualifier != null ? IoCManager.Resolve<IEntityManager>().GetComponent<MetaDataComponent>(tempQualifier.Uid).EntityPrototype : null)?.ID != "AdminObserver")
|
||||
shell.ExecuteCommand("aghost");
|
||||
|
||||
shell.ExecuteCommand($"tp 0 0 {mapId}");
|
||||
|
||||
Reference in New Issue
Block a user