Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
86be6f6
Add cleanup filters "nopower" and "haspower". Add option to stop all …
rexxar-tc Jun 4, 2018
8773f93
Ask Jenkins to please build this against the Torch/client-mod branch.…
rexxar-tc Jun 11, 2018
2121aa6
Add !utility listgrids command to show the user all grids they own. C…
rexxar-tc Jun 11, 2018
e177313
Put MOTD in a dialog because that's nicer than chat.
rexxar-tc Jun 11, 2018
aa8322f
Add 'insideplanet' argument to grid cleanup. Finds grids that are mor…
rexxar-tc Jun 11, 2018
b3ed0f9
Add logging to cleanup
rexxar-tc Jun 11, 2018
250a28d
Remove !utlity listrids because !grids list is apparently a thing.
rexxar-tc Jun 11, 2018
661c8e7
Fix #25 !grids static large command not syncing
rexxar-tc Jun 11, 2018
fdb825a
Implement #38 : cleanup voxels with no grids nearby.
rexxar-tc Jun 11, 2018
10d2567
Add separate MOTD for new users.
rexxar-tc Jun 11, 2018
dfbc5dd
Make AutoCommands suck less.
rexxar-tc Jun 14, 2018
73053d2
Add !cleanup help command.
rexxar-tc Jun 16, 2018
2d9b0fe
Un-break cleanup.
rexxar-tc Jun 18, 2018
dd5b48c
Remove global static logger to make Equinox happy
rexxar-tc Jun 18, 2018
f7a9a21
Complete refactor of auto commands! I even tested it this time!
rexxar-tc Jul 3, 2018
5af3086
Fix a typo in autocommand helptext
rexxar-tc Jul 4, 2018
300dfea
!cleanup list now prints to a dialog window.
rexxar-tc Jul 4, 2018
8c05800
Implement info commands
rexxar-tc Jul 6, 2018
770f7d0
Fix crashes in autocommands
rexxar-tc Jul 6, 2018
6928828
client-mod branch deleted, build against master again
rexxar-tc Jul 7, 2018
58122b0
Add !voxels reset planets
rexxar-tc Jul 8, 2018
dcee1aa
Change cleanup conditions to public. Might change behavior??
rexxar-tc Jul 8, 2018
cf47d52
Fix borked cleanup
rexxar-tc Jul 9, 2018
d726efd
Add %player% wildcard to MOTD. Replaces with receiving player's name.
rexxar-tc Jul 9, 2018
085796f
Fix haspower check crashing with a key not present error
rexxar-tc Jul 9, 2018
de1542c
Add DayOfWeek option to auto commands.
rexxar-tc Jul 9, 2018
9921a0e
Don't be stupid and use ViewModels
rexxar-tc Jul 10, 2018
111442e
Default cleanup to not search for grids with pilots.
rexxar-tc Jul 18, 2018
ece8376
Delay sending MOTD until the player spawns with a character.
rexxar-tc Jul 18, 2018
d695c86
Be careful using copy and paste
Jimmacle Jul 19, 2018
9220a94
Fix entity refresh reflection
Jimmacle Jul 19, 2018
0bc78d2
Actually fix entities refresh command
Jimmacle Jul 19, 2018
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change cleanup conditions to public. Might change behavior??
  • Loading branch information
rexxar-tc committed Jul 8, 2018
commit dcee1aa51355af318087a54a8b0ba72e5a828e5c
18 changes: 9 additions & 9 deletions Essentials/Commands/CleanupModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private IEnumerable<MyCubeGrid> ScanConditions(IReadOnlyList<string> args)
}

[Condition("name", helpText: "Finds grids with a matching name. Accepts regex format.")]
private bool NameMatches(MyCubeGrid grid, string str)
public bool NameMatches(MyCubeGrid grid, string str)
{
if (string.IsNullOrEmpty(grid.DisplayName))
return false;
Expand All @@ -180,19 +180,19 @@ private bool NameMatches(MyCubeGrid grid, string str)
}

[Condition("blockslessthan", helpText: "Finds grids with less than the given number of blocks.")]
private bool BlocksLessThan(MyCubeGrid grid, int count)
public bool BlocksLessThan(MyCubeGrid grid, int count)
{
return grid.BlocksCount < count;
}

[Condition("blocksgreaterthan", helpText: "Finds grids with more than the given number of blocks.")]
private bool BlocksGreaterThan(MyCubeGrid grid, int count)
public bool BlocksGreaterThan(MyCubeGrid grid, int count)
{
return grid.BlocksCount > count;
}

[Condition("haspower", "nopower", "Finds grids with, or without power.")]
private bool HasPower(MyCubeGrid grid)
public bool HasPower(MyCubeGrid grid)
{
foreach (var b in grid.GetFatBlocks())
{
Expand All @@ -208,7 +208,7 @@ private bool HasPower(MyCubeGrid grid)
}

[Condition("insideplanet", helpText: "Finds grids that are trapped inside planets.")]
private bool InsidePlanet(MyCubeGrid grid)
public bool InsidePlanet(MyCubeGrid grid)
{
var s = grid.PositionComp.WorldVolume;
var voxels = new List<MyVoxelBase>();
Expand All @@ -232,7 +232,7 @@ private bool InsidePlanet(MyCubeGrid grid)
}

[Condition("playerdistancelessthan", "playerdistancegreaterthan", "Finds grids that are further than the given distance from players.")]
private bool PlayerDistanceLessThan(MyCubeGrid grid, double dist)
public bool PlayerDistanceLessThan(MyCubeGrid grid, double dist)
{
dist *= dist;
foreach (var player in MySession.Static.Players.GetOnlinePlayers())
Expand All @@ -244,7 +244,7 @@ private bool PlayerDistanceLessThan(MyCubeGrid grid, double dist)
}

[Condition("ownedby", helpText: "Finds grids owned by the given player. Can specify player name, IdentityId, 'nobody', or 'pirates'.")]
private bool OwnedBy(MyCubeGrid grid, string str)
public bool OwnedBy(MyCubeGrid grid, string str)
{
long identityId;

Expand All @@ -270,13 +270,13 @@ private bool OwnedBy(MyCubeGrid grid, string str)
}

[Condition("hastype", "notype", "Finds grids containing blocks of the given type.")]
private bool BlockType(MyCubeGrid grid, string str)
public bool BlockType(MyCubeGrid grid, string str)
{
return grid.HasBlockType(str);
}

[Condition("hassubtype", "nosubtype", "Finds grids containing blocks of the given subtype.")]
private bool BlockSubType(MyCubeGrid grid, string str)
public bool BlockSubType(MyCubeGrid grid, string str)
{
return grid.HasBlockSubtype(str);
}
Expand Down