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

NoteBlockAPI (Folia)

A developer API for playing .nbs note-block songs to players — ported to Folia, while remaining compatible with classic Paper.

Оцените первым
27
0

NoteBlockAPI (Folia)

A developer API for playing .nbs note-block songs to players — ported to Folia, while remaining compatible with classic Paper.

This repository is a Folia-compatible fork of koca2000/NoteBlockAPI.

What's in this fork

  • Folia support: a FoliaCompat scheduler bridge that transparently routes all Bukkit scheduler calls to Folia's Global / Region / Async / Entity Scheduler (falling back to the classic scheduler on ordinary Paper).
  • Thread-safe playback: song playback moved from a shared async pool to a tracked dedicated thread; playTick is dispatched on each listener's region thread, avoiding cross-region entity/block access violations.
  • Region-aware events: SongEnd, SongStopped etc. are fired on the song's region (block players on the block region, entity players on the entity region), so downstream plugins can safely touch the related blocks/entities.
  • Clean enable/disable: removed the BukkitScheduler.cancelTasks/getActiveWorkers calls that throw UnsupportedOperationException on Folia, replaced with explicit cancellation and thread interruption.
  • Dependency bumps: Java 21 target, Paper API 1.21.1, plugin.yml marked folia-supported: true.

Requirements

ComponentVersion
ServerFolia 26.x (or Paper 1.21+)
Java21+

Build

mvn clean install

Artifact: target/NoteBlockAPI-*-SNAPSHOT.jar (shaded with bstats). install also publishes it to your local Maven repository, for downstream plugins such as MusicBox (Folia).

Usage

Declare depend: [NoteBlockAPI] in your plugin's plugin.yml, then use the SongPlayer API to play .nbs songs. See the Spigot resource page for details.

Credits & License

  • Original: xxmicloxx et al.; fork: koca2000/NoteBlockAPI
  • License: LGPL v3 (see LICENSE), inherited from the original project.
Партнёрский материал

Сервер для плагина NoteBlockAPI (Folia) - как у профи

Плагин NoteBlockAPI (Folia) создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином NoteBlockAPI (Folia) для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.2.x26.1.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки

Создатели

Детали

Лицензия:
Опубликован:3 месяца назад
Обновлён:3 месяца назад
Главная