Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Update for 1.126
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxar-tc committed Mar 17, 2016
1 parent e427f54 commit 1b2da85
Show file tree
Hide file tree
Showing 63 changed files with 226 additions and 67 deletions.
Binary file modified .vs/EssentialsPlugin/EssentialsPlugin.scgdat
Binary file not shown.
6 changes: 3 additions & 3 deletions EssentialsPlugin/AssemblyFileVersion.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//268
//281
//
// This code was generated by a tool. Any changes made manually will be lost
// the next time this code is regenerated.
//

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")]
75 changes: 75 additions & 0 deletions EssentialsPlugin/ChatHandlers/Admin/HandleAdminIdentityCleanup.cs
Original file line number Diff line number Diff line change
@@ -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;
}

}

}

Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions EssentialsPlugin/ChatHandlers/Admin/HandleAdminStop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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( )
Expand Down
2 changes: 2 additions & 0 deletions EssentialsPlugin/ChatHandlers/Admin/HandleAdminTurrets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using SEModAPIInternal.API.Common;
using VRage.ModAPI;
using EntityManagers;
using VRage.Game.ModAPI;

public class HandleAdminConceal : ChatHandlerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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(()=>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using SEModAPIInternal.API.Entity.Sector.SectorObject;
using VRage;
using VRage.Game;
using VRage.Game.ModAPI;
using VRage.ModAPI;
using VRageMath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using SEModAPIInternal.API.Entity.Sector.SectorObject;
using VRage;
using VRage.Game;
using VRage.Game.ModAPI;
using VRage.ModAPI;
using VRageMath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Sandbox.Common.ObjectBuilders;
using Sandbox.ModAPI;
using VRage.Game;
using VRage.Game.ModAPI;
using VRage.ModAPI;
using VRageMath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Sandbox.Common.ObjectBuilders;
using Sandbox.ModAPI;
using VRage.Game;
using VRage.Game.ModAPI;
using VRage.ModAPI;
using VRageMath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions EssentialsPlugin/ChatHandlers/Dock/HandleAdminUndockAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions EssentialsPlugin/ChatHandlers/Dock/HandleDockDock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion EssentialsPlugin/ChatHandlers/Dock/HandleDockList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
1 change: 1 addition & 0 deletions EssentialsPlugin/ChatHandlers/Dock/HandleDockUndock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion EssentialsPlugin/ChatHandlers/Dock/HandleDockValidate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 2 additions & 1 deletion EssentialsPlugin/ChatHandlers/HandleMotd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions EssentialsPlugin/ChatHandlers/HandlePos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Linq;
using EssentialsPlugin.Utility;
using Sandbox.ModAPI;
using VRage.Game.ModAPI;
using VRageMath;

public class HandlePos : ChatHandlerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Linq;
using EssentialsPlugin.Utility;
using Sandbox.ModAPI;
using VRage.Game.ModAPI;
using VRage.ModAPI;

public class HandleUtilityGridsCompare : ChatHandlerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using VRageMath;
using Sandbox.Game;
using VRage.Game;
using VRage.Game.ModAPI;

public class HandleUtilityGridsList : ChatHandlerBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using EssentialsPlugin.Utility;
using Sandbox.ModAPI;
using SEModAPIInternal.API.Common;
using VRage.Game.ModAPI;
using VRage.ModAPI;
using VRageMath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Loading

0 comments on commit 1b2da85

Please sign in to comment.