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

skLambda

Skript addon that adds lambda functions and listeners to Skript.

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

skLambda 0.0.3-alpha

Alpha29.05.2026

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

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 returns true/false) or an effect (runs and returns nothing). Parameters become locals like {_p}.
  • Function Lambda: function lambda "name" wraps an existing Skript function in a lambda you can store, pass around, and call like any other lambda.
  • Call Lambda (new forms): alongside call/invoke lambda, you can now write calling lambda %lambda% [with ...] and the 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 as matches/holds). With a list of lambdas, a quantifier decides how many must pass: all of (the default), any of, or none of. Negate with doesn't pass or a leading not. Works inside listen ... where, too.

New effects

  • Unregister All Listeners : unregister all listeners stops every active listener on the server (across all scripts).
  • Unregister Last Listener: unregister the last created listener stops the most recently created one still active. Neither fires on completion or on timeout.

New command

  • /sklambda: shows the version and GitHub link. /sklambda listeners lists every active listener (where it was created, the event it watches, and how long it has been alive). Alias /skl. Guarded by the sklambda.admin permission (default: op).

Configuration

  • config.yml added. Toggle features with lambda and listener: a disabled feature registers no syntax at all (both default to true).
  • Listener leak detector (notifier): optional console warnings about listeners that stay registered longer than warn-after, repeated every warn-every, with a customizable message (placeholders {location}, {event}, {duration}). Off by default.
  • update-notifications toggle 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 triggers and remaining countdown share a common base and now report 0 correctly 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

Загрузчики

Paper
Purpur

Версии игры

1.21–26.1.2

Загрузок

7

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

29.05.2026

Загрузил

ID версии

Главная