▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/OpenJavascript
OpenJavascript

OpenJavascript

Create custom menus, commands, plugins, systems, basically anything with scripts in Javascript! With multithreading and Folia support! Everything is fully documented in the documentation!

863
16
Все версииOpenJavascript 1.3.0

OpenJavascript 1.3.0

Release1 мес. назад

Список изменений

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

Файлы

openjs-1.3.0.jar(3.30 MiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.3.0

Загрузчики

Bukkit
Folia
Paper
Purpur
Spigot

Версии игры

1.13–1.21.11

Загрузок

85

Дата публикации

1 мес. назад

Загрузил

ID версии

Главная