mojira.dev
MC-302268

Running multiple commands quickly kicks the player for spamming in multiplayer

Steps to reproduce the issue

It's easy to reproduce, but it takes some effort to meet the conditions.
First, set up a server and join using localhost or similar.

Create a triggered scoreboard with a command like this:

/scoreboard objectives add TriggerTest trigger

Next, place a repeating command block with the following command written in it, and activate it using redstone or similar.

scoreboard players enable @a TriggerTest

Then, remove yourself from OP privileges and use the following command multiple times:

/trigger TriggerTest add 1

After a certain number of attempts, you will be kicked from the server.
This kicking for spam is a major limitation when creating menus using dialog, tellraw, etc.
For example, even if you create a shop using the dialog command, players may be kicked simply for purchasing an item.
If you are being told that if you want to create a shop using Dialog, you should repeatedly display confirmation screens, then there's nothing we can do about it.

Environment

Windows 10

Linked issues

Comments 2

This restriction can be circumvented by setting the function permission level to 3 or higher in the server settings, which allows the op command, and granting op permission only while the player has the menu open. However, this is not possible on Realms or LAN servers, where the function permission level cannot be changed. Also, granting op permission to any player, even if only temporarily, can be a vulnerability for the server...

This issue is the same as MC-101859. It is probably best to track the issue here, since I would think that usage of /trigger should have the same result regardless of how it is invoked.

Chuzume

(Unassigned)

Confirmed

(Unassigned)

1.21.8, 1.21.9 Release Candidate 1, 1.21.9

Retrieved