flag a player in "right clicks npc" event
-
- User
- Posts: 22
- Joined: August 6th, 2016, 4:53 pm
- Location: Germany
- Contact:
flag a player in "right clicks npc" event
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>")
"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>")
-
- User
- Posts: 22
- Joined: August 6th, 2016, 4:53 pm
- Location: Germany
- Contact:
Re: flag a player in "right clicks npc" event
It seems like you just can't use the flag-name "NPCID". I changed it to "LetzterNPC" and now it works.
- mcmonkey
- Site Admin
- Posts: 299
- Joined: August 5th, 2016, 7:27 pm
- Location: Los Angeles, California, USA
- Contact:
Re: flag a player in "right clicks npc" event
LOL. Awkward limitation of Denizen-Bukkit...Goma_Terzu wrote:It seems like you just can't use the flag-name "NPCID". I changed it to "LetzterNPC" and now it works.
NPC, NPCID, Player
are all reserved key words that mean to switch the context of the command.Denizen lead developer. On Discord as
mcmonkey#6666
.Who is online
Users browsing this forum: No registered users and 2 guests