Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for coolcostupit

Create plugin like scripts during runtime

Report OpenJavascript?

Release
1.3.0

coolcostupit released OpenJavascript version 1.3.0 on January 12, 2026

Improvements

  • Fixed DiskApi issues that caused unexpected behavior
  • DiskApi now removes datastore entries when values are NULL
  • DiskApi now persists active files on script reload
  • Fixed rare ConcurrentModificationException issues when:
    • Registering commands
    • Syncing commands
  • Improved error handling: script exceptions now log as ERROR instead of WARN
  • All scripts now unload before any other shutdown logic
  • Scripts unload asynchronously on the main thread, allowing tasks to finish safely

Additions

  • Completely rewritten script management & I/O system
    • Significantly reduces unnecessary disk operations
  • Added official folder support for scripts
  • Scripts are automatically loaded when added while the server is running
  • Added requireScript
  • Introduced global [script] class
  • Fixed scripts failing to load via command due to parsing errors
  • Added task.bindToUnload(function) to register unload handlers
  • Yielding operations now block unload until execution completes
  • Cache behavior improved:
    • Cache drops only after I/O operations complete
    • Fully handled automatically by scripts

APIs & Services improvements

Commands & Runtime fixes

Deprecations

  • Added importClass() for runtime class importing
  • Deprecated //!import xxx.xxx in favor of importClass()
  • Deprecated feature flags / service flags

Configuration & Automation

  • Added autoReloadScripts config option
    • Toggle automatic reload when scripts change or are added

Threading & more Folia Support

  • Added task.thread(function) for parallel execution
    • This means you can multithread scripts on non-Folia servers now
  • Services and PlaceholderAPI are now fully thread-safe

Documentation

  • Added "Advanced Guides" section that also explains how to use the new folder support
  • Reconstructed everything to find APIs and Methods faster
  • Added 3 new example scripts: Food Bait, Nuke Menu and Spawn Menu
  • All old example scripts have been updated to use the latest non deprecated methods

Information

Published onJanuary 12, 2026
Downloads5

Platforms

Paper Paper (1.13-1.21.11)