#for Tungaygb

1 messages · Page 1 of 1 (latest)

sinful shore
#

make the NPC run /dm execute <player> [placeholder] %javascript_meta_toggle,warp%

and in your menu view_requirement or click_requirement, check whether %javascript_meta_get,warp% returns true/false

#

yeah

#

yeah

#

yeah

#

just run the cmd to teleport to your warp

#

/papi ecloud download Javascript
/papi reload

#

ah right

#

I forgot lol

#

can only download it manually now

#

yeah of course

#

reload works

#

/plugins/PlaceholderAPI/expansions

#

yeah,, idk about %player_name% but yeah

#

depends on which NPC plugin you're using

#

if it's Citizens, then use <p> or <player>

#

you mean the same placeholder for view_requirement? yeah of course

#

well, not the toggle one but the get one

#

%javascript_meta_get,warp%

#
view_requirement:
  requirements:
    factionCanWarp:
      type: "string equals"
      input: "%javascript_meta_get,warp%"
      output: "true"
#

just to make sure, check if /papi parse me %javascript_meta_get,warp% returns the right value

#

sounds good

#

now click the NPC

#

yeah

sinful shore
#

make the NPC execute a second command /dm execute <p> [placeholder] %javascript_meta_toggle,warp%<delay=200>

#

you don't

#

🙂

#

put it within ""

#

otherwise, YAML parses it as yes

#

yeah