Bug Report + Feature Suggestion, Anti Offline Raid v1.0.4

Thank you for maintaining this plugin, it's been very useful.

Bug: Typing /ao without arguments in chat throws a server error:
Index was outside the bounds of the array.
at CheckOfflineStatus(BasePlayer player, string command, string[] args) line 374

The console ao command handles empty args correctly, the chat command just needs the same null/length check before accessing args[0].

Feature suggestion: A MinutesOnlineToQualify option, similar to what some other offline protection plugins offer. The idea: a player must be online for at least X minutes (e.g. 120) before their base becomes eligible for protection. This prevents a common abuse pattern on high-rate servers where a player logs in briefly, then disconnects to hide behind protection without actually playing. Completely optional to implement, just a thought!

Thanks again.

Chat command fixed adding this above SendReply:

if (args.Length < 1)
{
	SendReply(player, "Invalid Syntax. ao <PlayerName>");
	return;
}
​

"must be online for at least X minutes" Total for the wipe? Or each time they login, they have to be online for that amount of time for the timer to reset?

I made a patch with many bug fixes and new implementations, let's hope the author will publish it

Things fixed and added in the new version:

Updated for current Rust/Oxide APIs
Reworked land protection around TC authorization; bases now use the most recently online eligible authorized player for one consistent protection tier
Added lock/entity-owner fallback when TC authorization is empty
Added Tugboat and player-built boat support using VehiclePrivilege authorization and ownership fallback
Added Rust Team, native Rust Clan and external Clans sharing support
Added configurable group-size protection scaling
Made recent-attack protection delay scope-specific per TC/VehiclePrivilege/entity
Added SimpleStatus + ImageLibrary integration with authorized/unauthorized states and entity-look fallback
Fixed loot activity hooks and looter/target handling
Added config migration/validation, wipe-safe scope cleanup and runtime hardening
Improved localization and HelpText integration
Fixed /ao command
General cleanup, compatibility fixes and dead-code removal

This is the latest updated version of the plugin:

https://pastebin.com/kPBaWHxM

 

Updated for current Rust/Oxide APIs
Reworked TC and ownership-based offline protection
Added Tugboat and player-built boat support
Added team/clan sharing and group-size protection scaling
Added configurable AFK-as-offline behavior
Added SimpleStatus + ImageLibrary integration
Improved LastOnline tracking, raid-delay scoping and wipe handling
Fixed loot activity hooks and `/ao`
Improved config migration, localization and HelpText integration
General cleanup, compatibility fixes and dead-code removal