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

1492 Commits

Author SHA1 Message Date
RaidMax
3e186ca07a
Add ResolvedExternalIPAddress to API and Master Communication (#365)
* Feature: Add ResolvedExternalIPAddress to API and Master Communication

This commit introduces the `ResolvedExternalIPAddress` property to enhance IP address reporting.

1.  **Server API (`WebfrontCore/Controllers/API/Server.cs`):**
    The `ResolvedExternalIPAddress` property has been added to the JSON
    responses for the `/api/server` endpoints. This property is nullable
    and contains the IPv4 string value of the manager's external IP address
    if the server's resolved IP endpoint is an internal address. Otherwise,
    it is null.

2.  **Master Server Communication (`MasterCommunication.cs` and `ApiServer.cs`):**
    - The `ApiServer` DTO (in `Application/API/Master/ApiServer.cs`) now
      includes the `ResolvedExternalIPAddress` property (serialized as
      `resolved_external_ip_address`).
    - The `UploadStatus` method in `Application/Misc/MasterCommunication.cs`
      now populates this property for each server being reported to the
      master server, using the same logic (external IP if server's own
      resolved IP is internal).

This provides more comprehensive IP address information both through the
web API and to the master server.

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025.5.24.1-prerelease
2025-05-24 15:36:24 -05:00
HGM
604aba628d Added maps for H2M Nightshade DLC
Updated to add new H2M MW3 Nightshade DLC Maps
2025-05-11 19:15:59 -05:00
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
m
081c522b96
add iw7-mod RCON support (#361)
* create iw7-mod parser

* iw7 default settings & enum stuff

* add zm maps to defaultsettings
2025-04-14 21:34:22 -05:00
Diamante
413570d0d4
chore: fix T5 parser for the upcoming update (#358)
* chore: fix T5 parser for the upcoming update

* chore: add credits

* chore: fix credits for consistency elsewhere...

Since I'm already here

* fix credits here

* andn here
2025.3.22.2-prerelease
2025-03-22 09:30:23 -05:00
RaidMax
1da28803da
fix missing server unreachable overlay in server overview 2025.2.28.2-prerelease 2025-02-27 21:51:37 -06:00
RaidMax
d025d5c9c3
fix t5zm game interface XuidWrapper 2025-02-27 21:05:51 -06:00
RaidMax
5d5ba045c9
add missing integrations path to build ci 2024.11.29.1-prerelease 2024-11-28 21:04:51 -06:00
RaidMax
edd81d903b
add T6 to list of games requiring delay before reading rcon response 2024-11-28 20:53:21 -06:00
Ayymoss
6875d864d6 Prevents Stats from loading twice 2024.11.28.1-prerelease 2024-11-27 14:06:24 -06:00
RaidMax
807ea9bc3e
Update Pluto T6 parser 2024.11.27.2-prerelease 2024-11-26 23:05:23 -06:00
dependabot[bot]
ef0534c2d3 Bump Refit from 7.1.0 to 8.0.0 in /Application
Bumps [Refit](https://github.com/reactiveui/refit) from 7.1.0 to 8.0.0.
- [Release notes](https://github.com/reactiveui/refit/releases)
- [Commits](https://github.com/reactiveui/refit/compare/7.1.0...8.0.0)

---
updated-dependencies:
- dependency-name: Refit
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-04 19:35:18 -06:00
HGM
c1544b712a Added Missing Gamemodes & Maps for S1-Mod & IW6-Mod
Added missing zombie gamemodes to S1-Mod & IW6-Mod & Added missing maps for S1-Mod Zombies.
2024-09-29 10:37:33 -05:00
Ayymoss
2d7819c731 Remove unnecessary imports 2024-09-06 19:20:30 -05:00
Ayymoss
3f8b2fac9e Add GameName to ClientInfoResult and ClientController
Updated `ClientInfoResult` to include a new `GameName` property. Also modified `ClientController` to handle and display this new property properly.
2024-09-06 19:20:30 -05:00
Ayymoss
5c9cfbd2c2 Add /api/client/{clientId} Endpoint
This endpoint returns general information about the client ID provided.
2024-09-06 19:20:30 -05:00
Ayymoss
0a8bbf2997 Add instance uptime to API info response
This update includes the instance uptime in the API info response.
2024-09-06 19:19:40 -05:00
Ayymoss
a1a69242f7 Fix conditional logic for parsing ignored events
The conditional statement in the event parsing logic was incorrect, causing all events to be parsed regardless of the ignore flag. This change corrects the logic to ensure that only non-ignored events are parsed.
2024-09-06 19:18:40 -05:00
RaidMax
e956ab4d1a
support hot reload of plugin code in debug configuration 2024-08-27 10:10:58 -05:00
Amos
ac9c26817d
Remove debug-only Razor runtime compilation setup (#340)
Resolves issues with new environment deployment for runtime namespace resolution failure.
2024-08-19 23:28:21 +01:00
Amos
f4876bf910
Check before installing Excubo.WebCompiler (#341)
Checks if it's installed and its version before trying to install/update it. Current behaviour reinstalls the tool on each rebuild. Reduces build time from 53s to 17s in testing.
2024-08-19 00:43:45 +01:00
Ayymoss
2f03d4dc82 Include H2M Game enum for Data 2024.8.16.1-prerelease 2024-08-16 08:52:46 -05:00
Liam
88d05f5a8a
H2M-Mod Support (#337)
* feat: add h2m support

* fix: remove unneeded comma
2024-08-12 20:05:25 -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
RaidMax
83f80b4fd2
fix persistent id parsing for low bits with leading 0s 2024-08-02 13:54:27 -05:00
Amos
27a9a2eebf
Using Humaniser instead of fixed string... (#335)
Update tooltip text generation in MetaRegistration

The tooltip text generation in MetaRegistration.cs is updated to use Humanizer's 'HumanizeForCurrentCulture' method with 'TimeUnit.Hour' as maxUnit. This change leverages the Humanizer library to provide more precise and localized time formatting.
2024-07-24 18:52:02 +01:00
Amos
5dca8717b9
Using IRemoteCommandService to handle redirect for Command Execution via API (#333) 2024-07-23 00:38:55 +01:00
Amos
b1810b0517
Add a tooltip for client profile total playtime for hours (#334) 2024-07-23 00:38:43 +01:00
Amos
bc3bd5b0f2
Using TellAsync instead of Tell to prevent Event flooding. (#332) 2024-07-22 20:43:54 +01:00
RaidMax
95523885b8
support for loading minimum permission level from config for script commands 2024-07-14 11:21:47 -05:00
RaidMax
a34ac7d224 prevent auto parsing of base gamescript and anticheat events to mitigate unneeded processing time 2024.7.13.1-prerelease 2024-07-12 22:19:42 -05:00
RaidMax
135fc98e1c use correct EFClient return time for ScriptPluginExtensions and provide IPAddress on game interface data 2024-07-12 22:08:23 -05: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
RaidMax
78c5b43ed4 fix issue with game interface and increase debug logging 2024.7.6.1-prerelease 2024-07-06 15:16:50 -05:00
Amos
d6112840e6 Revert commented out Utilities CancellationToken timeout for debug environments. 2024-07-05 23:10:21 +01:00
RaidMax
16c0ba7c20
Update .NET download in README.md 2024-07-04 15:02:16 -05:00
RaidMax
6a2ac5ad82 update T7 retail parser version to prevent conflict with boiii parser 2024.7.4.1-prerelease 2024-07-04 11:02:04 -05:00
RaidMax
cc8a6df463 remove md5 check for windows update script as content-md5 header no longer appears to be transmitted 2024-07-04 11:02:04 -05:00
RaidMax
f4946a9e76 tweak team regex for kill/damage 2024-07-04 11:02:04 -05:00
RaidMax
3857c48bd2 update for BOIII parsing 2024-07-04 11:02:04 -05:00
RaidMax
eac9b8f150 remove some build warnings 2024-07-04 11:02:04 -05:00
RaidMax
24276d8057 use wget instead of curl for geolocation download 2024-07-04 11:02:04 -05:00
RaidMax
19e5e06d5d remove unneeded xml documentation file in build 2024-07-04 11:02:04 -05:00
RaidMax
b911a67287 add automatic download of newest geolocation database to build action 2024-07-04 11:02:04 -05:00
RaidMax
5c3b792f17 update nuget revision generation 2024-07-04 11:02:04 -05:00
RaidMax
2674245910 copy missing update scripts in build action 2024-07-04 11:02:04 -05:00
RaidMax
54abc45d28 trigger workflow 2024-06-30 21:19:39 -05:00
RaidMax
4996220222 fix artifact path 2024-06-30 21:15:15 -05:00
RaidMax
f14479d317 Merge branch 'develop' into release/pre 2024-06-30 21:10:29 -05:00