
skLambda
Skript addon that adds lambda functions and listeners to Skript.
Оцените первым
81
3
Список изменений
skLambda 0.0.3-alpha
Supports: Paper 1.21.1+ · Skript 2.15+
New expressions
- Inline Lambda: write a lambda on one line:
lambda (p: player): {_p} is op. The body is either a condition (a predicate that returnstrue/false) or an effect (runs and returns nothing). Parameters become locals like{_p}. - Function Lambda:
function lambda "name"wraps an existing Skriptfunctionin a lambda you can store, pass around, and call like any other lambda. - Call Lambda (new forms): alongside
call/invoke lambda, you can now writecalling lambda %lambda% [with ...]andthe result of calling lambda %lambda% [with ...].
New condition
- Predicate Passes: treat a lambda as a yes/no test:
%lambdas% pass[es] [for %values%](also reads asmatches/holds). With a list of lambdas, a quantifier decides how many must pass:all of(the default),any of, ornone of. Negate withdoesn't passor a leadingnot. Works insidelisten ... where, too.
New effects
- Unregister All Listeners :
unregister all listenersstops every active listener on the server (across all scripts). - Unregister Last Listener:
unregister the last created listenerstops the most recently created one still active. Neither fireson completionoron timeout.
New command
- /sklambda: shows the version and GitHub link.
/sklambda listenerslists every active listener (where it was created, the event it watches, and how long it has been alive). Alias/skl. Guarded by thesklambda.adminpermission (default: op).
Configuration
- config.yml added. Toggle features with
lambdaandlistener: a disabled feature registers no syntax at all (both default totrue). - Listener leak detector (
notifier): optional console warnings about listeners that stay registered longer thanwarn-after, repeated everywarn-every, with a customizablemessage(placeholders{location},{event},{duration}). Off by default. update-notificationstoggle reserved for a future update check.
Improvements
- Type hints: lambda and saved-listener variables now register a Skript type hint, so misuse is caught at parse time when a script opts into Skript's experimental
using type hints. - Listener effects and conditions (
register,unregister,pause,resume, and the registered/paused/running checks) now take a%listener%instead of%object%, for clearer errors. remaining triggersandremaining countdownshare a common base and now report0correctly once a listener has finished.- Website link now points to GitHub.
Full Changelog: https://github.com/ahmadmsaleem/skLambda/compare/pre-release...0.0.3-alpha
Файлы
skLambda-0.0.3-alpha.jar(104.53 KiB)
ОсновнойМетаданные
Канал релиза
Alpha
Номер версии
0.0.3-alpha
Загрузчики
PaperPurpur
Версии игры
1.21–26.1.2
Загрузок
7
Дата публикации
29.05.2026
