diff --git a/.vs/EssentialsPlugin/EssentialsPlugin.scgdat b/.vs/EssentialsPlugin/EssentialsPlugin.scgdat index 847f2e6..e09f3ca 100644 Binary files a/.vs/EssentialsPlugin/EssentialsPlugin.scgdat and b/.vs/EssentialsPlugin/EssentialsPlugin.scgdat differ diff --git a/EssentialsPlugin/AssemblyFileVersion.cs b/EssentialsPlugin/AssemblyFileVersion.cs index b47c2a0..ad1b75d 100644 --- a/EssentialsPlugin/AssemblyFileVersion.cs +++ b/EssentialsPlugin/AssemblyFileVersion.cs @@ -1,4 +1,4 @@ -//268 +//281 // // This code was generated by a tool. Any changes made manually will be lost // the next time this code is regenerated. @@ -6,5 +6,5 @@ using System.Reflection; -[assembly: AssemblyFileVersion("1.13.5.268")] -[assembly: AssemblyVersion("1.13.5.268")] +[assembly: AssemblyFileVersion("1.13.5.281")] +[assembly: AssemblyVersion("1.13.5.281")] diff --git a/EssentialsPlugin/ChatHandlers/Admin/HandleAdminIdentityCleanup.cs b/EssentialsPlugin/ChatHandlers/Admin/HandleAdminIdentityCleanup.cs new file mode 100644 index 0000000..2157b33 --- /dev/null +++ b/EssentialsPlugin/ChatHandlers/Admin/HandleAdminIdentityCleanup.cs @@ -0,0 +1,75 @@ +namespace EssentialsPlugin.ChatHandlers.Admin +{ + using System.Collections.Generic; + using System.Linq; + using Sandbox.Game.Multiplayer; + using Sandbox.Game.World; + using Sandbox.ModAPI; + using Utility; + public class HandleAdminIdentityCleanup : ChatHandlerBase + { + + public override string GetHelp() + { + return "For testing."; + } + + public override string GetCommandText() + { + return "/admin identity cleanup"; + } + + public override Communication.ServerDialogItem GetHelpDialog( ) + { + Communication.ServerDialogItem DialogItem = new Communication.ServerDialogItem( ); + DialogItem.title = "Help"; + DialogItem.header = ""; + DialogItem.content = GetHelp( ); + DialogItem.buttonText = "close"; + return DialogItem; + } + + public override bool IsAdminCommand() + { + return true; + } + + public override bool AllowedInConsole() + { + return true; + } + + public override bool HandleCommand( ulong userId, string[ ] words ) + {/* + MyPlayerCollection playerCollection = MyAPIGateway.Players as MyPlayerCollection; + + if ( playerCollection == null ) + return true; + + var identities = playerCollection.GetAllIdentities( ).GroupBy( x => x.DisplayName ).Where( y => y.Count( ) > 1 ).ToList( ); + + while ( identities.Count > 0 ) + { + string compareName = identities[0].Key; + var toDelete = identities.Where(x => x. ) + } + + int count = identitiesToDelete.Count; + foreach(MyIdentity toDelete in identitiesToDelete) + { + Essentials.Log.Info( $"Deleted dead identity {toDelete.DisplayName}" ); + playerCollection.RemoveIdentity( toDelete.IdentityId ); + } + + if ( count != 0 ) + { + Essentials.Log.Info( $"Deleted {count} dead identities." ); + } + */ + return true; + } + + } + +} + diff --git a/EssentialsPlugin/ChatHandlers/Admin/HandleAdminOwnershipChange.cs b/EssentialsPlugin/ChatHandlers/Admin/HandleAdminOwnershipChange.cs index 28b2c24..a34ed10 100644 --- a/EssentialsPlugin/ChatHandlers/Admin/HandleAdminOwnershipChange.cs +++ b/EssentialsPlugin/ChatHandlers/Admin/HandleAdminOwnershipChange.cs @@ -10,6 +10,7 @@ using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock; using VRage.ModAPI; using VRage.Game; + using VRage.Game.ModAPI; public class HandleAdminOwnershipChange : ChatHandlerBase { diff --git a/EssentialsPlugin/ChatHandlers/Admin/HandleAdminStop.cs b/EssentialsPlugin/ChatHandlers/Admin/HandleAdminStop.cs index 2e59b5c..487b10f 100644 --- a/EssentialsPlugin/ChatHandlers/Admin/HandleAdminStop.cs +++ b/EssentialsPlugin/ChatHandlers/Admin/HandleAdminStop.cs @@ -13,6 +13,8 @@ using VRageMath; using Sandbox.Game.Entities; using Sandbox.Game.Entities.Cube; + using VRage.Game.ModAPI; + public class HandleAdminStop : ChatHandlerBase { public override string GetHelp( ) diff --git a/EssentialsPlugin/ChatHandlers/Admin/HandleAdminTurrets.cs b/EssentialsPlugin/ChatHandlers/Admin/HandleAdminTurrets.cs index fdb79de..f942c54 100644 --- a/EssentialsPlugin/ChatHandlers/Admin/HandleAdminTurrets.cs +++ b/EssentialsPlugin/ChatHandlers/Admin/HandleAdminTurrets.cs @@ -5,11 +5,13 @@ using EssentialsPlugin.Utility; using Sandbox.Common; using Sandbox.Common.ObjectBuilders; + using Sandbox.Game.Entities; using Sandbox.ModAPI; using Sandbox.ModAPI.Interfaces; using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminConceal.cs b/EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminConceal.cs index 805fc70..8266b74 100644 --- a/EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminConceal.cs +++ b/EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminConceal.cs @@ -8,6 +8,7 @@ using SEModAPIInternal.API.Common; using VRage.ModAPI; using EntityManagers; + using VRage.Game.ModAPI; public class HandleAdminConceal : ChatHandlerBase { diff --git a/EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminReveal.cs b/EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminReveal.cs index 1e03be9..2bf6997 100644 --- a/EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminReveal.cs +++ b/EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminReveal.cs @@ -11,6 +11,7 @@ using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRage.ObjectBuilders; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteCleanup.cs b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteCleanup.cs index 0c078e9..39a38d5 100644 --- a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteCleanup.cs +++ b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteCleanup.cs @@ -8,6 +8,7 @@ using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRage.Game.ObjectBuilders; diff --git a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteFloating.cs b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteFloating.cs index 3d15d8b..9498f35 100644 --- a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteFloating.cs +++ b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteFloating.cs @@ -11,6 +11,7 @@ using SEModAPIInternal.API.Entity.Sector.SectorObject; using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid; using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleAdminDeleteFloating : ChatHandlerBase { @@ -58,7 +59,7 @@ public override bool HandleCommand( ulong userId, string[ ] words ) if ( entity == null ) continue; - if ( entity is IMyFloatingObject || entity is MyInventoryBagEntity ) + if ( entity is IMyFloatingObject || entity is MyInventoryBagEntity || entity is IMyMeteor ) { count++; Wrapper.GameAction(()=> diff --git a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteGrids.cs b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteGrids.cs index 98f0e1d..148d0d1 100644 --- a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteGrids.cs +++ b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteGrids.cs @@ -8,6 +8,7 @@ using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleAdminDeleteGrids : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteInactive.cs b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteInactive.cs index 6e5947a..fd9a43e 100644 --- a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteInactive.cs +++ b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteInactive.cs @@ -9,6 +9,7 @@ namespace EssentialsPlugin.ChatHandlers.AdminDelete using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleAdminDeleteInactive : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteNoBeacon.cs b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteNoBeacon.cs index fa44c3e..ae7e85e 100644 --- a/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteNoBeacon.cs +++ b/EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteNoBeacon.cs @@ -8,6 +8,7 @@ using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleAdminDeleteNoBeacon : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/AdminMove/HandleAdminMoveAreaToPosition.cs b/EssentialsPlugin/ChatHandlers/AdminMove/HandleAdminMoveAreaToPosition.cs index 5815f89..ec8dbb4 100644 --- a/EssentialsPlugin/ChatHandlers/AdminMove/HandleAdminMoveAreaToPosition.cs +++ b/EssentialsPlugin/ChatHandlers/AdminMove/HandleAdminMoveAreaToPosition.cs @@ -10,6 +10,7 @@ using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/AdminMove/HandleAdminMoveAreaTowards.cs b/EssentialsPlugin/ChatHandlers/AdminMove/HandleAdminMoveAreaTowards.cs index 7a169e4..fb6992a 100644 --- a/EssentialsPlugin/ChatHandlers/AdminMove/HandleAdminMoveAreaTowards.cs +++ b/EssentialsPlugin/ChatHandlers/AdminMove/HandleAdminMoveAreaTowards.cs @@ -10,6 +10,7 @@ using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/AdminPlayer/HandleAdminPlayer.cs b/EssentialsPlugin/ChatHandlers/AdminPlayer/HandleAdminPlayer.cs index 2d679b6..2d42f3d 100644 --- a/EssentialsPlugin/ChatHandlers/AdminPlayer/HandleAdminPlayer.cs +++ b/EssentialsPlugin/ChatHandlers/AdminPlayer/HandleAdminPlayer.cs @@ -7,6 +7,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Common; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleAdminPlayer : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/AdminPlayer/HandleAdminPlayerCleanup.cs b/EssentialsPlugin/ChatHandlers/AdminPlayer/HandleAdminPlayerCleanup.cs index 99be89b..4788eb2 100644 --- a/EssentialsPlugin/ChatHandlers/AdminPlayer/HandleAdminPlayerCleanup.cs +++ b/EssentialsPlugin/ChatHandlers/AdminPlayer/HandleAdminPlayerCleanup.cs @@ -7,6 +7,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Common; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleAdminPlayerCleanup : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanAreaAt.cs b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanAreaAt.cs index 4de7157..4229dc6 100644 --- a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanAreaAt.cs +++ b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanAreaAt.cs @@ -6,6 +6,7 @@ using Sandbox.Common.ObjectBuilders; using Sandbox.ModAPI; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanAreaTowards.cs b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanAreaTowards.cs index 8009440..8ddb186 100644 --- a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanAreaTowards.cs +++ b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanAreaTowards.cs @@ -6,6 +6,7 @@ using Sandbox.Common.ObjectBuilders; using Sandbox.ModAPI; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanInactive.cs b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanInactive.cs index 87ca67a..abe3c1f 100644 --- a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanInactive.cs +++ b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanInactive.cs @@ -10,6 +10,7 @@ namespace EssentialsPlugin.ChatHandlers using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRage.ObjectBuilders; public class HandleAdminScanInactive : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanNoBeacon.cs b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanNoBeacon.cs index 063b97f..11bebdb 100644 --- a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanNoBeacon.cs +++ b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanNoBeacon.cs @@ -8,6 +8,7 @@ using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleAdminScanNoBeacon : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanOverlimit.cs b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanOverlimit.cs index 54f5ac6..93ef26c 100644 --- a/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanOverlimit.cs +++ b/EssentialsPlugin/ChatHandlers/AdminScan/HandleAdminScanOverlimit.cs @@ -8,6 +8,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Common; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleAdminScanOverlimit : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/Dock/HandleAdminUndockAll.cs b/EssentialsPlugin/ChatHandlers/Dock/HandleAdminUndockAll.cs index 76f9f1e..ca8c798 100644 --- a/EssentialsPlugin/ChatHandlers/Dock/HandleAdminUndockAll.cs +++ b/EssentialsPlugin/ChatHandlers/Dock/HandleAdminUndockAll.cs @@ -12,6 +12,7 @@ using SEModAPIInternal.API.Entity; using VRage; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRage.ObjectBuilders; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/Dock/HandleDockDock.cs b/EssentialsPlugin/ChatHandlers/Dock/HandleDockDock.cs index 9e2040b..8db2ceb 100644 --- a/EssentialsPlugin/ChatHandlers/Dock/HandleDockDock.cs +++ b/EssentialsPlugin/ChatHandlers/Dock/HandleDockDock.cs @@ -13,6 +13,7 @@ using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRage.ObjectBuilders; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/Dock/HandleDockList.cs b/EssentialsPlugin/ChatHandlers/Dock/HandleDockList.cs index ef3db71..c3989d2 100644 --- a/EssentialsPlugin/ChatHandlers/Dock/HandleDockList.cs +++ b/EssentialsPlugin/ChatHandlers/Dock/HandleDockList.cs @@ -6,8 +6,9 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; - public class HandleDockList : ChatHandlerBase + public class HandleDockList : ChatHandlerBase { public override string GetHelp() { diff --git a/EssentialsPlugin/ChatHandlers/Dock/HandleDockUndock.cs b/EssentialsPlugin/ChatHandlers/Dock/HandleDockUndock.cs index 5f814f8..e15a3cf 100644 --- a/EssentialsPlugin/ChatHandlers/Dock/HandleDockUndock.cs +++ b/EssentialsPlugin/ChatHandlers/Dock/HandleDockUndock.cs @@ -14,6 +14,7 @@ using SEModAPIInternal.API.Entity; using VRage; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRage.ObjectBuilders; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/Dock/HandleDockValidate.cs b/EssentialsPlugin/ChatHandlers/Dock/HandleDockValidate.cs index 7cccac6..6dee860 100644 --- a/EssentialsPlugin/ChatHandlers/Dock/HandleDockValidate.cs +++ b/EssentialsPlugin/ChatHandlers/Dock/HandleDockValidate.cs @@ -6,8 +6,9 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; - public class HandleDockValidate : ChatHandlerBase + public class HandleDockValidate : ChatHandlerBase { public override string GetHelp() { diff --git a/EssentialsPlugin/ChatHandlers/HandleMotd.cs b/EssentialsPlugin/ChatHandlers/HandleMotd.cs index a83b17b..f255da9 100644 --- a/EssentialsPlugin/ChatHandlers/HandleMotd.cs +++ b/EssentialsPlugin/ChatHandlers/HandleMotd.cs @@ -6,8 +6,9 @@ using EssentialsPlugin.Settings; using EssentialsPlugin.Utility; using Sandbox.ModAPI; + using VRage.Game.ModAPI; - public class HandleMotd : ChatHandlerBase + public class HandleMotd : ChatHandlerBase { DateTime m_start = DateTime.Now; diff --git a/EssentialsPlugin/ChatHandlers/HandlePos.cs b/EssentialsPlugin/ChatHandlers/HandlePos.cs index df3bcd1..017a2eb 100644 --- a/EssentialsPlugin/ChatHandlers/HandlePos.cs +++ b/EssentialsPlugin/ChatHandlers/HandlePos.cs @@ -4,6 +4,7 @@ using System.Linq; using EssentialsPlugin.Utility; using Sandbox.ModAPI; + using VRage.Game.ModAPI; using VRageMath; public class HandlePos : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityExportServer.cs b/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityExportServer.cs index 75482d8..26bf44b 100644 --- a/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityExportServer.cs +++ b/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityExportServer.cs @@ -12,6 +12,7 @@ using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Entity; using VRage.FileSystem; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRage.ObjectBuilders; diff --git a/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityGridsCompare.cs b/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityGridsCompare.cs index fa7d70b..037160b 100644 --- a/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityGridsCompare.cs +++ b/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityGridsCompare.cs @@ -5,6 +5,7 @@ using System.Linq; using EssentialsPlugin.Utility; using Sandbox.ModAPI; + using VRage.Game.ModAPI; using VRage.ModAPI; public class HandleUtilityGridsCompare : ChatHandlerBase diff --git a/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityGridsList.cs b/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityGridsList.cs index f15b9f5..2e19997 100644 --- a/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityGridsList.cs +++ b/EssentialsPlugin/ChatHandlers/Utility/HandleUtilityGridsList.cs @@ -11,6 +11,7 @@ using VRageMath; using Sandbox.Game; using VRage.Game; + using VRage.Game.ModAPI; public class HandleUtilityGridsList : ChatHandlerBase { diff --git a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointFactionAdd.cs b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointFactionAdd.cs index 05b501b..c0087f0 100644 --- a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointFactionAdd.cs +++ b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointFactionAdd.cs @@ -6,6 +6,7 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointFactionRemove.cs b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointFactionRemove.cs index a958a8a..d238362 100644 --- a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointFactionRemove.cs +++ b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointFactionRemove.cs @@ -5,8 +5,9 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; - public class HandleWaypointFactionRemove : ChatHandlerBase + public class HandleWaypointFactionRemove : ChatHandlerBase { public override string GetHelp() { diff --git a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointGroupAdd.cs b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointGroupAdd.cs index ce674cf..a145129 100644 --- a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointGroupAdd.cs +++ b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointGroupAdd.cs @@ -5,8 +5,9 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; - public class HandleWaypointGroupAdd : ChatHandlerBase + public class HandleWaypointGroupAdd : ChatHandlerBase { public override string GetHelp() { diff --git a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointGroupRemove.cs b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointGroupRemove.cs index c884385..d4fc2a0 100644 --- a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointGroupRemove.cs +++ b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointGroupRemove.cs @@ -5,8 +5,9 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; - public class HandleWaypointGroupRemove : ChatHandlerBase + public class HandleWaypointGroupRemove : ChatHandlerBase { public override string GetHelp() { diff --git a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointList.cs b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointList.cs index 0124a61..ddb3f77 100644 --- a/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointList.cs +++ b/EssentialsPlugin/ChatHandlers/Waypoints/HandleWaypointList.cs @@ -5,8 +5,9 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; - public class HandleWaypointList : ChatHandlerBase + public class HandleWaypointList : ChatHandlerBase { public override string GetHelp() { diff --git a/EssentialsPlugin/EntityManagers/BlockManagement.cs b/EssentialsPlugin/EntityManagers/BlockManagement.cs index ca48eac..79bf8f4 100644 --- a/EssentialsPlugin/EntityManagers/BlockManagement.cs +++ b/EssentialsPlugin/EntityManagers/BlockManagement.cs @@ -12,6 +12,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class BlockManagement diff --git a/EssentialsPlugin/EntityManagers/EntityManagement.cs b/EssentialsPlugin/EntityManagers/EntityManagement.cs index 04130c9..99cd4ff 100644 --- a/EssentialsPlugin/EntityManagers/EntityManagement.cs +++ b/EssentialsPlugin/EntityManagers/EntityManagement.cs @@ -16,11 +16,8 @@ using VRage.ModAPI; using VRage.ObjectBuilders; using VRageMath; - using IMyCubeBlock = Sandbox.ModAPI.IMyCubeBlock; - using IMyCubeGrid = Sandbox.ModAPI.IMyCubeGrid; using IMyFunctionalBlock = Sandbox.ModAPI.Ingame.IMyFunctionalBlock; using IMyProductionBlock = Sandbox.ModAPI.Ingame.IMyProductionBlock; - using IMySlimBlock = Sandbox.ModAPI.IMySlimBlock; using IMyTerminalBlock = Sandbox.ModAPI.Ingame.IMyTerminalBlock; using Sandbox.Engine.Multiplayer; using Sandbox.Game.Replication; @@ -30,7 +27,9 @@ using VRage.Collections; using Sandbox.Game.Entities.Blocks; using Sandbox.Game.Entities.Character; + using SpaceEngineers.Game.ModAPI.Ingame; using VRage.Game; + using VRage.Game.ModAPI; class ConcealItem { diff --git a/EssentialsPlugin/EntityManagers/TurretManagement.cs b/EssentialsPlugin/EntityManagers/TurretManagement.cs index 4c392fd..0b6cc6c 100644 --- a/EssentialsPlugin/EntityManagers/TurretManagement.cs +++ b/EssentialsPlugin/EntityManagers/TurretManagement.cs @@ -9,6 +9,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/EntityManagers/VoxelManagement.cs b/EssentialsPlugin/EntityManagers/VoxelManagement.cs index a252fe4..dc9c6a4 100644 --- a/EssentialsPlugin/EntityManagers/VoxelManagement.cs +++ b/EssentialsPlugin/EntityManagers/VoxelManagement.cs @@ -5,6 +5,7 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using VRage; + using VRage.Game.ModAPI; using VRage.ModAPI; public class VoxelManagement diff --git a/EssentialsPlugin/Essentials.cs b/EssentialsPlugin/Essentials.cs index 1cc340a..8d7267e 100644 --- a/EssentialsPlugin/Essentials.cs +++ b/EssentialsPlugin/Essentials.cs @@ -1116,7 +1116,8 @@ private void DoInit( string path ) new ProcessVoxels( ), new ProcessReservedSlots(), new ProcessTimedCommands( ), - new ProcessSpeed( ) + new ProcessSpeed( ), + //new ProcessPlayerCleanup( ) }; // Setup chat handlers @@ -1133,6 +1134,7 @@ private void DoInit( string path ) new HandleAdminVersion( ), new HandleAdminStop( ), new HandleAdminSpeed( ), + new HandleAdminIdentityCleanup( ), //Admin Scan @@ -1230,19 +1232,13 @@ private void DoInit( string path ) MyAPIGateway.Entities.OnEntityRemove -= OnEntityRemove; MyAPIGateway.Entities.OnEntityAdd += OnEntityAdd; MyAPIGateway.Entities.OnEntityRemove += OnEntityRemove; - - MyAPIGateway.Multiplayer.RegisterMessageHandler( 9003, ReceiveDataMessage ); - + Protection.Init( ); ProcessReservedSlots.Init( ); Log.Info( "Plugin '{0}' initialized. (Version: {1} ID: {2})", Name, Version, Id ); } - - private void ReceiveDataMessage( byte[] data ) - { - - } + #endregion @@ -1375,7 +1371,6 @@ public void Update( ) { if (MyAPIGateway.Session == null) return; - Protection.DealDamage( ); } #endregion diff --git a/EssentialsPlugin/EssentialsPlugin.csproj b/EssentialsPlugin/EssentialsPlugin.csproj index ec8e1d4..bd1dc89 100644 --- a/EssentialsPlugin/EssentialsPlugin.csproj +++ b/EssentialsPlugin/EssentialsPlugin.csproj @@ -78,6 +78,7 @@ + @@ -137,6 +138,7 @@ + diff --git a/EssentialsPlugin/GameModes/Conquest.cs b/EssentialsPlugin/GameModes/Conquest.cs index d1469b8..e4d5503 100644 --- a/EssentialsPlugin/GameModes/Conquest.cs +++ b/EssentialsPlugin/GameModes/Conquest.cs @@ -12,6 +12,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Common; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ProcessHandlers/ProcessBlockEnforcement.cs b/EssentialsPlugin/ProcessHandlers/ProcessBlockEnforcement.cs index f58fa86..5818506 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessBlockEnforcement.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessBlockEnforcement.cs @@ -7,16 +7,16 @@ using Sandbox.ModAPI; using Sandbox.ModAPI.Ingame; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; - using IMyCubeGrid = Sandbox.ModAPI.IMyCubeGrid; using IMyTerminalBlock = Sandbox.ModAPI.Ingame.IMyTerminalBlock; class ProcessBlockEnforcement : ProcessHandlerBase { public override int GetUpdateResolution( ) { - return 45000; + return 5000; } public override void Handle( ) @@ -48,7 +48,7 @@ private void ScanForBlockItems( ) try { - MyAPIGateway.Entities.GetEntities( entities ); + Wrapper.GameAction(()=>MyAPIGateway.Entities.GetEntities( entities )); } catch ( Exception ex ) { @@ -67,14 +67,19 @@ private void ScanForBlockItems( ) continue; IMyCubeGrid grid = (IMyCubeGrid)entity; - IMyGridTerminalSystem gridTerminal = MyAPIGateway.TerminalActionsHelper.GetTerminalSystemForGrid( grid ); + //IMyGridTerminalSystem gridTerminal = MyAPIGateway.TerminalActionsHelper.GetTerminalSystemForGrid( grid ); Dictionary blocks = new Dictionary( ); - List blockstoProcess = new List( ); - gridTerminal.GetBlocksOfType( blockstoProcess ); - foreach ( IMyTerminalBlock myTerminalBlock in blockstoProcess ) + //List blockstoProcess = new List( ); + //gridTerminal.GetBlocksOfType( blockstoProcess ); + ListblockstoProcess = new List(); + grid.GetBlocks( blockstoProcess, x => x.FatBlock is IMyTerminalBlock ); + foreach ( IMySlimBlock myTerminalBlock in blockstoProcess ) { - IMyTerminalBlock block = myTerminalBlock; + if ( myTerminalBlock?.FatBlock == null ) + continue; + + IMyTerminalBlock block = (IMyTerminalBlock)myTerminalBlock.FatBlock; foreach ( SettingsBlockEnforcementItem item in PluginSettings.Instance.BlockEnforcementItems ) { if ( item.Mode == SettingsBlockEnforcementItem.EnforcementMode.Off ) diff --git a/EssentialsPlugin/ProcessHandlers/ProcessDockingZone.cs b/EssentialsPlugin/ProcessHandlers/ProcessDockingZone.cs index b370d51..aeb1bae 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessDockingZone.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessDockingZone.cs @@ -7,6 +7,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Common; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ProcessHandlers/ProcessGreeting.cs b/EssentialsPlugin/ProcessHandlers/ProcessGreeting.cs index 79f40e2..025652c 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessGreeting.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessGreeting.cs @@ -8,8 +8,9 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; - class GreetingItem + class GreetingItem { private DateTime _start; public DateTime Start @@ -121,12 +122,9 @@ public override void Handle() } else { - Essentials.Log.Debug( "m" ); if (PluginSettings.Instance.GreetingItem.Enabled) { - Essentials.Log.Debug( "n" ); SettingsGreetingDialogItem gItem = PluginSettings.Instance.GreetingItem; - Essentials.Log.Debug( "o" ); Communication.DisplayDialog(item.SteamId, gItem.Title.Replace("%name%", player.DisplayName), gItem.Header.Replace("%name%", player.DisplayName), gItem.Contents.Replace("%name%", player.DisplayName).Replace("\r", "").Replace("\n", "|").Replace("\"", "'"), gItem.ButtonText); } } diff --git a/EssentialsPlugin/ProcessHandlers/ProcessNewUserTransport.cs b/EssentialsPlugin/ProcessHandlers/ProcessNewUserTransport.cs index 2c7e210..4c50cd0 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessNewUserTransport.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessNewUserTransport.cs @@ -11,6 +11,7 @@ using SEModAPIInternal.API.Entity; using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ProcessHandlers/ProcessPlayerCleanup.cs b/EssentialsPlugin/ProcessHandlers/ProcessPlayerCleanup.cs new file mode 100644 index 0000000..85527ee --- /dev/null +++ b/EssentialsPlugin/ProcessHandlers/ProcessPlayerCleanup.cs @@ -0,0 +1,56 @@ +namespace EssentialsPlugin.ProcessHandlers +{ + using System; + using System.Collections.Generic; + using System.Diagnostics; + using System.IO; + using System.Net; + using System.Threading; + using System.Windows.Forms; + using EssentialsPlugin.Settings; + using EssentialsPlugin.Utility; + using Sandbox; + using Sandbox.Game.Multiplayer; + using Sandbox.Game.World; + using Sandbox.ModAPI; + using SEModAPIExtensions.API; + using SEModAPIInternal.API.Common; + using SteamSDK; + using VRage.Library.Collections; + using VRage.ModAPI; + using VRageMath; + + class ProcessPlayerCleanup : ProcessHandlerBase + { + public override int GetUpdateResolution() + { + return 3600000; + } + + public override void Handle() + { + MyPlayerCollection playerCollection = MyAPIGateway.Players as MyPlayerCollection; + + if ( playerCollection == null ) + return; + + int count = 0; + foreach ( var identity in playerCollection.GetAllIdentities( ) ) + { + if ( identity.IsDead ) + { + Essentials.Log.Info( $"Removed dead player: {identity.DisplayName}" ); + count++; + playerCollection.RemoveIdentity( identity.IdentityId ); + } + } + + if ( count != 0 ) + { + Essentials.Log.Info( $"Deleted {count} dead identities." ); + } + + base.Handle(); + } + } +} diff --git a/EssentialsPlugin/ProcessHandlers/ProcessReservedSlots.cs b/EssentialsPlugin/ProcessHandlers/ProcessReservedSlots.cs index dba3835..f379f75 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessReservedSlots.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessReservedSlots.cs @@ -10,6 +10,7 @@ using SEModAPIInternal.API.Common; using SEModAPIInternal.API.Server; using SteamSDK; + using VRage.Game.ModAPI; public class ProcessReservedSlots : ProcessHandlerBase { diff --git a/EssentialsPlugin/ProcessHandlers/ProcessRespawn.cs b/EssentialsPlugin/ProcessHandlers/ProcessRespawn.cs index 47f9247..b3426f8 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessRespawn.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessRespawn.cs @@ -7,6 +7,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Server; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class ProcessRespawn : ProcessHandlerBase diff --git a/EssentialsPlugin/ProcessHandlers/ProcessRestart.cs b/EssentialsPlugin/ProcessHandlers/ProcessRestart.cs index 9ff73fc..70d206d 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessRestart.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessRestart.cs @@ -14,6 +14,7 @@ using SEModAPIExtensions.API; using SEModAPIInternal.API.Common; using SteamSDK; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ProcessHandlers/ProcessSpawnShipTracking.cs b/EssentialsPlugin/ProcessHandlers/ProcessSpawnShipTracking.cs index d033189..cd5e48e 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessSpawnShipTracking.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessSpawnShipTracking.cs @@ -6,6 +6,7 @@ using EssentialsPlugin.Utility; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ProcessHandlers/ProcessSpeed.cs b/EssentialsPlugin/ProcessHandlers/ProcessSpeed.cs index eefc844..ce66e47 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessSpeed.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessSpeed.cs @@ -6,6 +6,7 @@ using Sandbox.ModAPI; using Settings; using Utility; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/ProcessHandlers/ProcessWaypoints.cs b/EssentialsPlugin/ProcessHandlers/ProcessWaypoints.cs index 67dfc90..5491bec 100644 --- a/EssentialsPlugin/ProcessHandlers/ProcessWaypoints.cs +++ b/EssentialsPlugin/ProcessHandlers/ProcessWaypoints.cs @@ -6,6 +6,7 @@ using EssentialsPlugin.Settings; using EssentialsPlugin.Utility; using Sandbox.ModAPI; + using VRage.Game.ModAPI; using VRageMath; public class ProcessWaypoints : ProcessHandlerBase diff --git a/EssentialsPlugin/Utility/CargoShips.cs b/EssentialsPlugin/Utility/CargoShips.cs index ea5aa04..bfe604a 100644 --- a/EssentialsPlugin/Utility/CargoShips.cs +++ b/EssentialsPlugin/Utility/CargoShips.cs @@ -15,6 +15,7 @@ using Sandbox.Engine.Physics; using Sandbox.Game.World; using VRage; + using VRage.Game.ModAPI; using VRage.Library.Collections; public static class CargoShips @@ -294,7 +295,7 @@ public static void SpawnPrefabWithTrajectory( ) }*/ // Deploy ship - +/* MyPrefabManager.Static.SpawnPrefab( resultList: m_tmpGridList, prefabName: shipPrefab.SubtypeId, @@ -309,7 +310,7 @@ public static void SpawnPrefabWithTrajectory( ) ownerId: shipPrefab.ResetOwnership ? spawnGroupId : 0, updateSync: true); - + */ m_tmpGridList.Clear(); } diff --git a/EssentialsPlugin/Utility/CubeGrid.cs b/EssentialsPlugin/Utility/CubeGrid.cs index b8e79c2..c67eeaa 100644 --- a/EssentialsPlugin/Utility/CubeGrid.cs +++ b/EssentialsPlugin/Utility/CubeGrid.cs @@ -20,6 +20,8 @@ using Sandbox.Game.Entities.Cube; using SEModAPIExtensions.API; using VRage.Game; + using VRage.Game.ModAPI; + public enum RemoveGridTypes { All, diff --git a/EssentialsPlugin/Utility/DockingZone.cs b/EssentialsPlugin/Utility/DockingZone.cs index b09164b..585a8a1 100644 --- a/EssentialsPlugin/Utility/DockingZone.cs +++ b/EssentialsPlugin/Utility/DockingZone.cs @@ -8,11 +8,9 @@ using Sandbox.ModAPI; using Sandbox.ModAPI.Ingame; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; - using IMyCubeBlock = Sandbox.ModAPI.IMyCubeBlock; - using IMyCubeGrid = Sandbox.ModAPI.IMyCubeGrid; - using IMySlimBlock = Sandbox.ModAPI.IMySlimBlock; using IMyTerminalBlock = Sandbox.ModAPI.IMyTerminalBlock; public static class DockingZone diff --git a/EssentialsPlugin/Utility/Entity.cs b/EssentialsPlugin/Utility/Entity.cs index 75fd710..96cbb6b 100644 --- a/EssentialsPlugin/Utility/Entity.cs +++ b/EssentialsPlugin/Utility/Entity.cs @@ -10,6 +10,7 @@ using Sandbox.Definitions; using Sandbox.ModAPI; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRageMath; diff --git a/EssentialsPlugin/Utility/Player.cs b/EssentialsPlugin/Utility/Player.cs index d629aa0..1109aae 100644 --- a/EssentialsPlugin/Utility/Player.cs +++ b/EssentialsPlugin/Utility/Player.cs @@ -23,6 +23,7 @@ using VRage; using VRage.FileSystem; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; using VRage.ObjectBuilders; using VRageMath; diff --git a/EssentialsPlugin/Utility/Protection.cs b/EssentialsPlugin/Utility/Protection.cs index e8a966e..644abc8 100644 --- a/EssentialsPlugin/Utility/Protection.cs +++ b/EssentialsPlugin/Utility/Protection.cs @@ -13,6 +13,8 @@ using Sandbox.ModAPI.Interfaces; using SEModAPIInternal.API.Common; using VRage.Game; + using VRage.Game.ModAPI; + using VRage.Game.ModAPI.Interfaces; using VRage.ModAPI; using VRage.ObjectBuilders; using VRage.Utils; @@ -22,7 +24,6 @@ public static class Protection private static bool _init = false; private static DateTime _lastLog; private static SortedList toDamage = new SortedList( ); - private static MyDisconnectHelper disconnect = new MyDisconnectHelper( ); public static void Init( ) { @@ -50,17 +51,6 @@ private static void DamageHandler( object target, ref MyDamageInformation info ) { if ( item.Enabled && item.EntityId == grid.EntityId ) { - //info.Amount = 0; - List armorBlocks = new List( ); - grid.GetBlocks( armorBlocks, x => x.FatBlock == null ); - - float damageConst = info.Amount / armorBlocks.Count; - - foreach ( IMySlimBlock slimBlock in armorBlocks ) - { - //toDamage.Add( slimBlock,damageConst ); - } - info.Amount = 0; if ( DateTime.Now - _lastLog > TimeSpan.FromSeconds( 1 ) ) { @@ -71,20 +61,6 @@ private static void DamageHandler( object target, ref MyDamageInformation info ) } } - - public static void DealDamage( ) - { - if(!toDamage.Any( )) - return; - - Wrapper.GameAction( ( ) => - { - ( (IMyDestroyableObject) toDamage.First( ).Key ).DoDamage( toDamage.First( ).Value, - MyDamageType.Unknown, true ); - } ); - toDamage.RemoveAt(0); - } - } } diff --git a/EssentialsPlugin/Utility/TimedEntityCleanup.cs b/EssentialsPlugin/Utility/TimedEntityCleanup.cs index 3e3a20c..6116e4c 100644 --- a/EssentialsPlugin/Utility/TimedEntityCleanup.cs +++ b/EssentialsPlugin/Utility/TimedEntityCleanup.cs @@ -8,6 +8,7 @@ using Sandbox.ModAPI; using SEModAPIInternal.API.Entity.Sector.SectorObject; using VRage.Game; + using VRage.Game.ModAPI; using VRage.ModAPI; public class TimedEntityCleanupItem diff --git a/EssentialsPlugin/Utility/Waypoints.cs b/EssentialsPlugin/Utility/Waypoints.cs index 43348ec..7be9f0f 100644 --- a/EssentialsPlugin/Utility/Waypoints.cs +++ b/EssentialsPlugin/Utility/Waypoints.cs @@ -9,6 +9,7 @@ using NLog; using Sandbox.ModAPI; using SEModAPIInternal.API.Common; + using VRage.Game.ModAPI; using VRageMath; public class Waypoints