1.0.0
Compatibility
Changes
SudoPlugin
Run any command as another player — from the console, in-game, or triggered by a command block.
Features
- Run any command (vanilla or plugin) as another player
- Full Minecraft selector support:
@p,@a,@r,@s, or a player name - Works from command blocks, console, and in-game
- Bypass permission to protect specific players
- No unnecessary listeners — pure command dispatch
Requirements
- Paper 1.21.1
- Java 21
Installation
- Download
SudoPlugin-1.0.0.jar - Drop it into your server's
plugins/folder - Restart the server
Usage
/sudo <selector> <command>
| Selector | Target |
|---|---|
@p |
Nearest player to the sender (or command block) |
@a |
All online players |
@r |
A random online player |
@s |
The player who ran the command |
<name> |
A specific player by name |
Examples
/sudo @p tp ~ ~10 ~
/sudo @a give @s diamond 1
/sudo mieprenzo gamemode creative
Command Block Setup
Place a command block and enter:
sudo @p <command>
@p resolves to the player nearest to the command block. No pressure plate listener or special setup required — Minecraft's own redstone triggers it.
Permissions
| Permission | Default | Description |
|---|---|---|
sudo.use |
OP | Allows use of the /sudo command |
sudo.bypass |
false | Player cannot be targeted by /sudo from other players |
Note:
sudo.bypassonly applies when another player runs/sudo. Command blocks and console always execute regardless.
Made by mieprenzo
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:nwRPTQSf:Kz6SN4iA"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:nwRPTQSf:Kz6SN4iA"
}

