#placeholder-api

1 messages · Page 19 of 1

junior musk
#

try /papi parse me %utils_parse_skript_total_recipes.b3b03ff4-ec1b-46fe-9fe6-6270acc6c323%

static pelican
#

okay

junior musk
#

and then /papi parse me %utils_parse_skript_total_recipes.{player_uuid}%

static pelican
#

hmm that returned a number

#

which is correct

junior musk
#

now /papi parse me %utils_parse_math_{skript_total_recipes.{player_uuid}}%

static pelican
#

that worked

junior musk
#

/papi parse me %utils_parse_math_{skript_total_recipes.{player_uuid}}+89%

static pelican
#

worked as well

#

i think that fixes it

junior musk
#

👍

static pelican
#

thanks a lot for ur help

#

for precision in math do i just add [Precision:0] into it?

junior musk
#

nah that was changed

static pelican
#

ohh what is it now?

junior musk
#

now it's math_0_...

static pelican
#

got it

#

thanks

#

ill try putting into my menu now

static pelican
#

this doesnt work but the other thing works

fossil portal
#

is there any method/expansion i can use to 'freeze' / save a variable
i want to set up a variable with the localtime+set number
lets say
%math_{localtime_time_mm}+2%
but when i set another variable to that it will update the local time
is there any way i can set a variable to the outcome of that to the literal value instead of the actual local time, so it doesn't update any more even when time changes

junior musk
#

just like with math

static pelican
junior musk
#

yes

static pelican
#

learned how to use utils parsing today lol

ocean beacon
#

i just keep nested and use XD

austere hawk
#

why doesnt work my placeholders

shadow grotto
#

Hey, it fixed itself

tender vaporBOT
shadow grotto
#

Oops 😬

#

Anyway, my uneducated guess as to why this happens:
Sometimes when PAPI updates expansions, the file system might have two of the same files installed/cached/in memory/in the file system, it installs Expansion-viaversion and Expansion-ViaVersion

Then it complains that the identifier is in use and disables it

#

I think if you make sure any duplicates or similarly named ones are deleted, clear the ecloud cache, reboot the server, just triple check it fixes it

modern spire
#

how do I reset a placeholders data? so everyone gets reset for that placeholder?

light coral
#

I'm sorry but for some reason I do not work filler %player_name% in mmoitems, can anyone help? Extension player is, and it works, as well as the filler %player_name% everywhere works even in mmoitems except in the command, I used to have this problem in deluxemenu, but it was solved simply ...

modern spire
#

I would need to go into every player for that

onyx orchid
#

how to see player ranks in placeholder?

ocean beacon
radiant bay
#

Is it possible to make a placeholder appear as something else when it would normally be blank? I would like for two placeholders to appear as "none" when they would normally be blank, is this possible?

modern spire
#

how do I reset a placeholders data? so everyone gets reset for that placeholder?

torpid tusk
#

Hello can someone can help understand what im doing wrong in the settings process of this placeholder

%worldguard_<Any WG Placeholder>_<Priority (Lowest number = Highest priority)>% = %worldguard_worldguard_region_name_capitalized_1%

WorldGuard version 7.0.7+216b061

onyx orchid
ocean beacon
wraith berry
hardy pike
#

i am trying to use placeholder API to create a hologram with the top 10 player times, can i do this normaly or would i need an extention?

smoky ice
#

Does anyone know if Betterteams has placeholders?

cosmic needle
#

Don't think so.

narrow moth
#

Can anyone help me format a %checkitem_nbtstrings% placeholder with pixelmon nbt tags, I can not for the life of me figure it out
i tried doing %checkitem_mat:pixelmon_pixelmon_sprite,ndex:1s,palette:none,form:'''',gender:1b% but it just reads all pixelmon sprites

vale galleon
#

Hello

#

How can I add date in my minecraft server using placeholderapi

#

I am so confused what to do

vivid sparrow
#

%server_time%

torpid tusk
torpid tusk
#

empty i guess since i dont know what will need to be the right format

#

can you provide me with and example is possible

ocean beacon
#

%worldguard_region_name%

#

maybe

austere hawk
torpid tusk
#

Thanks allot I will try this afternoon

#

😇

austere hawk
vestal marsh
#

Why when I install bungeecord papi extention the placeholders dont work?

analog warren
#

Hi! I need some support, I'm trying to use pinger on a bungee network, but every server that isn't localhost returns offline. (I tried hypixel.net + testplugins.com same result)

slate raft
#

help me?

#

I don't understand how to fix it [21:28:03 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.11.3 generated an exception whilst handling plugin message

errant wedge
#

placeholder for ping and tps?

vestal marsh
#

how tf do i get bungeecord placholders workin\

winter field
cosmic needle
narrow moth
#

I tried doing /papi parse me %checkitem_getinfo:0_nbtstrings:%
on 2 seperate pixelmon sprites (with different nbt data) but i get the same output
"nbd:STRING:form:STRING:palette:none"
can anyone help?

dusk warren
#

is there addon that has countup date

#

i want to make "server season age"

dusk warren
vestal marsh
#

But whenever I reload confit with server names the config just resets

#

/papi reload

dusk warren
#

any errors in console?

tepid sand
#

how do i set up the joinmessage

hardy pike
#

i am trying to set up a socreboard on my server but it is not displaying properly can someone help me

#

i dont know if i am doing the Papi extention syntax correct or if

#

i want to display online players. ie Online:3/50 but it displays Online: %playerlist_online|amount|% i checked and playerlist expansion loaded so idk

dusk warren
dusk warren
hardy pike
tepid sand
#

ik this isnt related to papi but how do i send a message in mc chat whenever a player event hapens

#

whenever PlayerBedEnterEvent happens i want to send in chat {username} has entered a bed

modern spire
#

Is there a way to reset and delete just 1 specific placeholder's data?

crude cypress
#

I am trying to do this: %changeoutput_equals_input:_matcher:{checkitem_getinfo:0_loreequals:0}_ifmatch:_else:{checkitem_getinfo:0_loreequals:0}% to display the first line of the description, what happens is that some items do not have description . I then check if it equals "empty" to return the respective value, but I find that the placeholder check element does not return empty when there is no description, it returns an error. How can I fix that?

tawdry pecan
#

Parse Other does not work with offline players? Even if the username output works for offline players?

ocean beacon
fair haven
#

Hi, is it possible to change the locale for LocalTime?

warm plover
#

Why did the vault expansion remove the color placeholders? thonking

#

%vault_prefix_color%

vivid sparrow
#

because it didn't really work, especially with hex

#

I suggest you to use luckperms' meta if you want only the color of a prefix

#

/lp group [name] meta setprefix "&cSomePrefix"
/lp group [name] meta set prefix-color "&c"

warm plover
#

How do I pull that with a placeholder?

wet basinBOT
#

@vivid sparrow Unknown expansion.

vivid sparrow
#

%luckperms_meta_<metakey>% -> %luckperms_meta_prefix-color%

analog warren
#

Hi! I need some support, I'm trying to use pinger on a bungee network, but every server that isn't localhost returns offline. (I tried hypixel.net, testplugins.com, 127.0.0.1 and localhost same result)

thick lichen
vague temple
#

I want to make a leaderboard with people that have the most money on the server. What placeholder will suit me?

inner wolf
#

Hello good! I am using aJLeaderboard with Deluxe Menu and I am setting the plugin variable well but it does not give the player head even if it is premium.

#

It is a menu with the heads of the money tops

#

I am using head-%ajlb_lb_vault_eco_balance_1_alltime_name% but steve's default head is output.

autumn stream
#

What JS Engine use JavaScript expansion?

balmy marten
dry minnow
serene terrace
#

how to make a gui in DeluxeMenus that will display the number of players on a given bungecord subserver?

#
  • '&7players : &f%placeholderapi_bungee_lobby_online%'
#

Doesn't work

fossil portal
#

I want to freeze/copy a variable so it will not change (for example, saving a time from localtime)
can i do this with an extension/plugin for placeholderapi

lean juniper
#

can someone help me

#

i cant instal the skript expansion with papi

balmy marten
balmy marten
balmy marten
lean juniper
#

i already got the expansion

balmy marten
#

Which one, there's about 4-5

lean juniper
#

but i cant add a scipr variable

ocean beacon
serene terrace
tall compass
tender vaporBOT
wraith berry
modern spire
#

Can someone please answer my question? How can I reset just 1 placeholders data? Wipe it clean for everyone

vestal marsh
#

When ever I put my bungee servers into config.yml with bungeecord expansion installed and then reload with /papi reload and then the config gets reset and the placeholders dont work.

wraith berry
# inner wolf Help

Parsing it the first time (/papi parse me %ajlb_lb_vault_eco_balance_1_alltime_name%) gives nothing at all, so I guess parse it once using the command and try but no guarantee that it'll work for everyone.

wraith berry
#

I ran the command /papi parse me %ajlb_lb_vault_eco_balance_1_alltime_name% and opened the menu, that way it worked

inner wolf
#

Thank You

wraith berry
#

To be sure you can also add update to the item so it updates from the steve head if it isn't loaded already

wraith berry
inner wolf
vestal marsh
#

bungee:
- Hub
- Survival
- Practice
check_interval: 30

#

is this the right format?

wraith berry
vestal marsh
# wraith berry do you get any errors in the console regarding it?

21.05 13:52:41 [Server] ERROR Cannot load plugins/PlaceholderAPI/config.yml
21.05 13:52:41 [Server] INFO org.bukkit.configuration.InvalidConfigurationException: while parsing a block collection
21.05 13:52:41 [Server] INFO in 'string', line 20, column 5:
21.05 13:52:41 [Server] INFO - Hub
21.05 13:52:41 [Server] INFO ^
21.05 13:52:41 [Server] INFO expected <block end>, but found Key
21.05 13:52:41 [Server] INFO in 'string', line 23, column 5:
21.05 13:52:41 [Server] INFO check_interval: 30
21.05 13:52:41 [Server] INFO ^

tender vaporBOT
inner wolf
wraith berry
vestal marsh
#

said it in the error

#

but still messed up

#

where does the check intervail go?

wraith berry
vestal marsh
#

but the placeholders still wont work on scorebaord and tab

#

with reloading them

wraith berry
#

What placeholder are you using?

glossy fox
#

i keep getting an error and its something to do with the bungee expansion, anyone know how to fix it?

java.lang.IllegalStateException: java.io.EOFException
        at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:449) ~[server.jar:git-BurritoSpigot-"cb667b1"]
        at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:113) ~[?:?]
        at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:427) [server.jar:git-BurritoSpigot-"cb667b1"]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:2203) [server.jar:git-BurritoSpigot-"cb667b1"]
        at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(PacketPlayInCustomPayload.java:27) [server.jar:git-BurritoSpigot-"cb667b1"]
        at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(PacketPlayInCustomPayload.java:7) [server.jar:git-BurritoSpigot-"cb667b1"]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-BurritoSpigot-"cb667b1"]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-BurritoSpigot-"cb667b1"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:776) [server.jar:git-BurritoSpigot-"cb667b1"]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [server.jar:git-BurritoSpigot-"cb667b1"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:715) [server.jar:git-BurritoSpigot-"cb667b1"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:618) [server.jar:git-BurritoSpigot-"cb667b1"]
        at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.io.EOFException
vestal marsh
wraith berry
#

make sure to put it both in the expansions folder as well as bungeecord plugins folder

vestal marsh
wraith berry
#

any errors?

vestal marsh
#

only crashes when its in plugins folder

#

and not in the hub server in expansions

wraith berry
#

Are you sure it's in the bungeecord server's plugins folder and not the other servers'?

vestal marsh
#

I can send u pic of it in dms if u want

wraith berry
#

What does it say when you try to join the server?

vestal marsh
vestal marsh
wraith berry
#

did you try restarting all the servers?

vestal marsh
#

.05 14:30:37 [Server] INFO [TheSenseiChiken] disconnected with: Proxy lost connection to server.
21.05 14:30:37 [Server] INFO [TheSenseiChiken] -> UpstreamBridge has disconnected

vestal marsh
wraith berry
#

Alright well try that and see if it works

vestal marsh
#

does it have to do that some of my servers of different versions

wraith berry
#

Not sure what could be causing the issue :/

vestal marsh
wraith berry
#

Can you do /papi reload and then /papi dump

wraith berry
#

Can you try doing /papi register AdvancedBungee-Expansion-1.0.0_ureF5fm.jar

#

Check the console for errors as well

tender vaporBOT
# vestal marsh https://pastebin.com/nwe9zuXD
Possible Solution Found:

The plugin (or program) you are trying to use was compiled using a newer Java version than the one you using.
To find what version you need, start from 52 which is Java 8 and for example, 60 is Java 16. (8 + 8 = 16 => 52 + 8 = 60)

wraith berry
vestal marsh
#

ok

#

well

#

how do I do the bungee expansion

#

bc i have done everything correct I believe

wraith berry
#

delete the advancedbungee one and try to register the normal Bungee expansion, see if it also throws the same error

vestal marsh
#

i have already

#

no errors

wraith berry
#

do /papi dump and make sure it says it's registered

vestal marsh
#

21.05 14:56:16 [Server] [INFO] TheSenseiChiken issued server command: /papi reload
21.05 14:56:16 [Server] [INFO] [PlaceholderAPI] Placeholder expansion registration initializing...
21.05 14:56:16 [Server] [INFO] [PlaceholderAPI] Fetching available expansion information...
21.05 14:56:16 [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: luckperms [5.4-R2]
21.05 14:56:16 [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: vault [1.8.1]
21.05 14:56:16 [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: bungee [2.2]

torpid tusk
#

someone can help me understand how to show this in vanilla Minecraft

{"translate":"%worldguard_region_name_capitalized_1%"}

wraith berry
vestal marsh
wraith berry
#

I don't think so

austere hawk
#

hi, i have this error:
Method does not override method from its superclass:126 ,

'register()' in 'it.me.vincyxiroff.afkrewards.AFKReward.AFKTimePlaceholder' clashes with 'register()' in 'me.clip.placeholderapi.expansion.PlaceholderExpansion'; attempting to use incompatible return type:142

Cannot resolve method 'registerPlaceholder' in 'PlaceholderAPI':147

the lines of code:
126: " @Override
public String onRequest(Player player, String params) {
if (player != null) {
return formatTime(afkTime);
}
return "";
}"

142: " public void register() {
registerPlaceholder();
}"

147: " private void registerPlaceholder() {
PlaceholderAPI.registerPlaceholder(getIdentifier(), this);
}
}
}"

vivid sparrow
#

you are probably mixing the APIs

vestal marsh
#

expansions: vault: formatting: thousands: k millions: M billions: B trillions: T quadrillions: Q bungee: tracked_servers: - Hub - Survival - Practice check_interval: 10

Why is the bungee extension not working?

#

no errors

glossy fox
#

anyone know why my server shows another player if i do %bungee_total% its just me but it says "2", if i log my alt on. it says 4.

glossy fox
inner wolf
#

I'm trying to make a bossbar that makes an animation that decreases for example from 100, 80, 60, 40, 10.

#
bossbar:
  bars:
    MyBossbar:
      style: "PROGRESS"
      color: "BLUE"
      progress: "100"
      text: "This bossbar is only visible in world 'world'"
      display-condition: "%world%=world"```
#

How would it be?

vivid sparrow
#

you probably can't

ocean beacon
#

make a animation text that return number

#

and put it in the progress

modern spire
#

Can someone please answer my question? How can I reset just 1 placeholders data? Wipe it clean for everyone

vivid sparrow
#

?

vivid sparrow
modern spire
vivid sparrow
#

did you read my answer?

modern spire
#

yes

#

but like is there a way to delete the data

#

or do I just need to manually delete it for all users

stone basin
#

I have a problem with deluxemenus, and it is that it does not recognize these requirements. even if you have permission "deluxemenus.protectionn" Keep running right click commands

#
open_command:
  - proteccion
  - protection
  - vemoxprotection
  - protecciones
open_commands:
    - '[sound] block_beacon_activate'
size: 27
items:
  '1':
    display_name: " "
    material: gray_stained_glass_pane
    slots:
      - 0
      - 1 
      - 2 
      - 3 
      - 4 
      - 5 
      - 6 
      - 7 
      - 8 
      - 9
      - 10
      - 11
      - 12
      - 13
      - 14
      - 15
      - 16
      - 17
      - 18
      - 19
      - 20
      - 21
      - 22
      - 23
      - 24
      - 25
      - 26
  '2':
    display_name: "&6&lProteccion Basica"
    material: COAL_ORE
    slots:
      - 10
    lore:
      - '&aDa click para &badquirir!'
      - '&dPrecio: &6¡Gratis!'
      - '&7Area 8X8'
    click_requeriment:
      requirements: 
        has_not_perm:
          type: "!has permission"
          permission: deluxemenus.freeprotectionn
      deny_commands:
        - '[console] msg %player_name% &4Ya adquiriste una proteccion gratuita anteriormente!'
        - '[console] msg %player_name% &dCompra tu rango &bVIP &dpara desbloquear todas las protecciones!'
        - '[close]'
    click_commands:
    - '[console] ps give 8 %player_name%'
    - '[console] lp user %player_name% permission set deluxemenus.freeprotection true'
    - '[close]'
austere hawk
austere hawk
#

hi im making my own plugin for my servers (npcs with server stats ontop of them). but for the hideadnseek server the stat i wanna grab is a placeholder. and i cant grab that placeholder from the hub server (where the npcs are going to go). i tried using mysql and saving the placeholder value everytime it changed but that didnt work.

wanton topaz
#

premium vanish have got huge problem with placeholderapi

wanton topaz
#

.

sharp bloom
errant iron
#

so go talk to the premium vanish devs!

analog warren
#

Hi! I need some support, I'm trying to use pinger on a bungee network, but every server that isn't localhost returns offline. (I tried hypixel.net, testplugins.com, 127.0.0.1 and localhost same result)

wanton topaz
sharp bloom
#

its 2.8.2

#

there r newer than this

wanton topaz
wanton topaz
#

oh my got

#

wrong jar sorry

errant iron
#

He needs to implement the getPlugin method

austere hawk
analog shuttle
#

Hi, can someone help me with a problem with floodgate expansion?
I just downloaded it and when I run /papi reload I get this error:

[20:04:11] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[20:04:11] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[20:04:11] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms [5.4-R2]
[20:04:11] [Server thread/WARN]: [PlaceholderAPI] Failed to load expansion floodgate. Identifier is already in use.
[20:04:11] [Server thread/WARN]: [PlaceholderAPI] Cannot load expansion floodgate due to an unknown issue.
[20:04:11] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: player [2.0.4]
[20:04:11] [Server thread/INFO]: 2 placeholder hook(s) registered!```
mint fable
#

so just delete it from the expansions folder

analog shuttle
raw fable
#

Any way to have %luckperms_expiry_time% come back as only seconds? So 30 mins left should only appear as 1800

tacit tusk
#

Hello, is it possible to somehow get a translation using a javascript extension?

vivid sparrow
#

?

high dragon
#

Can someone give me an exemple of how to use %checkitem_getinfo% please

mint fable
#

It seems that it failed to load because the identifier was already being used, presumably by another expansion instance

#

hence why I thought it might've been included, but it seems that it is not included after checking your dump

#

I would try to load the expansion again, making sure only one instance is in the folder.
If that doesn't work I would recommend turning debug to true in the placeholderapi config.yml file, starting the server, then sending a startup log over

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

mint fable
#

I'm off to work for now, but many people are around that could assist you

mint fable
mint fable
#

%checkitem_getinfo:mainhand_mat:,nameequals:% would return something like
mat: STONE | name: &aStone

high dragon
#

Okay cool

#

Thankss

mint fable
#

yep, any other questions just feel free to ask

#

i'm off to work for now tho

#

o/

high dragon
#

I am at work now, so i cant check it now hahaha

austere hawk
#

how can i use the api to check if a placeholder value changes? i wanna store it in a db with my plugin every time the placeholder changes

vivid sparrow
#

Papi is not aware of data updates

austere hawk
#

hmm ok

#

how else can i do it then

vivid sparrow
#

¯_(ツ)_/¯

austere hawk
#

basically i have a hide and seek server and a lobby server, i want to fetch a placeholder from the hideadnseek server and use it on the lobby server

vivid sparrow
#

And?

austere hawk
#

i will use that placeholder to put on an npc to get to the server. so the npcs name would be
HideAndSeek
Players Online: placeholder here

#

I need to get a placeholder from the hideandseek plugin, sorry i didnt elaborate on that

vivid sparrow
#

You can query the placeholders from the other server whenever you want to update the text where they are used

austere hawk
#

Ok thanks

vivid sparrow
#

Not with papi directly, but with some addon, I think there's one on spigot called "bungee papi" or whatever

tender vaporBOT
misty pier
#

I'm having an issue with my discordsrv bot's status where I try to use the placeholder %playerlist_online,normal,yes,amount% (it's an example on the discordsrv wiki) and it doesn't show the number just the typed out placeholder

#

I asked discordsrv about it and they said it wasn't an issue with them

mint fable
austere hawk
#

Hello I would like to ask one thing, in my server I use the plugin for example a clan section:

 - "&fClan: &a%simpleclans_clan_color_tag%"

Would it be possible that if the value for example %simpleclans_clan_color_tag% is None I can perzonalize what will appear instead of it appearing blank? and saying something like No Clan or similar, if the answer is yes could you guys link me the docs for this?

mint fable
#

you can use changeoutput

#

@austere hawk this

austere hawk
mint fable
#

@austere hawk did you see this

austere hawk
#

Perfect

mint fable
austere hawk
#

Thanks dude

mint fable
#

I use this for converting playtime's 5w 2d 1h 5m 2s format to seconds

var time = "%playtime_time%";
var weeks = parseInt(time.match("(?:\\d*(?=w))"));
var days = parseInt(time.match("(?:\\d*(?=d))"));
var hours = parseInt(time.match("(?:\\d*(?=h))"));
var minutes = parseInt(time.match("(?:\\d*(?=m))"));
var seconds = parseInt(time.match("(?:\\d*(?=s))"));
var total = 0;
if(!isNaN(weeks))
  total += weeks*604800;
if(!isNaN(days))
  total += days*86400;
if(!isNaN(hours))
  total += hours*3600;
if(!isNaN(minutes))
  total += minutes*60;
if(!isNaN(seconds))
  total += seconds;
total.toFixed();
#

it's a javascript, usable by the javascript expansion

#

you need to download it manually to use it @raw fable this

raw fable
#

Appreciated, I will do that then.

mint fable
#

you will have to convert it a little bit

#

if you send me the exact format luckperms returns I can help

#

just set a super long expiry time like 2 years

#

see what it says

ember canopy
#

hello I am having an issue where when I use %player_ping% it shows me at 180 but client wise and when I use winMTR to connect to the host its around 70 ping

languid gale
#

does chatchat support hex colors?

languid gale
#

got that figured out, how do i remove it so if im opped it wont just show owner rank?

misty pier
deep hollow
#

Hey all 🙂

#

anyone knows how can I get with a placeholder using CheckItem or Formatter_text a enchantment level from lore? Like parsing only 7

#

I tried checkitem, formatter text with nested

#

but I don't have ideas :/

vivid sparrow
#

you really hate your server's performances, don't you kek

#

perhaps ask the developer of the enchantments plugin if they can add some placeholders for that

deep hollow
deep hollow
vivid sparrow
#

F

deep hollow
#

😫

mint fable
#

or, by chance, are the enchantments also stored in nbt?

#

It's a little complicated, but avoiding javascript should be possible i think

deep hollow
tender vaporBOT
deep hollow
mint fable
#

checkitem retrieves specific nbt

#

%checkitem_getinfo:mainhand_nbtint:TokensJackhammer=% should return 11

deep hollow
#

Hmm it returns empty string 🤔

#

weird

mint fable
deep hollow
mint fable
#

sorry, with the jackhammer part

mint fable
deep hollow
#

Oh

mint fable
#

%checkitem_getinfo:mainhand_nbtstrings:TokensJackhammer=% should return 11

#

my b

#

one of those should work

deep hollow
mint fable
#

as long as you have the latest checkitem

#

download it rq

#

just to make sure

deep hollow
#

Sure 👍 give me 1m

mint fable
#

yep

#

/papi ecloud download checkitem will update it fyi

#

your tier is gone thonking

rigid skiff
#
java.lang.IllegalStateException: java.io.EOFException
        at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:449) ~[guava-17.0.jar:?]
        at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
        at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:427) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(SourceFile:2465) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(SourceFile:39) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(SourceFile:18) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils.lambda$ensureMainThread$0(SourceFile:52) ~[spigot.jar:git-iSpigot-PaperEdition]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at org.imanity.imanityspigot.final .cN.run(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at org.imanity.imanityspigot.final .cL.executeTask(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at org.imanity.imanityspigot.final .cM.executeTask(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at org.imanity.imanityspigot.final .cL.executeNext(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.MinecraftServer.executeNext(SourceFile:1881) ~[spigot.jar:git-iSpigot-PaperEdition]
        at org.imanity.imanityspigot.final .cL.awaitTasks(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.MinecraftServer.sleepForTick(SourceFile:1854) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(SourceFile:791) ~[spigot.jar:git-iSpigot-PaperEdition]
        at java.lang.Thread.run(Thread.java:829) ~[?:?]
Caused by: java.io.EOFException
        at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:345) ~[?:?]
        at java.io.DataInputStream.readUTF(DataInputStream.java:594) ~[?:?]
        at java.io.DataInputStream.readUTF(DataInputStream.java:569) ~[?:?]
        at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:447) ~[guava-17.0.jar:?]
        ... 17 more```
deep hollow
#

even in with latest

mint fable
#

maybe put something after the =? just anything blank

deep hollow
#

wtf 😂

mint fable
#

yes i thnik so

#

it makes sense

#

all arguments just have to be filled

deep hollow
#

it works setting a random string

#

after =

mint fable
#

same for when you're doing [meta] actions

#

even if you remove meta, you need a value to fill the argument

#

🤷‍♂️

#

but it works!

#

😄

deep hollow
#

Yeah, that's weird haha

#

thanks and much appreciated! 😄

mint fable
#

of course!

#

👍

rigid skiff
#
java.lang.IllegalStateException: java.io.EOFException
        at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:449) ~[guava-17.0.jar:?]
        at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
        at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:427) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(SourceFile:2465) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(SourceFile:39) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(SourceFile:18) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils.lambda$ensureMainThread$0(SourceFile:52) ~[spigot.jar:git-iSpigot-PaperEdition]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at org.imanity.imanityspigot.final .cN.run(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at org.imanity.imanityspigot.final .cL.executeTask(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at org.imanity.imanityspigot.final .cM.executeTask(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at org.imanity.imanityspigot.final .cL.executeNext(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.MinecraftServer.executeNext(SourceFile:1881) ~[spigot.jar:git-iSpigot-PaperEdition]
        at org.imanity.imanityspigot.final .cL.awaitTasks(Unknown Source) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.MinecraftServer.sleepForTick(SourceFile:1854) ~[spigot.jar:git-iSpigot-PaperEdition]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(SourceFile:791) ~[spigot.jar:git-iSpigot-PaperEdition]
        at java.lang.Thread.run(Thread.java:829) ~[?:?]
Caused by: java.io.EOFException
        at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:345) ~[?:?]
        at java.io.DataInputStream.readUTF(DataInputStream.java:594) ~[?:?]
        at java.io.DataInputStream.readUTF(DataInputStream.java:569) ~[?:?]
        at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:447) ~[guava-17.0.jar:?]
        ... 17 more```
misty pier
#

still having trouble with the %playerlist_online,normal,yes,amount% placeholder in the discordsrv bot's status

ocean beacon
#

%nested_{conversion_16:10_{string_substring_0,2_{changeoutput_=_input:{string_length_{deluxemenus_meta_hex-to-rgb_STRING}}_matcher:6_ifmatch:{deluxemenus_meta_hex-to-rgb_STRING}_else:ffffff}}}% the result is %255%

#

why % still there

#

utils will return the same thing

junior musk
#

that's because you don't need the extra {} around the first placeholder

ocean beacon
#

ah, i forgot

ocean beacon
#

%nested_conversion_16:10_{string_substring_0,2_{changeoutput_=_input:{string_length_{deluxemenus_meta_hex-to-rgb_STRING}}_matcher:6_ifmatch:{deluxemenus_meta_hex-to-rgb_STRING}_else:ffffff}}% work fine but i cant open menu when item have this placeholder

mint fable
#

maybe nested_3_ @ocean beacon

#

goes pretty deep

#

dm, str, chang, str

#

maybe 4

torpid tusk
#

Hello thepig
how this work %string_replaceCharacters_<configuration>_<string>% example is i what to replace _ w -

austere hawk
#

Hi guys anyone who has experience with SimpleClans and ChangeOutput I am using the latest version of PH and 1.19.4 in minecraft and I am trying that if the user is not in a clan it says "No clan" and if he is in a clan it returns the tag, I am following exactly the changeoutput docs.

"&fClan: %changeoutput_contains_input:%simpleclans_clan_name%_matcher:[a-zA-Z0 9]_ifmatch:&a%simpleclans_tag_label%_else:&cNo Clan%"

or

"&fClan: &a%changeoutput_equals_input:%simpleclans_tag_label%_matcher:_ifmatch:%simpleclans_tag_label%_else:&cNo Clan%"

And instead of telling me "No Clan" it tells me Clan: &changeoutput_contains I have already tried everything I have even tried the Javascript module and it still does not work, I have correctly installed the ChangeOutput /papi ecloud download changeoutput and the GuildClans. Can anyone help me to achieve this? Thanks guys for your time

mint fable
torpid tusk
#

Thanks

mint fable
#

ex: %changeoutput_contains_input:{simpleclans_clan_name}_matcher:...

ocean beacon
mint fable
#

it doesn't work for all expansions, but most support it like that

ocean beacon
#

my bad

#

{} instead of %% if it inside a %%

ocean beacon
mint fable
#

Anh the first one too

austere hawk
mint fable
#

%changeoutput_equals_input:{simpleclans_tag_label}_matcher:_ifmatch:&cNo Clan_else:{simpleclans_tag_label}%

ocean beacon
austere hawk
#

Thanks you guys

#

Much love

ember canopy
#

hello I am having an issue where when I use %player_ping% it shows me at 180 but client wise and when I use winMTR to connect to the host its around 70 ping

vivid sparrow
#

The expansion simply returns what the game does. It doesn't do anything else.

misty pier
#

PlayerList placeholders aren't working in the DiscordSRV bot status does anyone know why that's happening

vivid sparrow
#
  1. Do other placeholders work?
  2. Is the placeholder working in-game?
misty pier
#

I'll check but how would I see if the placeholder is working in-game

vivid sparrow
#

/papi parse me %placeholder%

misty pier
#

It just sends back the placeholder in chat

vivid sparrow
#

yeah that means it is invalid

misty pier
#

What should I do?

vivid sparrow
#

send the placeholder

misty pier
#

%playerlist_online,normal,yes,amount%

vivid sparrow
#

looks like you need to define the list in config and then use %playerlist_<name-of-the-list>_amount%

misty pier
#

If I wanted to exclude players that are vanished the placeholder would be %playerlist_cansee_amount% right

vivid sparrow
#

the wiki has an example for a staff list

#
  lists:
    # The name of this list is "staff"
    staff:
      # We only want online staff members
      type: ONLINE
      # If we're part of the list, we want to be included
      included: true
      filters:
      # Does the player have the group.staff permission? 
      - PERMISSION:group.staff
      # Can you see the player? (usually managed by vanish plugins)
      - CANSEE```
#

though that might not work on discordsrv

#

because it would need a player to check what players it can see

misty pier
#

Hmm

#

So if that list is configured the cansee placeholder should exclude vanished players?

#

Assuming it would work on discordsrv

vivid sparrow
#

It will probably not work on discordsrv, but worth a try.

misty pier
#

Yeah you're right it didn't work

#

Gonna try %playerlist_member_amount% and see if that'll work

misty pier
#

That didn't work either ✊😔

vivid sparrow
#

@misty pier if you use essentials, there's %essentials_safe_online%

misty pier
#

ooo okay I'll try that

misty pier
#

It kinda worked the placeholder isn't there anymore there's just no number or anything

sharp bloom
#

is there any placeholder that checks for the durability of an item and returns yes if its full?

#

i m aware of the %player_item_in_offhand_durability% but its not what i need :/

thick lichen
tender marsh
#

how can i connect with discord direct live? our community has been hacked

tender vaporBOT
#
FAQ Answer:

Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.

peak token
#

hey

#

i use deluxemenus and PAPI to show whetehr a server is online or not. however i have noticed that when i open it sometimes, all my servers show offline until i open it again a few times

#

or sometimes its just once that i have to reopen it

#

but is there a way to make it instant?

ocean beacon
peak token
ocean beacon
peak token
#

Thats the menu. I have it replicated it on all servers with different lores

ocean beacon
#

maybe you should change the update of pinger to 1

#

to make it ping faster

#

@peak token

peak token
#

it already is 1

#

but theres still some delay

#

where the player sometimes have to open it twice until it shows

#

i wish there was some proxy addon or smth idk that makes it instant

misty pier
#

does anyone know why the %essentials_safe_online% placeholder would be an empty value?

thin veldt
#

it's spamming errors

#

[19:13:56] [Server thread/WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.11.2 generated an exception whilst handling plugin message
java.lang.IllegalStateException: java.io.EOFException
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:408) ~[server.jar:git-Spigot-79a30d7-f4830a1]
at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:426) [server.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:2579) [server.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.PacketPlayInCustomPayload.a(SourceFile:58) [server.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.PacketPlayInCustomPayload.a(SourceFile:8) [server.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-79a30d7-f4830a1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [server.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [server.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [server.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [server.jar:git-Spigot-79a30d7-f4830a1]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [server.jar:git-Spigot-79a30d7-f4830a1]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:346) ~[?:?]
at java.io.DataInputStream.readUTF(DataInputStream.java:595) ~[?:?]
at java.io.DataInputStream.readUTF(DataInputStream.java:570) ~[?:?]
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:406) ~[server.jar:git-Spigot-79a30d7-f4830a1]
... 14 more

onyx orchid
#

iridium skyblock placeholder?

onyx orchid
#

=papi iridiumskyblock

sour igloo
#

What is this error?

midnight cliff
#

Hello! Im looking for a bit of help with Placeholder API. Im using it with my scoreboard. When i change out presets in the scoreboard for example i want to add player ping so i replace the exisiting preset with %player_level% and all it does is show up with that on the scoreboard and not what the players ping actauly is.

#

any fix to this!?

#

Happens to any text i put in there. I have vault installed and i use vault APIs that it gives and they dont work either

midnight cliff
#

Update to this question ^^^^ I solved for API for player but for some reason the vault ones are not working. Culd that mean vault is not properly installed ?

midnight cliff
#

yeah not sure what the issue was at the time.

sullen spear
#

When you want to display placeholderapi placeholders

#

You need to download the expansion

#

/papi ecloud download Vault

sick hazel
#

Hey um I'm developing my own plugin and want to upload custom placeholder to ecloud so that the scoreboard plugins can recognize my placeholder and update the information.

sharp jay
#

Okay

sick hazel
#

So what should I do with it?

mint fable
#

I would recommend putting the expansion internally

#

vs. on the ecloud

#

if it's your own plugin

sick hazel
#

Well I’d want to, but the plugin that I’m using for my scoreboard isn’t mine

misty pier
#

I'm trying to use %essentials_safe_online% in my discordsrv bot's status but it's showing a blank value

#

Like instead of being "8 players" or whatever it's just "players"

mint fable
sick hazel
#

Oh so that could be done without utilizing ecloud

mint fable
#

correct

#

and no need for your plugin users to require an additional download

sick hazel
#

So if I want to put %player_level% placeholder from my plugin to scoreboard plugin, I just have to put %player_level% without any additional work

mint fable
#

I recommend not using player as your identifier

#

it is a commonly used expansion

#

your identifier should be unique to your plugin

sick hazel
#

Oh okay

mint fable
#

%jeneflplugin_level%

#

or

#

%jeneflplugin_player_level%

sick hazel
#

Oh okay

mint fable
#

params will be everything after jenflplugin_

#

more details on the wiki ofc

sick hazel
#

I’m just really curious and surprised how placeholderAPI is automatically updating my placeholder into other users’ plugins

mint fable
#

plugin requests placeholder from papi > placeholderapi finds which expansion it hooked into that the identifier matches, if any > calls upon that expansion to get information

#

basic api

#

all it is

#

you can take a look at all the code if you want, it is on the github

#

idk how much that will help you understand it

#

but

#

probably better written guides and youtube videos

sick hazel
#

I see

#

Quite interesting

ocean beacon
#

how to change RGB to hex with placeholder

junior musk
#

what?

wet basinBOT
#

@vivid sparrow Unknown expansion.

vivid sparrow
#

RGB to hex is just conversion of each value of the RGB

#
RGB: 255 0  0
HEX: FF  00 00```
#

%conversion_10:16_255% will return FF => %conversion_10:16_255%%conversion_10:16_0%%conversion_10:16_0% should be FF0000 - though idk if it ads an extra 0

mint fable
#

was gonna say, conversion can go both ways 😉

#

if your format is 255,0,0, though, might be tricky. You can use string_indexof to find the index of the commas though, so you can substring with it

smoky spoke
#

does someone have the gif where it shows you how to search for the problem plugins efficiently? please ping me so i can check it if found

stray cosmos
#

has anybody got a clue what the current date placeholder is? just want it to show todays date on the scoreboard and update for the existing player

sour igloo
trim mist
pallid kestrel
#

I have a problem

#

So im trying to use AJLeaderboards to make a top blocks mined leaderboard.

#

The placeholder would return 0 or a random number

#

We tried redownloading both plugins. It did nothing.

hardy quiver
#

I'm with @pallid kestrel, /papi parse me %statistic_mine_block% provides "0" for me currently, no matter how many blocks I mine, and even during relogging/server restarts, it doesn't update.

pallid kestrel
#

We are using the "Statistics" expansion by the way.

#

Yeah

#

@sharp parcel just uninstalled placeholer api

#

@hardy quiver

hardy quiver
sour igloo
tender vaporBOT
sour igloo
#

U sorry for tagging

queen salmon
#

Are there any existing placeholders for whether you're currently in a raid or not? Tried looking around but could not find one

sour igloo
#

Error is spamming abnormal

#

Because of bungee expansion

sullen fulcrum
#

how do i separate zeros in vault_eco_balance with a comma?

dusk warren
#

how do i fix papi reload not working

#

no expansions work

#

even if none installed reload still doesnt work

#

[13:11:11 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[13:11:11 INFO]: [PlaceholderAPI] Fetching available expansion information...

dusk warren
#

also dump doesnt work

frank sinew
#

After a restart of my hub, %bungee_survival% takes about 15 minutes before it shows anything over 0 players. But %bungee_skyblock% will show it immediately. Why is this?

tender vaporBOT
#
Valid Config!

VisherRyz, I checked your config and, it's valid!

+ Correctly Formatted```
frank sinew
tender vaporBOT
sudden slate
vivid sparrow
#

the interval should be fixed for all servers

sudden slate
#

@frank sinew ^

frank sinew
#

Whereas skylock (and my other servers) ping normally

#

So if I restart hub, survival player count will show 0 for 15m

#

Skyblock will ping correctly after 30s

vivid sparrow
#

do you get any errors?

frank sinew
#

No

mental nest
#

This may be a dumb question... Is there a way to use papi (particularly %server_has_whitelist%) in a command block so that it would turn on a redstone lamp if true?

wheat ibex
sharp jay
#

=papi essentials

sharp jay
sharp jay
wheat ibex
tender vaporBOT
# wheat ibex no
Hey!

Please respect the rules, be patient and don't ping staff members!

boreal crow
#

I am very confused

#

so i did papi ecloud download vault
then papi reload
it didnt work
so i restarted
still doesnt work
so i check /papi list
and its not there
so i do /papi register Expansion-vault.jar
and it fails
so i download an older version manually from ecloud website
then restart server
and its still broken

valid sentinel
#

have placeholder like @a ?

#

i want to run command give quest to all player

junior musk
#

if the quest plugin doesn't support it, you can use a plugin like PsudCommands

signal bramble
#

can i get player statistics of an offline player?

vivid sparrow
#

Yes but only in 1.15+ I believe

boreal crow
#

can anyone help me?

gilded marlin
#

How Can download expansion rankup?

boreal crow
#

can anyone help me?

junior musk
#

?help

tender vaporBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

boreal crow
#

I gave details 6 hours ago

junior musk
#

oh sorry, didn't see

#

can you show your console when you do /papi reload?

boreal crow
#

it just says that I've run the command

#

there are no errors

junior musk
#

can you send your server logs?

#

?paste

tender vaporBOT
#
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

junior musk
#

and the link of /papi dump

boreal crow
#

I just tried to post an image but I cant

#

gimme a sec I'll upload to imgur

junior musk
#

?imgur

tender vaporBOT
#
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.

junior musk
#

yeah

smoky raft
#

hi

#

how get date and time ?

vivid sparrow
#

%server_time_<format>%

smoky raft
vivid sparrow
#

Go to examples

plucky cairn
misty pier
#

Would anyone know why the %essentials_safe_online% placeholder has a blank value?

#

So instead of it saying like "8 players" it just says " players"

junior musk
#

only show players that aren't vanished iirc

vivid sparrow
#

Yes

misty pier
#

Should I try %essentials_online% and see if I can get a number?

misty pier
#

Still getting a blank value

junior musk
#

where are you using it? and did you try with /papi parse me %essnetials_safe_online%?

#

send a screenshot if possible

#

?imgur

tender vaporBOT
#
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.

misty pier
#

I'm trying to use it in my discordsrv bot's status and yes I can get on and check that in a second

misty pier
#

it just sends a 2 in chat

junior musk
#

oh yeah, forgot, sorry

#

if it works in /papi parse, it's likely to be an issue with DiscordSRV then I guess

#

or not actually, the placeholder returns an empty string when the player is null, so that it won't work when sending the placeholder to Discord through DiscordSRV

#

then create a list like ```yml
lists:
safe_online:
type: ONLINE
included: false
filters:
- "PLACEHOLDER:%essentials_vanished%||no"

restive anchor
#

Hi

vivid sparrow
#

If you would post the error here instead of sending a ss of it, @tender vapor woul've helped you

#

Looks like you are shading papi in your plugin's jar

restive anchor
#

Wdym

tender vaporBOT
# restive anchor Sorry
Hey!

Please respect the rules, be patient and don't ping staff members!

night vale
mint fable
lusty swan
#

%randomnumber_number_min_max% hey can someone help me with formatting this by chance

#

im very confused on how to get this to work

stone edge
#

what does "formatting this by chance" means?

lusty swan
#

getting it to display a number instead of a placeholder

#

also love your plugins! i bought the pro version of tags and levels!

night vale
tender vaporBOT
night vale
#

ok sorry

mint fable
night vale
#

/papi parse NBFLN %skript_code%

#

Are you sure this will work?

mint fable
#

Did you test it?

night vale
#

how create Placeholder for generating link code skript
command /discord [<string>]:
trigger:
arg-1 = "link":
{discord::%uuid of player%} is set:
send "{@prefix} &cYour account is already linked!"
stop
set {_code} to random integer between 11111 and 99999
set {code::%uuid of player%} to {_code}

#

need __code

#

Can you do that and send it to me

mint fable
#

I have never worked with skript, so unfortunately I can not help you

#

Other than linking the expansion I did earlier, I can't do anything

astral galleon
#

HI GUYS

#

%localtime_time_HH:MM:ss%

#

what is placeholder

#

?

#

how a install?

ocean beacon
trim nest
#

Hi there

#

Can someone help me figure out what placeholder to use for a formatted version of %player_first_played_formatted%

Currently displays:
Date / time

I would love for it to just show the date

trim nest
#

sorry for the ghost ping 😅

static shard
#

Hello, I'm trying to download Math Expantion but when I'm doing /papi reload
I got java.lang.UnsupportedClassVersionError: com/ezylang/evalex/EvaluationException

#

any Ideas?

#

@help

arctic loom
#

@static shard Did you tag me? If so, please don't delete tags as ghost pings are one of the most annoying things ever

arctic loom
jagged grove
vivid sparrow
#

/papi dump

jagged grove
jagged grove
#

I only switched server host and it was working perfectly fine before, so idk why it would suddently start doing this

vivid sparrow
#

switching hosts would not cause this though

regal garnet
#

hi is there like a option or a feature OR A PLUGIN to format placeholders like instead of NORMAL FONT i want sᴍᴀʟʟ ᴄᴀᴘ ғᴏɴᴛ ijn placeholders

austere hawk
#

Hello there, I wanted to ask if there is any placeholder that registers harvested crops? I tried %statistic_mine_block:<material>% with %statistic_mine_block:wheat% it doesn't work... Is there anyone who Can help me out?

#

Can be plugins or skripts too I don't mind 🙂

mint fable
#
expansions:
  string:
    replacements:
      small-numbers:
        '0': 
        '1': 
        '2': 
        '3': 
        '4': 
        '5': 
        '6': 
        '7': 
        '8': 
        '9': 

example of how the papi config should look

regal garnet
#

ok :)

#

I dont understand

mint fable
regal garnet
#

Ohhh nope

#

Ill add it

#

Then?

mint fable
mint fable
#

expansions: will already be there

#

and maybe string: too

#

small-numbers is the identifier

regal garnet
#

What about hex codes for gradeints

mint fable
#

%string_replaceCharacters_small-numbers_{your_placeholder}%

regal garnet
#

I dont undersrand how those placeholders work

mint fable
#

umm

#

idk about hex codes

#

because you're gonna replace the characters lol

mint fable
regal garnet
#

String

mint fable
#

%string_replaceCharacters_<configuration>_<string>% - Replace certain characters in a string as defined in config

regal garnet
#

But how do i use them in ex scoreboard

regal garnet
#

But like use them
%string_replaceCharacters_config_player_name% or what

mint fable
#

to parse a placeholder inside another placeholder, you will need to wrap it in {} (if supported by the expansion)

#

so you surround player_name in {}

#

config gets replaced with whatever you define in the placeholderapi config.yml

mint fable
flat plume
#

Is there a way to actually download an ecloud placeholder in a plugin without having to execute /papi ecloud download? (Player, Luckperms).

#

Any help is aprecciated!

tender vaporBOT
#
Placeholderapi
Useful Links & Information:

A resource that allows information from your favorite plugins be shown practically anywhere!
Spigot
Wiki
Placeholder-List
GitHub
eCloud

mint fable
#

on the ecloud

flat plume
#

that doesnt exactly help me @mint fable ?

#

Im not looking to make my own extension.... im looking for a way to do /papi ecloud download Player and /papi ecloud download Luckperms WITHOUT having to run the commands....

mint fable
#

oh... I don't think so

#

but I feel you could just run the console commands

flat plume
stone raptor
#

Will PAPI ever have a plugin add-on to automatically update expansions?

balmy marten
#

Doubtful, isn't great to auto update things on a production server in case something breaks

regal garnet
#

i still dont understand k

stone raptor
#

Then again I don't know how to manually update expansions, or don't know how to manually find out which expansions need updating or not

austere hawk
#

I need help with Crops Harvested Count

#

is there a placeholder

#

that checks/registers those?

#

I tried %statistic_mine_block:<material>% with %statistic_mine_block:wheat% it doesn't work

barren citrus
#

whenever I try to parse %vault_prefix% for an offline player it says an internal error occured. does it not support offline players? I'm using Luck Perms

valid marlin
#

i need a placeholder for my bungeecord network. it should say the max players in a specific server

#

how do i make these placeholders refresh faster

vivid sparrow
lethal breach
#

In placeholder for Worldguard, is there a way to return a value from the flags? I'm planning to create a placeholder that whenever they enter a region, it shows the name of the region. I tried using the name itself but sometimes, I have 2 words and region names doesn't have an option for space. So I'm planning to get the greeting-title value. Is that possible ?

faint veldt
#

[16:53:28 WARN]: [PlaceholderAPI] [formatter] Invalid placeholder %formatter_number_format_{player_current_exp}%
[16:53:28 WARN]: [PlaceholderAPI] [formatter] Cannot convert Collexl into a BigDecimal.

What does this mean?

ocean beacon
#

Javascript expansion, why it dont return anything

function checkNumber(number) {
  if (number > 255) {
    return "higher than 255";
  } else if (number < 16) {
    return "less than 16";
  } else {
    return "dafult";
  }
}

var number = 280;
var result = checkNumber(number);
parseFloat(result);
wraith berry
mint fable
#

you can't parse a float from any of those return values

#

parseFloat(number)

#

@ocean beacon

#

idk what you're wanting to return

ocean beacon
#

im remaking hex to rgb for it work 100% with all hex code

mint fable
#

ah

#

javascript will be slow

#

fyi

ocean beacon
#

i dont want to do the placeholder again @@

mint fable
#

ya... understandable

#

they are very long and complicated to follow

ocean beacon
#

so i use javascript to make it look easier

mint fable
#

yes, but will be slow

#

every time you call a javascript placeholder it has to start a new engine instance

#

so if you have a menu with like 10 placeholders per item....

ocean beacon
sharp raft
#

[Server thread/WARN]: [PlaceholderAPI] Cannot load expansion vault due to an unknown issue.

#

I can't add expensions like vault, luckperms?

ocean beacon
sharp raft
#

yes

stone raptor
austere hawk
#

I need help

tender vaporBOT
#

There is no time to wait! Ask your question @austere hawk!

austere hawk
#
    create a hologram at location(-309, 74, 208, world("world")) with the id "blbt"      
    add "&b&lBALANCE LEADERBOARD" to hologram with the id "blbt"
    add "" to hologram with the id "blbt"
    add "&b&l##1 %vault_eco_top_player_1% &7- &f%vault_eco_top_balance_formatted_1%" to hologram with the id "blbt"
    add "&b&l##2 %vault_eco_top_player_2% &7- &f%vault_eco_top_balance_formatted_2%" to hologram with the id "blbt"
    add "&b&l##3 %vault_eco_top_player_3% &7- &f%vault_eco_top_balance_formatted_3%" to hologram with the id "blbt"
    add "&b&l##4 %vault_eco_top_player_4% &7- &f%vault_eco_top_balance_formatted_4%" to hologram with the id "blbt"
    add "&b&l##5 %vault_eco_top_player_5% &7- &f%vault_eco_top_balance_formatted_5%" to hologram with the id "blbt"
    add "&b&l##6 %vault_eco_top_player_6% &7- &f%vault_eco_top_balance_formatted_6%" to hologram with the id "blbt"
    add "&b&l##7 %vault_eco_top_player_7% &7- &f%vault_eco_top_balance_formatted_7%" to hologram with the id "blbt"
    add "&b&l##8 %vault_eco_top_player_8% &7- &f%vault_eco_top_balance_formatted_8%" to hologram with the id "blbt"
    add "&b&l##9 %vault_eco_top_player_9% &7- &f%vault_eco_top_balance_formatted_9%" to hologram with the id "blbt"
    add "&b&l##10 %vault_eco_top_player_10% &7- &f%vault_eco_top_balance_formatted_10%"
    add "" to hologram with the id "blbt"
    add "&7&oRefreshes every 10 minutes!" to hologram with the id "blbt"        

function sort(indices: strings, values: numbers, descending: boolean = true) :: strings:
    loop {_indices::*}: 
        set {_sort::%{_values::%loop-index%}%.%loop-index%} to loop-value
    return (reversed {_sort::*}) if {_descending} is true, else {_sort::*}
``` it says ```cant understand this expression "vault_eco_top_player_#"``` i dont know why
mint fable
ocean beacon
mint fable
#

what are you trying to return

#

you are trying to parse a float from a string

#

"dafult" is not a float

#

it would error

ocean beacon
#

So i need to parse a string ?

mint fable
#

What are you trying to return?

#

are you just wanting to return "defult"

ocean beacon
mint fable
#

does not help

mint fable
#

a number?

#

a string?

ocean beacon
mint fable
#

"%placeholder%" is a string

#

a float is a number

#

parseFloat tries to parse a float value from a string value

#

so if you had "0.00" as your string value, and you wanted to turn it into a float, you use parseFloat

ocean beacon
#

I'm not learned about JS

mint fable
#

yes, it is a lot

mint fable
ocean beacon
#

my code was from chatGPT :L

mint fable
#
function checkNumber(number) {
  if (number > 255) {
    return "higher than 255";
  } else if (number < 16) {
    return "less than 16";
  } else {
    return "dafult";
  }
}
checkNumber(args[0]); #will take an argument, example %javascript_placeholder_280%
mint fable
#

do not use chatgpt for coding/programming/formatting

#

it will be inaccurate and you will have no clue why

#

like asking chatgpt to make a deluxemenus menu, it got a lot right... but also got a LOT wrong

ocean beacon
#

Ok

#

I just know a little bit Java and not ready to learn other language

mint fable
#

kind of similar, but not quite

ocean beacon
austere hawk
#

yo, placeholderapi for bungee?

junior musk
#

nope

ocean beacon
# mint fable yes

i just try to display this thing %nested_changeoutput_<_input:{math_0_{conversion_16:10_{string_substring_0,2_{deluxemenus_meta_hex-to-rgb_STRING}}}*0.6}_matcher:16_ifmatch:0{string_uppercase_{conversion_10:16_{math_0_{conversion_16:10_{string_substring_0,2_{deluxemenus_meta_hex-to-rgb_STRING}}}*0.6}}}_else:{nested_string_uppercase_{conversion_10:16_{math_0_{conversion_16:10_{string_substring_0,2_{deluxemenus_meta_hex-to-rgb_STRING}}}*0.6}}}% for know if it work

tender vaporBOT
ocean beacon
#

but it give an error

junior musk
#

use Utils

#

instead of Nested

ocean beacon
junior musk
#

because Utils is the updated version of Nested

#

and Nested had a bug that broke {placeholders} if you had more than 2 within the same {}

junior musk
#

show the error

ocean beacon
#

maybe i edited wrong

junior musk
#

some issue with the conversion placeholder, just need to find the right one now lol

ocean beacon
#

%utils_parse_changeoutput_<_input:{math_0_{conversion_16:10_{string_substring_0,2_{deluxemenus_meta_hex-to-rgb_STRING}}}*0.6}_matcher:16_ifmatch:0{string_uppercase_{conversion_10:16_{math_0_{conversion_16:10_{string_substring_0,2_{deluxemenus_meta_hex-to-rgb_STRING}}}*0.6}}}_else:{utils_parse_string_uppercase_{conversion_10:16_{math_0_{conversion_16:10_{string_substring_0,2_{deluxemenus_meta_hex-to-rgb_STRING}}}*0.6}}}%

#

i jsut change nested to utils

junior musk
#

there's so many placeholders I can barely read wtf

ocean beacon
#

how to use conversion as JS

junior musk
#

I have no idea

#

can you do /papi parse me %deluxemenus_meta_hex-to-rgb_STRING% ?

ocean beacon
junior musk
#

can you show the output?

ocean beacon
junior musk
#

can you just show the output as of right now?

ocean beacon
#

i just use this hex rn

junior musk
#

can you show /papi parse me %utils_parse_string_substring_0,2_{deluxemenus_meta_hex-to-rgb_STRING}% now?

junior musk
ocean beacon
#

ah, i forgot to set the value

junior musk
#

😐

ocean beacon
#

but why 255 * 0.6 = 99 😐

junior musk
#

wat

ocean beacon
#

ah, it right

#

its hex code, not rgb value

vivid sparrow
#

255 * 0.6 is just math

junior musk
#

but isn't it 153 ?

#

though I have no idea what his placeholders are returning so can't help much

vivid sparrow
#

Ah yes, the result is wrong, hmm

ocean beacon
#
result = parseInt(("FFFFFF".substring(0, 2), 16) * 0.6).toString(16);
// it should 99, why the return is 9 :|
junior musk
#

because you put the *0.6 inside the parseint

#

(parseInt("FFFFFF".substring(0, 2), 16) * 0.6).toString(16);

ocean beacon
#

wah, i change it to this and it work

result = parseInt("FFFFFF".substring(0, 2), 16) * 0.6;
result = result.toString(16);
junior musk
#

that's the same thing

#

in your first code, you had *0.6 inside the parseInt method, thus it didn't turn FF into 255 but only took the 16 in account

#

now that you separated it, it parses FF as 255 correctly, then multiplies it by 0.6 to return 99

ocean beacon
#

but the second one work correctly

junior musk
#

yes

ocean beacon
#

idk why

junior musk
#

that's what I said

junior musk
#

as I've said 3 times now

ocean beacon
#

im not notice that XD

ocean beacon
junior musk
#

yes

#

that's why it's inside the parseInt

junior musk
pine nimbus
#

[09:56:30 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.11.3 generated an exception whilst handling plugin message
java.lang.IllegalStateException: java.io.EOFException
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:472) ~[guava-31.1-jre.jar:?]
at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:455) ~[purpur-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCustomPayload(ServerGamePacketListenerImpl.java:3706) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.handle(ServerboundCustomPayloadPacket.java:37) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.handle(ServerboundCustomPayloadPacket.java:15) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.19.4.jar:git-Purpur-1979]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1369) ~[purpur-1.19.4.jar:git-Purpur-1979]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[purpur-1.19.4.jar:git-Purpur-1979]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1346) ~[purpur-1.19.4.jar:git-Purpur-1979]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1339) ~[purpur-1.19.4.jar:git-Purpur-1979]
at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1455) ~[purpur-1.19.4.jar:git-Purpur-1979]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1195) ~[purpur-1.19.4.jar:git-Purpur-1979]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:325) ~[purpur-1.19.4.jar:git-Purpur-1979]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:346) ~[?:?]
at java.io.DataInputStream.readUTF(DataInputStream.java:595) ~[?:?]
at java.io.DataInputStream.readUTF(DataInputStream.java:570) ~[?:?]
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:470) ~[guava-31.1-jre.jar:?]
... 19 more

#

How to fix this?

ocean beacon
junior musk
#

yes

ocean beacon
junior musk
#

...

#

weren't you using hex codes?

#

like FFFFFF ?

ocean beacon
#

yeah

junior musk
#

then why are you using 255

#

if you want to use 255, then you don't need the parseInt at all

#

just multiply the number by *0.6 directly

ocean beacon
#

ah, my bad

#

im use number just to check condition

#

😬

#
var hexCode = "\"" + "%deluxemenus_meta_hex-to-rgb-v2_STRING%" + "\"";
function checkNumber(number) {
  if (number > 255) {
    return "higher than 255";
  } else if (number < 16) {
    return "less than 16";
  } else {
    result = (parseInt(hexCode.substring(0, 2), 16) * 0.6).toString(16);
    return result.toString(16);
  }
}
checkNumber(args[0]);

need help again

junior musk
#

you defined hexCode after the function

#

either add it to the function's arguments or put it on top of it

ocean beacon
#

NaN

vivid sparrow
#

You have 2 toStrings, that might be the problem

junior musk
#
function checkNumber(number,hexCode) {
  if (number > 255) {
    return "higher than 255";
  } else if (number < 16) {
    return "less than 16";
  } else {
    result = (parseInt(hexCode.substring(0, 2), 16) * 0.6).toString(16);
    return result.toString(16);
  }
}
checkNumber(args[0],"%deluxemenus_meta_hex-to-rgb-v2_STRING%");
vivid sparrow
#

Also, uh, just return directly

junior musk
#

that too

#
function checkNumber(number,hexCode) {
  if (number > 255) return "higher than 255";
  if (number < 16) return "less than 16";
  return (parseInt(hexCode.substring(0, 2), 16) * 0.6).toString(16);
}
checkNumber(args[0],"%deluxemenus_meta_hex-to-rgb-v2_STRING%");
junior musk
#

what arguments did you use?

#

/papi parse me %deluxemenus_meta_hex-to-rgb-v2_STRING%

vivid sparrow
#

What are you guys doing?

ocean beacon
#

so this is AD

vivid sparrow
#

to convert hex to rgb you just do parseInt("AD", 16)

junior musk
#

tbf I have no idea what he wants to do xD

#

idk what the *0.6 is for nor why he's going back to base16

ocean beacon
#

so it return RGB value correctly, then i need it change back to hex value

junior musk
#

wat

vivid sparrow
#

As so you want to alter the color?

ocean beacon
vivid sparrow
#
function toHex(code) {
  var hex = code.toFixed(0).toString(16);
  return hex.length == 1 ? "0" + hex : hex;
}```

and for your code `toHex(parseInt(hexCode.substring(0, 2), 16) * 0.6);`
junior musk
#

wtf is that

vivid sparrow
#

toFixed(0) to remove the decimals from the multiplication by 0.6 and you also need to add an extra 0 if the value of code (number) in hex is only one character

ocean beacon
vivid sparrow
#

In a painful way

#

Do what I said

ocean beacon
#

yeah 😬

#
// like this ?
function toHex(code) {
  var hex = code.toFixed(0).toString(16);
  return hex.length == 1 ? "0" + hex : hex;
}
function checkNumber(number,hexCode) {
  if (number > 255) return "higher than 255";
  if (number < 16) return "less than 16";
  return toHex(parseInt(hexCode.substring(0, 2), 16) * 0.6);
}
checkNumber(args[0],"+"%deluxemenus_meta_hex-to-rgb-v2_STRING%");
vivid sparrow
#

Try and see

#

You might need to do parseInt(args[0]) but see if this works

ocean beacon
#

its return 104

vivid sparrow
#

ok so?

#

ah hmm

ocean beacon
#

its red value

vivid sparrow
#

ahh stupid javascript, toFixed() returns a string, not a number

#

var hex = parseInt(code.toFixed()).toString(16);

ocean beacon
#

yeah, it work

vivid sparrow
#

great

ocean beacon
#

no more pain 😐

#

but CJ said it will be slow when use JS

vivid sparrow
#

can not be slower than using 40 placeholders lol

ocean beacon
#

so now i need to make two more JS for 2,4 and 4,6 ?

vivid sparrow
#

no

ocean beacon
#
return toHex(parseInt(hexCode.substring(0, 2), 16) * 0.6)+
  toHex(parseInt(hexCode.substring(2, 4), 16) * 0.6)+
  toHex(parseInt(hexCode.substring(4, 6), 16) * 0.6);
vivid sparrow
#
var factor = parseFloat("%deluxemenus_....%");

function toHex(code) {
  var hex = parseInt(code.toFixed()).toString(16).toUpperCase();
  return hex.length == 1 ? "0" + hex : hex;
}

function modifyColor(hex) {
  return toHex(parseInt(hex, 16) * factor);
}

function checkNumber(number, hexCode) {
  if (number > 255) return "higher than 255";
  if (number < 16) return "less than 16";
  return modifyColor(hexCode.substring(0, 2)) + modifyColor(hexCode.substring(2, 4)) + modifyColor(hexCode.substring(4, 6));
}

checkNumber(args[0], "%deluxemenus_meta_hex-to-rgb-v2_STRING%");```
ocean beacon
#

finally, i can use #000000

#
var factor = parseFloat("%deluxemenus_meta_xLight_DOUBLE%");

function toHex(code) {
  var hex = parseInt(code.toFixed()).toString(16).toUpperCase();
  return hex.length == 1 ? "0" + hex : hex;
}

function modifyColor(hex) {
  return toHex(Math.min(parseInt(hex, 16) * factor, 255));
}

function checkNumber(hexCode) {
  return modifyColor(hexCode.substring(0, 2)) + modifyColor(hexCode.substring(2, 4)) + modifyColor(hexCode.substring(4, 6));
}

checkNumber("%deluxemenus_meta_hex-to-rgb-v2_STRING%");
vivid sparrow
#

just add an extra parameter

#

And if you need to ask a question about a part of the code, dont paste everything here, you are making the chat hard to read.

#

I've modified my code

ocean beacon
#

ok

tender vaporBOT
#
Hey!

Please respect the rules, be patient and don't ping staff members!

#
Hey!

Please respect the rules, be patient and don't ping staff members!

vivid sparrow
#

?

ocean beacon
#

i found it

spring marsh
#

guys anybody know why the %statistic_mine_block:<material>% placeholder doesn't register crops like carrots/beetroots/potatoes but it does register wheat?

#

Nevermind, for anyone having the same issue: use "carrots" instead of "carrot" and "potatoes" instead of "potato"

#

for some items you need the plural

stiff elm
#

hi! i noticed the %server_ram_used% placeholder is incorrect, is there a fix for this?

fair crystal
#

I'm trying to do /papi ecloud download TokenEnchant but its saying Failed to find an expansion named: TokenEnchant even when its on the list of placeholders?

ocean beacon
#

math did some weird

junior musk
#

it took 164.45 instead of 164

ocean beacon
#

i fixed it

ocean beacon
#

how to clean just armor dyed ?

junior musk
#

what?

junior musk
ocean beacon
#

clean these things

junior musk
junior musk
ocean beacon
#

😬

junior musk
#

no clue

ocean beacon
#

i know that

ocean beacon
#

what about checkitem ?

junior musk
#

what?

#

that's used to check items, not clean leather stuff

ocean beacon
#

checkitem have remove

junior musk
#

yeah, to remove items

#

not to remove the dye

ocean beacon
#

so check the dyed and remove it

junior musk
#

do you want to remove the item or the dye?

ocean beacon
junior musk
#

then you can't

ocean beacon
#

idk, if i can check it

#

so i can remove it

junior musk
#

you can probably check it, but you can't remove it

#

you can remove the item, but not the dye

ocean beacon
#

it not nessessory, but ill try

fair crystal
junior musk
#

check console on /papi reload

#

?paste

tender vaporBOT
#
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

junior musk
#

uuuuuuuhhhhh

#

I just checked the code of the expansion and it looks a bit... sketchy

#

I wouldn't use that if I were you

mellow dust
#

Hey, I'd like to return a countdown of the remaining time until tomorrow 5 am.
I have this line but it doesn't work, saying there is invalid format and time:
%server_countdown_d.000/MM/yyyy-HH_{math_{server_time_dd}+1}/{server_time_MM/yyyy}-05%
If I replace the math part with math_05+1 (which is the exact same as what will happen when I run the command), it works.

junior musk
#

/papi ecloud download Utils
/papi reload
add utils_parse_ between the first % and server

frosty reef
junior musk
#

that could work, but if the item had a name or any kind of data, it would be lost

frosty reef
junior musk
#

I was wondering if it was obfuscation or what

#

they really obfuscated an expansion? like, I get you'd obfuscate a plugin, but an expansion as small as that...

frosty reef
junior musk
#

yeah I saw that, I don't understand why you would do that

frosty reef
#

malicious code?

#

zelix klassmaster obfuscation

frosty reef
# junior musk yeah I saw that, I don't understand why you would do that

serializable = com.vk2gpz.papi.tokenenchant.z.s.O.getNMSClass("EntityLiving", "world.entity.EntityLiving");
clazz = com.vk2gpz.papi.tokenenchant.z.s.O.getNMSClass("AttributeBase", "world.entity.ai.attributes.AttributeBase");
if (bl) break block87;
if (!com.vk2gpz.papi.tokenenchant.z.b.c.geqVersion(1, 18)) break block88;
Class[] classArray = new Class[]{clazz};
Serializable serializable2 = serializable;
K = ((Class)serializable2).getMethod(h.b("a", (Class)serializable2, classArray), classArray);
annotatedElement = com.vk2gpz.papi.tokenenchant.z.s.O.getNMSClass("AttributeModifiable", "world.entity.ai.attributes.AttributeModifiable");

#

not sure whats its doing modifiying entities

#

try {
serializable = new HashSet();
Class[] classArray = new Class[]{serializable.getClass(), Integer.TYPE};
p = LivingEntity.class.getMethod(h.b("getLineOfSight", LivingEntity.class, classArray), classArray);

#

and line of sight?

#

}
annotatedElement = null;
try {
Class<?> clazz20 = y;
annotatedElement = clazz20.getDeclaredField(h.c(clazz20, "maxHealth"));
}
catch (Throwable throwable) {
try {
Class<?> clazz21 = y;
annotatedElement = clazz21.getDeclaredField(h.c(clazz21, "MAX_HEALTH"));
welll

#

public static void makeEntityDumb(final LivingEntity livingEntity) {
makeEntityDumb(livingEntity, false, false, false, false);
wth

frosty reef
#

URL uRL2 = codeSource.getLocation();
File file = new File(uRL2.toURI());
JarFile jarFile = new JarFile(new File(uRL2.toURI()));
JarInputStream jarInputStream = new JarInputStream(new FileInputStream(file));
do {
jarEntry = jarInputStream.getNextJarEntry();
if (jarEntry != null || bl) {
continue;
}
break block9;
} while (!(string2 = jarEntry.getName()).equals(string));
bufferedReader = new BufferedReader(new InputStreamReader(jarFile.getInputStream(jarEntry)));
looks like it downloads a jar