Tags
Creators
Details
1.6.0
Compatibility
Changes
skLambda 1.6.0
Supports: Paper 1.21.1+ · Skript 2.15+ Want the full details? wiki: New-Features
Adds a new commands module that controls which commands players see when they press /.
- show only commands %strings% [where <condition>]: limits the list to the named commands. The condition is checked for each player whenever their list is sent, so permission groups work from on load. Rules add up, and a player who matches none of them sees no commands.
- hide commands where %object% passes: hides every command a lambda passes for. The lambda gets the command label, then the player.
- hide commands %strings% from %players% / show commands %strings% to %players%: per-player hides that last until the matching show runs.
- reset command visibility [for %players%]: clears every rule and hide, or only the hides of the given players.
Example
on load:
show only commands "help", "msg" and "tpa" where player has permission "group.default"
show only commands "ban", "kick" and "mute" where player has permission "group.mod"
set {_namespaced} to lambda (cmd: text): {_cmd} contains ":"
hide commands where {_namespaced} passes
on damage of player:
hide commands "spawn" and "home" from victim
wait 10 seconds
show commands "spawn" and "home" to victim
command /resetcommands:
trigger:
reset command visibility
Players' command lists update right away, with no rejoin needed. Rules and hides are removed when the script that made them is reloaded. Hiding only changes what players see, so typed commands still run. Turn the module off with commands: false in config.yml.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:TmcZveKm:YFJUWZM3"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:TmcZveKm:YFJUWZM3"
}

