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

skLambda

Skript addon that adds lambda functions and listeners to Skript.

Оцените первым
81
3
Все версииskLambda 1.0.0

skLambda 1.0.0

Release31.05.2026

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

skLambda 1.0.0

Supports: Paper 1.21.1+ · Skript 2.15+

New expressions

List loops can now be written as one-line operations instead of Skript loop blocks. Each one runs a lambda or predicate over a list.

  • Mapped: %objects% mapped with %lambda% turns every element into something new.
  • Filtered: %objects% filtered where %predicate% passes keeps only the elements that pass.
  • Reduced: %objects% reduced with %lambda% folds the whole list down to a single value.
  • Sorted: %objects% sorted by %lambda% sorts the list using a key pulled from each element.
  • Count Where: count of %objects% where %predicate% passes counts how many elements pass.
  • First Where: first element of %objects% where %predicate% passes returns the first element that passes.
  • End Reason: end reason reports why a listener stopped, so you can branch on it. Comes with its own type.

New functions

  • Constant predicates: always() and never() are drop-in predicates. always() always passes and never() never passes.

New listener options

These go inside a listen section.

  • owner:: ties a listener to an owner (for example a player). When the owner disconnects, the listener unregisters itself.
  • on end:: a callback that always runs no matter how the listener stops (completion, timeout, cancel, unregister, or owner disconnect). One single cleanup path.
  • cooldown: %timespan%: debounces rapid re-triggers. A debounced event does not run on trigger and does not count toward triggers:.
  • every %timespan%:: a repeating timer callback that runs while the listener is active. It pauses and stops along with the listener.

New effect

  • Unregister owned listeners: unregister all listeners owned by %object% stops only the listeners tied to that owner, for scoped cleanup.

Update checker

  • Startup check: update-notifications now actually works (it used to be a reserved toggle that did nothing). On startup the plugin checks for newer releases and notifies op players when they join.

Improvements

  • /sklambda command: now has tab-completion, and /sklambda listeners shows owner info for each listener. The plugin link now points to Modrinth instead of GitHub.
  • Internal refactor: element registration was split into LambdaModule and ListenerModule, trimming the main SkLambda class by about 90 lines.
  • Examples: example.sk gained 5 new showcases (10 to 14) covering the features above.
  • Build: version bumped to 1.0.0.

Full Changelog: git... 1.0.0

Файлы

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

Метаданные

Канал релиза

Release

Номер версии

1.0.0

Загрузчики

Paper
Purpur

Версии игры

1.21–26.1.2

Загрузок

10

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

31.05.2026

Загрузил

ID версии

Главная