Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minecraft function works only in singleplayer (player.onTellCommand) #10288

Open
amg-12 opened this issue Nov 22, 2024 · 0 comments
Open

Minecraft function works only in singleplayer (player.onTellCommand) #10288

amg-12 opened this issue Nov 22, 2024 · 0 comments

Comments

@amg-12
Copy link

amg-12 commented Nov 22, 2024

Describe the bug
The Minecraft function player.onTellCommand does not work in multiplayer. The event will only trigger for the hosting player.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Run this program in Minecraft:
player.onTellCommand("ping", function () {
    player.say("pong")
})
  1. Whisper "ping" to yourself. /w @s ping
  2. If you are the player hosting the game, the event will trigger and respond with "pong" in the chat.
  3. If you are not the hosting player, the event will not trigger and nothing will happen.

Expected behavior
The onTellCommand event should work correctly for all players in a multiplayer game.

Additional context
This bug has existed for a long time. Previously reported and reproduced here. Seeing this resolved would mean a lot to me personally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant