1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 13:48:00 -05:00

160 Commits

Author SHA1 Message Date
Amos
072e6da4d1
Utilise Minutes in TempBan for under 1 hour bans. (#362)
* Update tempban command to use minutes instead of hours

The duration calculation for tempbans now uses minutes rather than hours for greater precision. This change ensures better alignment with user expectations and configurations in smaller timeframes.

* Update regex patterns to enforce stricter input validation

Adjusted regex in `ParseTimespan` and `TempBanCommand` to ensure input starts with 1-5 numeric characters, improving validation. This prevents malformed user inputs and enhances overall command reliability.

* \w includes digits. Who knew.
2025-05-11 19:13:41 -05:00
Amos
4d1e7c2692
Refactor PromptClientInput to accept string array for prompt (#336)
* Refactor PromptClientInput to accept string array for prompt

Updated the `PromptClientInput` method to accept a string array instead of a single string. This change ensures that multiple prompts can be handled, improving input flexibility and client communication. Additionally, modified related method calls to maintain consistency with the new input type.

* Refactor PromptClientInput to support parsed result and errors

Updated PromptClientInput to handle parsed input results and return error messages instead of raw strings. Introduced ParsedInputResult<TResult> class to encapsulate parsing results and errors, enhancing client validation and feedback mechanism.
2024-08-05 16:09:50 +01:00
Amos
ee0b40d657
Improve cancellation token handling in Utilities.cs (#331)
A using statement was added to ensure proper disposal of the CancellationTokenSource. Additional error handling was also included to catch an OperationCanceledException and prevent it from causing unintended side effects. The client response is now properly disposed in the finally block.
2024-07-06 19:30:40 -05:00
Amos
036a467bd0 Add PromptClientInput method in Utilities.cs
A new utility method named 'PromptClientInput' has been added in the Utilities.cs file. This method accepts client, prompt, and validator as inputs and allows taking action based on client responses. Included subscription and unsubscription to the 'ClientMessaged' game event, and handling of cancellation token to control the execution flow.
2024-07-06 16:47:55 -05:00
Amos
d6112840e6 Revert commented out Utilities CancellationToken timeout for debug environments. 2024-07-05 23:10:21 +01:00
RaidMax
aa83d88c77 Add command execution backoff/timeout 2024-02-24 18:07:34 -06:00
RaidMax
b286548906 Add server status received event including raw response 2024-02-17 15:33:15 -06:00
RaidMax
a2e5e94b02 fix some issues with chat search feature 2023-08-27 12:28:35 -05:00
RaidMax
122d2e5708 fix color code matching regex 2023-06-24 20:08:40 -05:00
RaidMax
e463e9c5fe add command to set log level and develop mode dynamically 2023-05-28 11:38:57 -05:00
RaidMax
f7d005ccd1 update/rename notifyafterdelay to ExecuteAfterDelay 2023-04-09 14:07:50 -05:00
RaidMax
287ac9cf16 Add NotifyAfterDelay helper method 2023-04-05 22:26:42 -05:00
RaidMax
ebe69a94ad implement new eventing system 2023-04-05 09:54:57 -05:00
RaidMax
53a6ef2ec3 update references from IP to ListenAddress 2023-04-04 22:21:18 -05:00
RaidMax
4c51d86fae add "advanced" search functionality 2023-01-23 16:38:16 -06:00
RaidMax
7b2cd19fc1 harden up the script timer/game interface dvar operations for multithreading 2022-10-23 14:03:33 -05:00
RaidMax
f01f9d3292 fix rcon issue on restart 2022-07-09 20:57:00 -05:00
RaidMax
cddc9297c2 cleanup table display of admins on mobile display 2022-07-09 13:54:35 -05:00
RaidMax
1fc418c792 more localization tweaks 2022-07-08 20:40:27 -05:00
RaidMax
490f37b990 add option to normalize diacritics for rcon parsers (applied to T6) 2022-07-06 15:42:31 -05:00
RaidMax
16d295024e update schema to support unique guid + game combinations 2022-06-15 19:37:34 -05:00
RaidMax
6b243cfa1d fix issue with meta event context after 1st page load 2022-06-05 16:35:39 -05:00
RaidMax
ae05bc4009 add ban management page 2022-06-05 16:27:56 -05:00
RaidMax
4181bf1da7 fix intermittent issue with game interface during connection loss with servers 2022-06-01 11:25:11 -05:00
RaidMax
ced4410d7b fix suffixing commands with color code 2022-04-28 17:22:15 -05:00
RaidMax
d5b4c60e5a huge commit for webfront facelift 2022-04-19 18:43:58 -05:00
RaidMax
bd852b295b strip color keys from webfront form lists 2022-04-08 17:14:04 -05:00
RaidMax
91a05348f0 initial permissions based webfront access implementation 2022-04-04 22:16:40 -05:00
RaidMax
932bc77798 add tell async and update SharedLibraryCore version 2022-03-23 11:38:09 -05:00
RaidMax
28f7e1652d add back helper methods without cancellation token for plugins 2022-03-02 08:29:15 -06:00
RaidMax
57558f6223 add cancellation token for rcon connection to allow more granular control 2022-02-28 20:44:30 -06:00
RaidMax
96b53ada1b game interface improvements 2022-02-13 21:38:40 -06:00
RaidMax
f783903f8f tech debt 2022-01-27 21:18:35 -06:00
RaidMax
6f6dd035ee Initial .net 6 upgrades 2022-01-26 15:26:25 -06:00
RaidMax
4ae3ee1683 abstract engine color codes to use (Color::<Color>) format to make codes more.
see pt6 parser and configs for example usages
2022-01-26 15:20:10 -06:00
RaidMax
0a95e725f4 add default port and rcon password hint during setup 2022-01-26 15:20:10 -06:00
RaidMax
68d4cc5bfd add check to determine whether to include color codes when checking name length 2021-09-18 18:10:47 -05:00
RaidMax
b63803885b add offline messaging feature 2021-07-08 21:12:09 -05:00
RaidMax
9645db4760 actually fix steam id parsing 2021-07-01 10:14:58 -05:00
RaidMax
305c3ebb93 parse steam id properly for source games 2021-07-01 09:10:56 -05:00
RaidMax
bf4234b2c6 Additional CSGO compatibility improvements 2021-06-16 08:53:50 -05:00
RaidMax
7e01dc3fc2 add initial CS:GO support 2021-06-03 10:51:03 -05:00
xerxes-at
ee4d8ed846
Added WaW bot guid (#200)
may be PlutoniumT4 only.
2021-04-16 13:48:52 -05:00
RaidMax
434392a7e4 huge commit for advanced stats feature.
broke data out into its own library.
may be breaking changes with existing plugins
2021-03-22 11:09:25 -05:00
RaidMax
267b045883 modify rule shortcut to just have 1 list 2021-02-27 09:40:25 -06:00
RaidMax
92e7a8bd2b implement custom tag (descriptor) feature
allow override of level names through configuration
few small fixes/improvements
2021-01-24 11:47:19 -06:00
RaidMax
95643f6a2d add preset rules, configurable time spans, and separate rule shortcut for issue #180 2020-12-31 18:48:58 -06:00
RaidMax
c53895ca11 resolve bot guid issue with T5
remove unneeded check for CNCT state
2020-12-14 21:10:50 -06:00
RaidMax
5a81d5b214 add official T4/WaW support for issue #178
CoD4x parser tweak to parse full guid as decimal
2020-12-13 20:33:37 -06:00
RaidMax
e0ef55a636 update for database provider specific migrations
fix issues with live radar
2020-11-27 21:52:52 -06:00