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

Commit 1b2da85

Browse files
committed
Update for 1.126
1 parent e427f54 commit 1b2da85

File tree

63 files changed

+226
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+226
-67
lines changed
0 Bytes
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//268
1+
//281
22
//
33
// This code was generated by a tool. Any changes made manually will be lost
44
// the next time this code is regenerated.
55
//
66

77
using System.Reflection;
88

9-
[assembly: AssemblyFileVersion("1.13.5.268")]
10-
[assembly: AssemblyVersion("1.13.5.268")]
9+
[assembly: AssemblyFileVersion("1.13.5.281")]
10+
[assembly: AssemblyVersion("1.13.5.281")]
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
namespace EssentialsPlugin.ChatHandlers.Admin
2+
{
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using Sandbox.Game.Multiplayer;
6+
using Sandbox.Game.World;
7+
using Sandbox.ModAPI;
8+
using Utility;
9+
public class HandleAdminIdentityCleanup : ChatHandlerBase
10+
{
11+
12+
public override string GetHelp()
13+
{
14+
return "For testing.";
15+
}
16+
17+
public override string GetCommandText()
18+
{
19+
return "/admin identity cleanup";
20+
}
21+
22+
public override Communication.ServerDialogItem GetHelpDialog( )
23+
{
24+
Communication.ServerDialogItem DialogItem = new Communication.ServerDialogItem( );
25+
DialogItem.title = "Help";
26+
DialogItem.header = "";
27+
DialogItem.content = GetHelp( );
28+
DialogItem.buttonText = "close";
29+
return DialogItem;
30+
}
31+
32+
public override bool IsAdminCommand()
33+
{
34+
return true;
35+
}
36+
37+
public override bool AllowedInConsole()
38+
{
39+
return true;
40+
}
41+
42+
public override bool HandleCommand( ulong userId, string[ ] words )
43+
{/*
44+
MyPlayerCollection playerCollection = MyAPIGateway.Players as MyPlayerCollection;
45+
46+
if ( playerCollection == null )
47+
return true;
48+
49+
var identities = playerCollection.GetAllIdentities( ).GroupBy( x => x.DisplayName ).Where( y => y.Count( ) > 1 ).ToList( );
50+
51+
while ( identities.Count > 0 )
52+
{
53+
string compareName = identities[0].Key;
54+
var toDelete = identities.Where(x => x. )
55+
}
56+
57+
int count = identitiesToDelete.Count;
58+
foreach(MyIdentity toDelete in identitiesToDelete)
59+
{
60+
Essentials.Log.Info( $"Deleted dead identity {toDelete.DisplayName}" );
61+
playerCollection.RemoveIdentity( toDelete.IdentityId );
62+
}
63+
64+
if ( count != 0 )
65+
{
66+
Essentials.Log.Info( $"Deleted {count} dead identities." );
67+
}
68+
*/
69+
return true;
70+
}
71+
72+
}
73+
74+
}
75+

EssentialsPlugin/ChatHandlers/Admin/HandleAdminOwnershipChange.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock;
1111
using VRage.ModAPI;
1212
using VRage.Game;
13+
using VRage.Game.ModAPI;
1314

1415
public class HandleAdminOwnershipChange : ChatHandlerBase
1516
{

EssentialsPlugin/ChatHandlers/Admin/HandleAdminStop.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
using VRageMath;
1414
using Sandbox.Game.Entities;
1515
using Sandbox.Game.Entities.Cube;
16+
using VRage.Game.ModAPI;
17+
1618
public class HandleAdminStop : ChatHandlerBase
1719
{
1820
public override string GetHelp( )

EssentialsPlugin/ChatHandlers/Admin/HandleAdminTurrets.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
using EssentialsPlugin.Utility;
66
using Sandbox.Common;
77
using Sandbox.Common.ObjectBuilders;
8+
using Sandbox.Game.Entities;
89
using Sandbox.ModAPI;
910
using Sandbox.ModAPI.Interfaces;
1011
using SEModAPIInternal.API.Common;
1112
using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock;
1213
using VRage.Game;
14+
using VRage.Game.ModAPI;
1315
using VRage.ModAPI;
1416
using VRageMath;
1517

EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminConceal.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using SEModAPIInternal.API.Common;
99
using VRage.ModAPI;
1010
using EntityManagers;
11+
using VRage.Game.ModAPI;
1112

1213
public class HandleAdminConceal : ChatHandlerBase
1314
{

EssentialsPlugin/ChatHandlers/AdminConceal/HandleAdminReveal.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using SEModAPIInternal.API.Common;
1212
using SEModAPIInternal.API.Entity;
1313
using VRage.Game;
14+
using VRage.Game.ModAPI;
1415
using VRage.ModAPI;
1516
using VRage.ObjectBuilders;
1617
using VRageMath;

EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteCleanup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using SEModAPIInternal.API.Common;
99
using SEModAPIInternal.API.Entity.Sector.SectorObject;
1010
using VRage.Game;
11+
using VRage.Game.ModAPI;
1112
using VRage.ModAPI;
1213
using VRage.Game.ObjectBuilders;
1314

EssentialsPlugin/ChatHandlers/AdminDelete/HandleAdminDeleteFloating.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using SEModAPIInternal.API.Entity.Sector.SectorObject;
1212
using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid;
1313
using SEModAPIInternal.API.Entity.Sector.SectorObject.CubeGrid.CubeBlock;
14+
using VRage.Game.ModAPI;
1415
using VRage.ModAPI;
1516
public class HandleAdminDeleteFloating : ChatHandlerBase
1617
{
@@ -58,7 +59,7 @@ public override bool HandleCommand( ulong userId, string[ ] words )
5859
if ( entity == null )
5960
continue;
6061

61-
if ( entity is IMyFloatingObject || entity is MyInventoryBagEntity )
62+
if ( entity is IMyFloatingObject || entity is MyInventoryBagEntity || entity is IMyMeteor )
6263
{
6364
count++;
6465
Wrapper.GameAction(()=>

0 commit comments

Comments
 (0)