- Works With
This plugin controls how long it takes to hack locked crates on your server. Different hack times can be assigned to different players through permissions, allowing VIP players to hack faster than regular players. When teammates stand nearby during a hack, the timer automatically decreases to reward coordinated play. Players also receive progress notifications throughout the hack so they always know how much time is left.
Permissions
customhackduration.vip-- Applies the VIP hack duration tier (default: 300-450 seconds)customhackduration.elite-- Applies the Elite hack duration tier (default: 60-120 seconds)
Permission Based Hack Durations are registered automatically on plugin load. When a player holds multiple tier permissions, the one with the lowest Priority number wins.Configuration
JSON:
{
"Version": "1.0.0",
"Default Hack Duration For Players Without Permissions": {
"Minimum Hack Duration In Seconds": 900,
"Maximum Hack Duration In Seconds": 900
},
"Teammate Proximity Bonus": {
"Enabled": true,
"Use Clans Plugin For Teammate Detection": false,
"Teammate Detection Radius": 10,
"Seconds Reduced Per Nearby Teammate": 30,
"Maximum Total Seconds That Can Be Reduced": 120
},
"Hack Progress Notifications": {
"Enabled": true,
"Display As Game Tip Toast Instead Of Chat Message": true,
"Notify At These Percent Remaining Intervals": [75, 50, 25, 10]
},
"Permission Based Hack Durations": [
{
"Permission": "customhackduration.vip",
"Priority (Lower Number = Higher Priority)": 1,
"Minimum Hack Duration In Seconds": 300,
"Maximum Hack Duration In Seconds": 450
},
{
"Permission": "customhackduration.elite",
"Priority (Lower Number = Higher Priority)": 2,
"Minimum Hack Duration In Seconds": 60,
"Maximum Hack Duration In Seconds": 120
}
]
}
Default Hack Duration For Players Without Permissions
Applied to any player who does not match a permission tier.Minimum Hack Duration In Seconds-- Shortest possible hack time. Set equal toMaximum Hack Duration In Secondsfor a fixed, non-random durationMaximum Hack Duration In Seconds-- Longest possible hack time. When different from the minimum, each hack rolls a random value within the range
Teammate Proximity Bonus
Reduces the effective hack duration based on how many teammates are standing near the hacking player at the moment hacking begins.Enabled-- Toggles the entire proximity bonus systemUse Clans Plugin For Teammate Detection-- Whentrue, players in the same clan (via Clans) count as teammates in addition to native Rust team members. Requires the Clans plugin to be loadedTeammate Detection Radius-- Radius in meters to scan for nearby teammatesSeconds Reduced Per Nearby Teammate-- Flat seconds subtracted from the hack duration for each qualifying nearby teammateMaximum Total Seconds That Can Be Reduced-- Cap on the total time reduction regardless of how many teammates are nearby
1 second and will never go below that.Hack Progress Notifications
Sends the hacking player a notification at configurable milestones during the hack.Enabled-- Toggles progress notifications entirelyDisplay As Game Tip Toast Instead Of Chat Message-- Whentrue, notifications appear as the in-game HUD toast; whenfalse, they are sent as chat messagesNotify At These Percent Remaining Intervals-- List of thresholds (as percent of hack time remaining) that trigger a notification. For example,25fires when 25% of the duration is left
Permission Based Hack Durations
An array of permission tiers. Each tier defines its own duration range and priority.Permission-- The Oxide permission string. Registered automatically on plugin loadPriority-- When a player matches multiple tiers, the one with the lowest priority number is appliedMinimum Hack Duration In Seconds-- Shortest possible hack time for this tierMaximum Hack Duration In Seconds-- Longest possible hack time for this tier. Set equal to the minimum for a fixed duration
Localization
JSON:
{
"Hack.Started": "Hacking started! Estimated time: {0}",
"Hack.Progress": "Hacking... {0}/100 complete - {1} left",
"Hack.Complete": "Hack complete!",
"Hack.TeamBonus": "Team bonus: -{0}s ({1} teammates nearby)"
}