#Placeholder creation

1 messages · Page 1 of 1 (latest)

pallid kindle
#

I have on a server, PAPI, EssentialsX, GriefPretention and TAB, and on TAB i have a boss bar with placeholders.

img->https://media.discordapp.net/attachments/1117141598539624448/1148894712539926550/image.png

TAB

bars:
    ServerInfo:
      style: PROGRESS
      color: '%animation:barcolors%'
      progress: '100'
      text: 'ȡ %world% &8|&f ⅀ X:%player_x% Y:%player_y% Z:%player_z% &8|&f ꜿ %essentials_world_time% &8|&f Ǯ %player_ping%'
placeholder-output-replacements:
  '%essentials_vanished%':
    'yes': '&7| Vanished'
    'no': ''
  '%essentials_nickname%':
    '%essentials_nickname%': '%player%'
  "%world%":
    "world": "Aetheria"
    "world_nether": "Abyssal"
    "world_the_end": "Voidreach"
    "spawn": "Spawn"

so i want to ask if its possible to create a placeholder to put on bossbar to when the player its any world, will be %world% but if a player its on a claim, beeing %griefprevention_currentclaim_ownername%

exemple of my explication:

'%custom_world_or_claim%':
    - set:
        world: "Aetheria"
      if:
        in-world: "world"
    - set:
        world: "Abyssal"
      if:
        in-world: "world_nether"
    - set:
        world: "Voidreach"
      if:
        in-world: "world_the_end"
    - set:
        world: "Spawn"
      if:
        in-world: "spawn"
    - set:
        claim_owner: "%griefprevention_currentclaim_ownername%"
      if:
        in-claim: true```
pallid kindle
#

Placeholder creation

remote yoke
#

You can try the javascript expansion

tribal scaffold
#
conditions:
  claimOrWorld:
    conditions:
      - "%griefprevention_currentclaim_ownername%=Unclaimed!"
    yes: "%griefprevention_currentclaim_ownername%"
    no: "%world%"

text: 'ȡ %condition:claimOrWorld% &8|&f ⅀ X:%player_x% Y:%player_y% Z:%player_z% &8|&f ꜿ %essentials_world_time% &8|&f Ǯ %player_ping%'

remote yoke
#

or that xd

tribal scaffold
remote yoke
#

D:

pallid kindle
pallid kindle
tribal scaffold
#

?paste

cinder remnantBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

pallid kindle
tribal scaffold
#

/tab parse me %condition:claimOrWorld% %griefprevention_currentclaim_ownername%

#

?imgur

cinder remnantBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

tribal scaffold
#

take a screenshot of the output

pallid kindle
tribal scaffold
#

oh my bad

#

switch the yes and the no in the condition

#
    yes: "%world%"
    no: "%griefprevention_currentclaim_ownername%"
pallid kindle
#

but when im out shows Unclimed

#

and i wanted to show the world's name

tribal scaffold
#

did you change the yes and no?

pallid kindle
pallid kindle
#

conditions:
claimOrWorld:
conditions:
- "%griefprevention_currentclaim_ownername%=Unclaimed!"
yes: "%world%"
no: "%griefprevention_currentclaim_ownername%"

tribal scaffold
#

/tab parse me %griefprevention_currentclaim_ownername%

pallid kindle
tribal scaffold
#

ah, it doesn't return a !

#

remove it from here

pallid kindle
#

now on claim dont work xD

tribal scaffold
#

send your config again

pallid kindle
tribal scaffold
#

I told you to remove the !

#

not the entire thing xD

pallid kindle
#

haveing only the yes and no ?

tribal scaffold
#

=/

pallid kindle
#

removing the line 179

#

?

tribal scaffold
#

I told you to ONLY remove !

#

this

#

only this had to be removed

pallid kindle
#

yep

#

work now