
skLambda
Skript addon that adds lambda functions and listeners to Skript.
Оцените первым
81
3
Список изменений
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% passeskeeps 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% passescounts how many elements pass. - First Where:
first element of %objects% where %predicate% passesreturns the first element that passes. - End Reason:
end reasonreports why a listener stopped, so you can branch on it. Comes with its own type.
New functions
- Constant predicates:
always()andnever()are drop-in predicates.always()always passes andnever()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 runon triggerand does not count towardtriggers:.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-notificationsnow 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
/sklambdacommand: now has tab-completion, and/sklambda listenersshows owner info for each listener. The plugin link now points to Modrinth instead of GitHub.- Internal refactor: element registration was split into
LambdaModuleandListenerModule, trimming the mainSkLambdaclass by about 90 lines. - Examples:
example.skgained 5 new showcases (10to14) 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
Загрузчики
PaperPurpur
Версии игры
1.21–26.1.2
Загрузок
10
Дата публикации
31.05.2026
