Mouton_redstone
Mouton_redstone

Reputation: 3

/execute doesn't work for my custom command

I made a custom /spawn command that teleports the sender to spawn I tried to use it doing "/execute as Mouton_redstone run spawn", "Mouton_redstone" being my minecrfat username. But it tells me that my command doesn't exist, when I run it myself, it works fine ("Zbim !" message)

screenshot

plugin.yml :

name: MyEasySpawn
version: '${project.version}'
main: fr.mouton_redstone.myeasyspawn.MyEasySpawn
api-version: 1.18
authors: [ Mouton_redstone ]
description: Adds a /spawn command and more

commands:
  spawn:
    description: Teleports you to spawn
    usage: /<command>

Upvotes: 0

Views: 755

Answers (1)

janbnz
janbnz

Reputation: 61

Unfortunately you can't run custom commands with the /execute command. Someone had the same problem a couple of years ago here. You can try to implement your own execute command or use other workarounds.

Upvotes: 2

Related Questions