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

Commit

Permalink
Add field to distinguish Essentials builds for dev or stable
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxar-tc committed Jul 28, 2016
1 parent 88d01c3 commit a85be8d
Showing 1 changed file with 55 additions and 8 deletions.
63 changes: 55 additions & 8 deletions EssentialsPlugin/Essentials.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public class Essentials : IPlugin, IChatEventHandler, IPlayerEventHandler, ICube
#endregion

#region Properties

public static bool StableBuild = false;

public static string PluginPath
{
get { return _pluginPath; }
Expand Down Expand Up @@ -648,8 +651,25 @@ public bool DynamicConcealPirates
PluginSettings.Instance.DynamicConcealPirates = value;
}
}


/*
[Category("Dynamic Entity Management")]
[DisplayName("ConcealPhysics")]
[Description("Setting this option will turn off physics on concealed grids.")]
[Browsable(true)]
[ReadOnly(false)]
public bool DynamicConcealPhysics
{
get
{
return PluginSettings.Instance.DynamicConcealPhysics;
}
set
{
PluginSettings.Instance.DynamicConcealPhysics = value;
}
}
*/
[Category( "Dynamic Entity Management" )]
[DisplayName( "Conceal Distance" )]
[Description( "The distance a player must be from a grid for it to be revealed due to distance. The smaller this value is, the longer a grid will be hidden from sight. Default is 8000m (max view distance)" )]
Expand All @@ -672,7 +692,16 @@ public bool DynamicConcealIncludeLargeGrids
set { PluginSettings.Instance.ConcealIncludeLargeGrids = value; }
}


[Category("Dynamic Entity Management")]
[DisplayName("Include Stations")]
[Description("Enable / Disable management of stations, independent of other large block grids.")]
[Browsable(true)]
[ReadOnly(false)]
public bool DynamicConcealIncludeStations
{
get { return PluginSettings.Instance.ConcealIncludeStations; }
set { PluginSettings.Instance.ConcealIncludeStations = value; }
}

[Category( "Dynamic Entity Management" )]
[DisplayName( "Block Subtype Ignore List" )]
Expand All @@ -698,14 +727,14 @@ public bool DynamicConcealIncludeMedBays


[Category("Dynamic Entity Management")]
[DisplayName("Update Speed")]
[Description("")]
[DisplayName("Include Active Production")]
[Description("Ships with active production blocks will be concealed.")]
[Browsable(true)]
[ReadOnly(false)]
public int DynamicConcealUpdateSoeed
public bool DynamicConcealProduction
{
get { return PluginSettings.Instance.DynamicConcealUpdateSpeed; }
set { PluginSettings.Instance.DynamicConcealUpdateSpeed = value; }
get { return PluginSettings.Instance.DynamicConcealProduction; }
set { PluginSettings.Instance.DynamicConcealProduction = value; }
}

[Category( "Dynamic Entity Management" )]
Expand Down Expand Up @@ -1115,6 +1144,23 @@ public float AtmosphericCargoShipSpawnTime {
PluginSettings.Instance.AtmosphericCargoShipSpawnTime = value;
}
}

[Category("Programmable Block Blacklist")]
[Description("Types and members in this list will be unavailable to all programmable blocks. Ask on the KSH forum if you're unsure how to use this!!")]
[Browsable(true)]
[ReadOnly(false)]
public MTObservableCollection<BlacklistItem> BlacklistItems
{
get
{
return PluginSettings.Instance.BlacklistItems;
}
set
{
PluginSettings.Instance.BlacklistItems = value;
}
}

/*
[Category("Game Modes")]
[Description("Conquest Game Mode - This mode tracks asteroid owners by counting owned blocks near an asteroid to determine the owner. Includes a leaderboard")]
Expand Down Expand Up @@ -1285,12 +1331,13 @@ private void DoInit( string path )
MyAPIGateway.Entities.OnEntityAdd += OnEntityAdd;
MyAPIGateway.Entities.OnEntityRemove += OnEntityRemove;

Protection.Init( );
Protection.Instance.Init( );
ProcessReservedSlots.Init( );
PlayerBlockEnforcement.Init();

MyAPIGateway.Multiplayer.RegisterMessageHandler(9005, Communication.ReceiveMessageParts);
MyAPIGateway.Multiplayer.RegisterMessageHandler( 9007, Communication.HandleAddConcealExempt );
BlacklistManager.Instance.UpdateBlacklist();
Log.Info( "Plugin '{0}' initialized. (Version: {1} ID: {2})", Name, Version, Id );
}

Expand Down

0 comments on commit a85be8d

Please sign in to comment.