Admin Battery Charge

EXCLUSIVE RUST PLUGIN Admin Battery Charge 1.6.0

Upgrade or register to download

Admin Battery Charge v1.6.0​

New Features​

Charging Box Support​

Added support for automatically charging rechargeable battery items when they are placed inside approved skinned storage boxes.
Default supported charging box skin:
  • 3733398168
Additional skin IDs can be added through the configuration file.

Supported Battery Types​

  • Small Rechargeable Battery
  • Medium Rechargeable Battery
  • Large Rechargeable Battery

Automatic Battery Charging​

When a rechargeable battery item is placed inside a supported charging box:
  1. The plugin detects the storage box skin.
  2. The plugin verifies the item is a rechargeable battery.
  3. The battery charge is automatically restored to full capacity.
  4. The updated charge value is immediately saved and synchronized.

Charge Values​

Rust stores rechargeable battery item charge internally using stored values rather than the values shown in the UI.
Default stored values:
Battery TypeVisible CapacityStored Value
Small Battery400 rWm24,000
Medium Battery9,000 rWm540,000
Large Battery24,000 rWm1,440,000
Formula:
Stored Value = Visible rWm × 60
Example:
400 rWm × 60 = 24,000

Existing Features​

Command Recharge​

Players with permission:
adminbatterycharge.use
can fully recharge deployed batteries using:
/chargebattery

Hammer Recharge​

Players with permission:
adminbatterycharge.hammer
can instantly recharge deployed batteries by hitting them with a hammer.

Configuration Improvements​

Added documentation directly into the configuration file explaining how rechargeable battery charge values are stored internally by Rust.
Example:
"Battery Item Full Charge Amounts - Stored Value Note": "These values are Rust stored charge values. Formula: visible rWm value x 60."

Debug Logging​

Optional console logging is available to assist with troubleshooting.
When enabled, the plugin reports:
  • Charging box detection
  • Battery type detection
  • Applied charge values
  • Internal stored charge values

Fixed​

  • Fixed rechargeable battery items not charging correctly inside charging boxes.
  • Fixed incorrect charge conversion resulting in batteries displaying only partial charge.
  • Fixed old test values interfering with battery charge calculations.
  • Improved storage container synchronization after charge updates.
  • Improved item update handling to ensure charge values persist correctly.

Permissions​

adminbatterycharge.use
Allows use of:
/chargebattery
adminbatterycharge.hammer
Allows charging deployed batteries by hitting them with a hammer.

Admin Battery Charge v1.3.0​

New Features​

Battery Charging Storage Box​

Added support for automatically charging rechargeable battery items when they are placed inside specially skinned storage containers.

Supported Battery Types​

  • Small Rechargeable Battery
  • Medium Rechargeable Battery
  • Large Rechargeable Battery

Supported Charging Box Skins​

The plugin now checks the skin ID of the storage container and will only charge batteries placed inside approved charging boxes.
Default supported skin:
  • 3733398168
Additional skin IDs can be added through the configuration file.

Automatic Charging​

When a rechargeable battery item is moved into a supported charging box:
  • The plugin detects the battery item.
  • The plugin verifies the box skin ID.
  • The battery charge value is set to its configured maximum capacity.
  • The item is updated immediately.
Configured capacities:
Battery TypeCharge Amount
Small Rechargeable Battery400
Medium Rechargeable Battery9000
Large Rechargeable Battery24000

Existing Features​

Command Recharge​

Players with permission:
adminbatterycharge.use
can recharge deployed batteries by looking at them and using:
/chargebattery

Hammer Recharge​

Players with permission:
adminbatterycharge.hammer
can instantly recharge deployed batteries by hitting them with a hammer.

Debug Logging​

Optional debug messages can be enabled through the configuration file.
When enabled the plugin logs:
  • Box skin detected
  • Battery type detected
  • Charge amount applied
Example:
Charged battery item inside skinned box. BoxSkin=3733398168, Item=electric.battery.rechargable.large, Charge=24000

How It Works​

Deployed Batteries​

Deployed batteries are charged using Rust's native battery system:
battery.rustWattSeconds = battery.maxCapactiySeconds
This is used by:
  • /chargebattery
  • Hammer charging

Battery Items​

Battery items stored in containers use item instance data rather than battery entity data.
When placed into a supported charging box the plugin:
  1. Detects the battery item.
  2. Identifies its type.
  3. Applies the configured charge value.
  4. Updates the item immediately.
This allows charging batteries before they are deployed.
Back
Top