{"id":26317,"date":"2026-06-01T12:48:02","date_gmt":"2026-06-01T09:48:02","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/"},"modified":"2026-06-01T12:48:02","modified_gmt":"2026-06-01T09:48:02","slug":"battery-management","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/","title":{"rendered":"Battery Management"},"content":{"rendered":"<p>## About<\/p>\n<p>Minecraft Paper Plugin to save energy after inactivity and inform about low \/ high battery charge. This is thought for<br \/>\nsmall local servers that are running on old laptops or other devices with a battery. It (currently) has no permission set on it&#8217;s command(s), which means everyone<br \/>\nis able to see the battery status.<\/p>\n<p>## Suggestions<\/p>\n<p>If you have any suggestions, found a bug or have a feature request, please feel free to contact me!<br \/>\n<br \/>\nThe plugin is currently also only available for 1.20.1 on paper, but write me a DM and I can make it available for your desired version.<br \/>\n<br \/>\nMy discord username is `eneas._`.<\/p>\n<p>## Commands<\/p>\n<p>&#8211; \/battery [<percentage> | <status>]<\/p>\n<p>Requests and returns the current battery percentage, status, or both if no argument is specified.<\/p>\n<p>## Usage<\/p>\n<p>The plugin can be configured to check the battery every given amount of minutes, and broadcast a warning in the chat if<br \/>\nthe battery is below a specified threshold and discharging or above another specified threshold and charging (default<br \/>\nlow is 10% and high is 90%).<br \/>\n<br \/>\nIt also has a feature to stop the server after a given duration of inactivity. This works by testing if no players are online and that the last player left and the last console command was executed, before this duration.<br \/>\nIf enabled, it also creates a marker file at a given path, so that the server start-script can test if the file exist and trigger further actions, like completely shutting down the device.<\/p>\n<p>## Configuration<\/p>\n<p>### Default plugin config:<\/p>\n<p>&#8220;`yaml<br \/>\nbattery:<br \/>\n  enabled: true # Disable battery checks if set to false<br \/>\n  warning_thresholds:<br \/>\n    high: 90  # Warn if battery is above this percentage<br \/>\n    low: 10   # Warn if battery is below this percentage<br \/>\n  check_interval: &#8220;5m&#8221; # How often to check battery level<\/p>\n<p>inactivity:<br \/>\n  enabled: true # Disable auto-shutdown if set to false<br \/>\n  max_duration: &#8220;15m&#8221;  # Max inactivity time before shutdown<br \/>\n  check_interval: &#8220;5m&#8221; # How often to check for inactivity<br \/>\n  shutdown_info:<br \/>\n    file: &#8220;\/tmp\/battery_management\/shutdown.info&#8221; # File indicating a shutdown request<br \/>\n&#8220;`<\/p>\n<p>### Example scripts to start server and shutdown if plugin stopped server:<\/p>\n<p>#### Linux<\/p>\n<p>&#8220;`bash<br \/>\n#!\/bin\/bash<\/p>\n<p>java -Xms2G -Xmx2G -XX:+UseG1GC -jar \/Path\/to\/paper-server.jar &#8211;nogui<\/p>\n<p>FILE=&#8221;\/tmp\/battery_management\/shutdown.info&#8221;<\/p>\n<p>if [ -f &#8220;$FILE&#8221; ]; then<br \/>\n    rm -f &#8220;$FILE&#8221;<br \/>\n    shutdown now<br \/>\nfi<br \/>\n&#8220;`<\/p>\n<p>#### Windows<\/p>\n<p>&#8220;`batch<br \/>\n@echo off<br \/>\nsetlocal<\/p>\n<p>java -Xms2G -Xmx2G -XX:+UseG1GC -jar C:Pathtopaper-server.jar &#8211;nogui<\/p>\n<p>set &#8220;file=C:WindowsTempbattery_managementshutdown.info&#8221;<br \/>\nIF EXIST &#8220;%file%&#8221; (<br \/>\n    del &#8220;%file%&#8221;<br \/>\n    shutdown -s -t 0<br \/>\n)<\/p>\n<p>endlocal<br \/>\n&#8220;`<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A plugin to inform about battery status, save energy after inactivity and inform about low \/ high battery charge.<\/p>\n","protected":false},"featured_media":26318,"template":"","meta":{"_minecraft_slug":"battery-management","_minecraft_project_id":"sIRsnTVK","_minecraft_author":"eneas1","_minecraft_license":"LicenseRef-All-Rights-Reserved","_minecraft_downloads":16,"_minecraft_follows":0,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"battery-management.zip","_minecraft_size_bytes":18888,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-15T22:48:16.822908Z","_minecraft_date_created":"2025-10-26T22:28:42.427780Z","_minecraft_date_modified":"2025-10-11T15:58:48.407920Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/battery-management","_minecraft_icon_attachment_id":26318,"_minecraft_imported_at":"2026-06-01T09:48:03+00:00","_minecraft_import_hash":"036512c76779b37288713f6123637b30","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[126,127,123,92],"mod_loader":[132],"minecraft_version":[36],"class_list":["post-26317","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-management","mod_category-paper","mod_category-technology","mod_category-utility","mod_loader-paper","minecraft_version-1-20-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Battery Management - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Battery Management - Minecraft\" \/>\n<meta property=\"og:description\" content=\"A plugin to inform about battery status, save energy after inactivity and inform about low \/ high battery charge.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/battery-management\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/battery-management\\\/\",\"name\":\"Battery Management - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/battery-management\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/battery-management\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/battery-management-icon-3883ad45154ba3e2612db7c66872bcb3b9e0febb.jpeg\",\"datePublished\":\"2026-06-01T09:48:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/battery-management\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/battery-management\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/battery-management\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/battery-management-icon-3883ad45154ba3e2612db7c66872bcb3b9e0febb.jpeg\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/battery-management-icon-3883ad45154ba3e2612db7c66872bcb3b9e0febb.jpeg\",\"width\":225,\"height\":225},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/battery-management\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Battery Management\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Battery Management - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/","og_locale":"en_US","og_type":"article","og_title":"Battery Management - Minecraft","og_description":"A plugin to inform about battery status, save energy after inactivity and inform about low \/ high battery charge.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/","name":"Battery Management - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/battery-management-icon-3883ad45154ba3e2612db7c66872bcb3b9e0febb.jpeg","datePublished":"2026-06-01T09:48:02+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/battery-management-icon-3883ad45154ba3e2612db7c66872bcb3b9e0febb.jpeg","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/battery-management-icon-3883ad45154ba3e2612db7c66872bcb3b9e0febb.jpeg","width":225,"height":225},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/battery-management\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Battery Management"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/26317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/26318"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=26317"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=26317"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=26317"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=26317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}