▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
skLambda

skLambda

Skript addon that adds lambda functions and listeners to Skript.

Оцените первым
158
3
Все версииskLambda 1.4.0

skLambda 1.4.0

Release02.08.2026

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

skLambda 1.4.0

Supports: Paper 1.21.1+ · Skript 2.15+

New effect

  • Fail a future fail %futures% [with %text%]: settles a future as broken and wakes every waiting trigger into its on failure: block. reject %futures% is the same thing. Reason defaults to "future failed". First outcome wins, so a late fail does nothing.

New expressions

  • Failure reason failure reason of %future%: why a future broke. Nothing for one that's pending or resolved fine, so it doubles as a failure test. If a background lambda errored, you get a short note pointing at the console where Skript logged the real exception. error of, failure of, exception of all work.
  • Already-finished futures a completed future [with %object%], a failed future [with %text%], a resolved future: what makes a "sometimes cached, sometimes async" helper tidy. The caller always gets a future and can always wait for it, whether or not any work happened.
  • Chain a future %future% then %lambda%: a new future resolving with the lambda applied to the original's result. Source is untouched and still awaitable. Source fails -> chain fails with the same reason and the lambda never runs. Lambda errors -> chain fails with that. Chain as far as you like. chained with is the same thing; deliberately not mapped with, that belongs to list mapping.
  • Take and drop while %list% taken while %predicate% passes / dropped while: the leading run that passes, and everything from the first failure onward. Both care about position, which is why where can't do their job. They always split the list cleanly.
  • Where a listener came from script of %listener%, creation date of, age of: loop all active listeners to find stale ones and unregister them from a script instead of squinting at a console list. age of counts from creation, not registration.

New listener option

  • Fire on the first poll initial: %boolean% on watch when: the state to assume before the first poll. Normally the first poll only sets a baseline, and that's the usual reason a watcher "doesn't work" — the thing was already true when you started watching. initial: false fires on rising: straight away; initial: true is the mirror for on falling:. Leave it off and nothing changes.

New section block

  • Handle a failed wait on failure:: nests inside wait for, next to the body and any on timeout:. wait for all of fires it on the first failure and gives up. wait for any of fires it only once every future has failed, so one success takes the main body. Leave it off and failures fall through to the body like before.

Improvements

  • A background lambda that errors now fails its future. It used to resolve quietly to nothing, identical to a lambda that returned nothing. Now has failed is true, failure reason of explains it, and wait for routes to on failure:. The one intentional behaviour change in the release.
  • wait for any of waits for a success. It used to settle on the first future to finish either way, so an early failure could end the wait while another was about to succeed.
  • A misindented on timeout: or on failure: tells you so, instead of Skript's generic "can't understand this section".
  • Documentation fixes. Several shipped examples didn't parse: size of where Skript wants amount of, a sha256 of that was never Skript syntax (it's %text% hashed with SHA-256), a balance of that quietly needed Vault, and a wait for whose on timeout: was dedented. References to filtered where and count of ... where, both removed in 1.1.1, are gone too.

New commands

  • /sklambda futures: every unresolved future, with where it was created, how long it's been waiting, and how many wait for blocks are suspended on it. Blocks waiting with no way to resolve = a stuck trigger. Only lists futures something still holds; one nothing references is ordinary garbage, not a leak.
  • /sklambda reload: re-reads config.yml. notifier and update-notifications apply right away. lambda and listener still need a restart, because syntax goes to Skript once at startup and can't be taken back. Every option is now tagged [RELOAD] or [RESTART].

Leak detector

  • It watches futures too. New futures section with its own warn-after and message, using {location}, {duration}, {awaiting}. A future that never resolves leaves every wait for on it suspended forever — as quiet a leak as a listener you never stop. enabled: true switches the notifier on, then listeners: and futures.enabled: pick which scans run. Still off by default.

Файлы

skLambda-1.4.0.jar(250.56 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.4.0

Загрузчики

Paper
Purpur

Версии игры

1.21–26.2

Загрузок

28

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

02.08.2026

Загрузил

ID версии

Главная