[SPIGOT-6195] "/execute run" allows for vanilla commands that aren't supposed to work in commands blocks to work Created: 18/Oct/20  Updated: 18/Oct/20

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: mygizli04 Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: None
Environment:

No plugins on a fresh world


Attachments: PNG File spigot.png     PNG File vanilla.png     File video.mov    
Version: This server is running CraftBukkit version git-Spigot-57bbdd8-b8dd5ec (MC: 1.16.3) (Implementing API version 1.16.3-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

When using "kick @p" on a command block, the command doesn't work as intended. But running the command "execute run kick @p" DOES work, unlike vanilla which prevents this command from running.

Reproduction steps:
1- Make sure you're an operator in the server by running "op [your username]" in the console.
2- Give yourself a command block by running /give @s command_block
3- Place down the command block, right click to open it, then type "execute run kick @p"
4- Power the command block ( or make sure the command block is set to "always run" instead of "needs redstone"
5- You will get kicked from the server.

This issue isn't specific to /kick, it allows for command blocks to use any vanilla command they shouldn't be able to, including /stop


Generated at Sat Apr 05 09:53:21 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.