Skip to content

Commit

Permalink
Cheating Announcement
Browse files Browse the repository at this point in the history
- Announces when authorized admins have enabled cheats to curb abuse and enhance fairness for all players
- Currently the admin name responsible is not broadcast in chat but it is captured in the logs for review
  • Loading branch information
data-bomb committed Jun 22, 2024
1 parent 31f8bcc commit b32c0f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Si_AdminMod/Console_PlayerCmds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ public static bool Prefix(string __0, bool __1, Player __2)

MelonLogger.Msg("Received remote command string: " + __0 + " from " + __2.PlayerName);

// is an admin trying to enable/disable cheats?
if (String.Equals(__0, "cheats", StringComparison.OrdinalIgnoreCase))
{
if (__2.AdminLevel >= EAdminLevel.STANDARD)
{
HelperMethods.AlertAdminAction(null, (Game.CheatsEnabled ? "disabled cheats" : "ENABLED CHEATS"));
}
}

// are they trying to run a command registered by SAM?
if (IsValidConsoleCommand(__0))
{
Expand Down
2 changes: 1 addition & 1 deletion Si_AdminMod/ModAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License
using SilicaAdminMod;
using System.Drawing;

[assembly: MelonInfo(typeof(SiAdminMod), "Admin Mod", "2.0.785", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(SiAdminMod), "Admin Mod", "2.0.816", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]

// Color.Cyan
Expand Down

0 comments on commit b32c0f6

Please sign in to comment.