Tags
Creators
Details
1.6.1+1.20.2
Compatibility
Changes
This update brings two new command context options, SERVER_AS_PLAYER and DANGEROUSLY_OP, improving compatability with mods that don't use Brigadier or use altered permission checking such as WorldEdit.
Changelog
- Two new command context
SERVER_AS_PLAYER- This is the same as running a command as the server with
execute as @p, but in a way cleaner and faster way.
- This is the same as running a command as the server with
DANGEROUSLY_OP- This context is highly discouraged, it works by briefly giving OP to the player to execute the command; this is done sequentially in a code block synchronized to the server op list, so it should generally be ok to use, but try to avoid this one if possible.
- Updated documentation
For the curious
If you are wondering how DANGEROUSLY_OP works, here's the (Yarn) code snippet:
case DANGEROUSLY_OP -> {
synchronized (server.getPlayerManager().getOpList()) {
server.getPlayerManager().addToOperators(player.getGameProfile());
server.getCommandManager().executeWithPrefix(player.getCommandSource(), parsedCommand);
server.getPlayerManager().removeFromOperators(player.getGameProfile());
}
}
GitHub: https://github.com/CamperSamu/ItemCommander/releases/tag/1.6.1
Full Changelog: https://github.com/CamperSamu/ItemCommander/compare/1.6.0...1.6.1
Optional dependencies
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| itemcommander-1.6.1+1.20.2-sources.jar | Unknown | 41.47 KiB |
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:VUnrj0Dx:8adWifDr"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:VUnrj0Dx:8adWifDr"
}

