1 parent 0d9b2bc commit f0b74e1Copy full SHA for f0b74e1
1 file changed
Essentials/Commands/CleanupModule.cs
@@ -11,6 +11,7 @@
11
using Torch.Commands;
12
using Torch.Mod;
13
using Torch.Mod.Messages;
14
+using VRage.Game;
15
using Vector3D = VRageMath.Vector3D;
16
17
namespace Essentials.Commands
@@ -366,6 +367,13 @@ public bool OwnedBy(MyCubeGrid grid, string str)
366
367
if (string.Compare(str, "pirates", StringComparison.InvariantCultureIgnoreCase) == 0)
368
{
369
identityId = MyPirateAntennas.GetPiratesId();
370
+ var pirateFaction = MySession.Static.Factions.GetPlayerFaction(identityId);
371
+ if (pirateFaction != null && pirateFaction.Members.Count > 1)
372
+ {
373
+ return grid.BigOwners.Count > 0 &&
374
+ pirateFaction.Members.ContainsKey(grid.BigOwners.FirstOrDefault());
375
+ }
376
+
377
}
378
else
379
0 commit comments