#executing custom commands through console or as a player does not work

1 messages · Page 1 of 1 (latest)

civic belfry
#

it works when I run it myself but when i run as player action it doesnt work so yeah

indigo dove
#

Yes because NPCs can't actually execute the commands as the player.

civic belfry
#

so then why does it say that

#

and then how do other plugins do that

civic belfry
hushed meteorBOT
indigo dove
#

Maybe just send a message saying "Click here to claim your kit" and make it suggest the command. That's how most servers work around this

#

I think this <click:run_command:'/kit claim'> makes it work. If not only suggest: <click:suggest_command:'/command'></click>

civic belfry
hushed meteorBOT
indigo dove
#

Ye then say "Click here to claim the netherite kit" and change the command

civic belfry
hushed meteorBOT
civic belfry
#

if this plugin cant do that its ok ill just use another

#

can it do it?

fading summit
#

@civic belfry Should work fine. Looks like player simply do not have permission to run this command.

civic belfry
#

they do

fading summit
#

Well error says command is not recognized so either it has a typo or permissions aren't set up correctly.

#

Is this font client-side?

#

Like a resource-pack, mod or whatever.

#

Executing through console should also work but you need to write {player} in place where command expects a player name.

#

If you believe your permissions are set up correctly, please send output of:
/npc action (npc) (trigger) list

lament torrent
fading summit
#

This looks like you've added player_command instead of console_command.

#

{player} placeholder is only available for console_command action.