flag a player in "right clicks npc" event

Goma_Terzu

Member
Aug 6, 2016
22
0
0
Germany
www.toxicwars.com
Maybe I went full retard here, but suddenly using a flag on a player in the right click event does not seem to work anymore

"OneandonlyNPCrightClickEvent":
type: world
debug: true
events:
on player right clicks npc:
- flag player NPCID:<context.entity>
- narrate <player.flag[NPCID]>

The tag is null


[19:57:43 INFO]: ERROR in script 'ONEANDONLYNPCRIGHTCLICKEVENT'! Woah! Invalid arguments were specified!
[19:57:43 INFO]: +> [Denizen] +> MESSAGE follows: 'Must specify a flag action or value.'
[19:57:43 INFO]: +> [Denizen] Usage: flag ({player}/npc/server/<entity>) [<name>([<#>])](:<action>)[:<value>] (duration:<value>)
[19:57:43 INFO]: +> [Denizen] (Attempted: FLAG "player" "NPCID:<context.entity>")
 

mcmonkey

Administrator
Staff member
Helper
Goma_Terzu said:
It seems like you just can't use the flag-name "NPCID". I changed it to "LetzterNPC" and now it works.
LOL. Awkward limitation of Denizen-Bukkit...
NPC, NPCID, Player are all reserved key words that mean to switch the context of the command.