This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New Event, Fix RoleDamages - Added event for intercom cooldown check so players can interrupt the cooldown if whitelisted - Tried fixing the RoleDamages config (Untested) * Update README.md * Sync with desktop PC * 1.3.2 Test Build - Changed the intercom system - More dict cheks - Removed duplicate commands - Intercom blacklist * TempFix * Update README.md * Update README.md * Update README.md * Update RESOURCES.md * Update README.md Fixed bad stuff * Fixing alot of stuff - ATColor command + config - ATDisable command - InstantKill command - Removed depricated FullAccess command - Fixed RoleDamages config, closes #34 - Fixed Teamkilling not showing properly - Fixed warpVectors not clearing on round restart - Removed code leading to intercom locking, closing #35 - General code cleaning * Possible logfile fix * Brand new logfile stuff + more - 3 different logfile configs - Working steamID blacklist for intercom - Brand new logging system, closes #5 - Rounds Played stat for each player - Properly fixed `admintoolbox_block_role_damage` config - Fixed bug related to plugin.Warn * Test 1.3.2 for 3.1.8 - Temp removing intercom whitelist - adding `admintoolbox_round_damageMultiplier` - changing both multipliers to float * Create version (#37) * fix version file (#38) * Create version * Rename version to version.md * Delete version * Typo fix in Query log * Update README.md * Update README.md * Update version.md
- Loading branch information
Showing
31 changed files
with
612 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,3 +328,5 @@ Assembly-CSharp.dll | |
sourcecode.zip | ||
Builds/ | ||
obj/ | ||
AdminToolbox/Checklist.txt | ||
AdminToolbox/Checklist.txt |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using Smod2.Commands; | ||
using Smod2; | ||
using Smod2.API; | ||
|
||
namespace AdminToolbox.Command | ||
{ | ||
class ATColorCommand : ICommandHandler | ||
{ | ||
private AdminToolbox plugin; | ||
|
||
public ATColorCommand(AdminToolbox plugin) | ||
{ | ||
this.plugin = plugin; | ||
} | ||
|
||
public string GetCommandDescription() | ||
{ | ||
return "Enables/Disables color for Admintoolbox in the server window"; | ||
} | ||
|
||
public string GetUsage() | ||
{ | ||
return "ATCOLOR (bool)"; | ||
} | ||
|
||
public string[] OnCall(ICommandSender sender, string[] args) | ||
{ | ||
Server server = PluginManager.Manager.Server; | ||
if (args.Length >= 1) | ||
{ | ||
if (bool.TryParse(args[0], out bool x)) | ||
{ | ||
AdminToolbox.isColored = x; | ||
AdminToolbox.isColoredCommand = true; | ||
if (AdminToolbox.isColored) | ||
plugin.Info("@#fg=Yellow;AdminToolbox@#fg=Default; colors is set to @#fg=Green;" + AdminToolbox.isColored + "@#fg=Default;"); | ||
else | ||
plugin.Info("AdminToolbox colors set to" + AdminToolbox.isColored); | ||
return new string[] { "AdminToolbox colors set to" + AdminToolbox.isColored }; | ||
} | ||
else | ||
return new string[] { "\"ATCOLOR "+ args[0] +"\" is not a valid bool" }; | ||
} | ||
else if (args.Length == 0) | ||
{ | ||
AdminToolbox.isColored = !AdminToolbox.isColored; | ||
AdminToolbox.isColoredCommand = true; | ||
if (AdminToolbox.isColored) | ||
plugin.Info("@#fg=Yellow;AdminToolbox@#fg=Default; colors is set to @#fg=Green;"+AdminToolbox.isColored+"@#fg=Default;"); | ||
else | ||
plugin.Info("AdminToolbox colors set to "+AdminToolbox.isColored); | ||
return new string[] { "AdminToolbox colors set to " + AdminToolbox.isColored }; | ||
} | ||
else | ||
return new string[] { GetUsage() }; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Smod2.Commands; | ||
using Smod2; | ||
using Smod2.API; | ||
using System.IO; | ||
|
||
namespace AdminToolbox.Command | ||
{ | ||
class ATDisableCommand : ICommandHandler | ||
{ | ||
private AdminToolbox plugin; | ||
|
||
public ATDisableCommand(AdminToolbox plugin) | ||
{ | ||
this.plugin = plugin; | ||
} | ||
|
||
public string GetCommandDescription() | ||
{ | ||
return "Disables Admintoolbox"; | ||
} | ||
|
||
public string GetUsage() | ||
{ | ||
return "ATDISABLE"; | ||
} | ||
|
||
public string[] OnCall(ICommandSender sender, string[] args) | ||
{ | ||
plugin.Info(sender + " ran the " + GetUsage() + " command!"); | ||
this.plugin.pluginManager.DisablePlugin(this.plugin); | ||
return new string[] { "AdminToolbox Disabled" }; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.