
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!
862
16
Список изменений
This release is just a hotfix, containing crucial fixes and new features.
General Fixes & Improvements
- Migrated from Nashorn 15.6 to 15.7 for better JavaScript compatibility and performance.
- Reduced plugin file size by
~1,000KBthrough code cleanup and a complete rewrite of theUpdateChecker. - Fixed an error where
task.bindToUnloadwould crash because the plugin attempted to schedule tasks during the shutdown sequence. - Resolved a
ConcurrentModificationExceptionthat occurred when destroying an inventory immediately upon a player closing it.
Custom-Menus Api Updates
- Menu.setTitle(String): Added the missing
setTitlemethod. - Setting any Menu/Inventory slot to
nullnow automatically converts it to Air instead of throwing a null pointer error.
FileManager Api Updates
The FileManager service has received a few new methods
New Methods:
getFile(path): Retrieves a specific file.removeFile(path): Deletes a file.getFolder(path): Retrieves a directory.removeFolder(path): Deletes a directory and its contents.getFiles(path): Returns an array of all files within the specified folder.
FileManager path prefixes for easier navigation:
..(Parent Directory): Jump up one level out of the current folder./(Script Root): Quickly reference the directory where your script is currently located.- Example:
FileManager.getFiles("/");returns everything in the script's local folder.
Файлы
openjs-1.3.2.jar(2.36 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.3.2
Загрузчики
BukkitFoliaPaperPurpurSpigot
Версии игры
1.13–1.21.11
Загрузок
103
Дата публикации
4 нед. назад
