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

[1.21.3] Player Perform Command API Failing #11562

Open
PulseBeat02 opened this issue Nov 2, 2024 · 0 comments
Open

[1.21.3] Player Perform Command API Failing #11562

PulseBeat02 opened this issue Nov 2, 2024 · 0 comments
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.21.3

Comments

@PulseBeat02
Copy link

PulseBeat02 commented Nov 2, 2024

Expected behavior

I expected my command to be executed, but instead, there is no output in the console, and it seems that the command has not been executed. I used this snippet of code inside my plugin class to test the command execution when a player joins. It worked on Paper 1.21.1

    Bukkit.getPluginManager().registerEvents(new Listener() {
      @EventHandler
      public void onPlayerJoin(final PlayerJoinEvent event) {
        final Player player = event.getPlayer();
        player.performCommand("say Hello World!");
      }
    }, this);

(As for a different but similar issue, I used Adventure components with text that runs a command when the player presses on it, and there is nothing that happens either. I'm not sure if this is the same issue or not)

Observed/Actual behavior

There is nothing sent out into console, with no output sent out to the player. No error is displayed into the console either, and the implementation fails silently.

Steps/models to reproduce

  1. Register a quick Listener for Player join for executing a say command message
  2. Join the server as any player
  3. There is nothing displayed inside of chat

Plugin and Datapack List

None besides the current plugin

Paper version

[19:47:47 INFO]: Checking version, please wait...
[19:47:47 INFO]: This server is running Paper version 1.21.3-10-master@92131ad (2024-11-01T21:30:00Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.3-8-85c870e (MC: 1.21.3)

Other

No response

@PulseBeat02 PulseBeat02 added status: needs triage type: bug Something doesn't work as it was intended to. labels Nov 2, 2024
@PulseBeat02 PulseBeat02 changed the title [1.21.3] Player Perform Command API Not Working [1.21.3] Player Perform Command API Failing Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.21.3
Projects
Status: 🕑 Needs Triage
Development

No branches or pull requests

1 participant