Sudo plugin
This plugin introduces a command that alllows you or command blocks to execute any command as another player.
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
Sudo plugin
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
1. Download `SudoPlugin-1.0.0.jar` 2. Drop it into your server's `plugins/` folder 3. 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.bypass` only applies when another *player* runs `/sudo`. Command blocks and console always execute regardless.
---
*Made by mieprenzo*