#placeholder-api
1 messages · Page 19 of 1
okay
and then /papi parse me %utils_parse_skript_total_recipes.{player_uuid}%
this works
now /papi parse me %utils_parse_math_{skript_total_recipes.{player_uuid}}%
that worked
/papi parse me %utils_parse_math_{skript_total_recipes.{player_uuid}}+89%
👍
thanks a lot for ur help
for precision in math do i just add [Precision:0] into it?
nah that was changed
ohh what is it now?
now it's math_0_...
How would I go about using this now:
%progress_percentage_{utils_parse_skript_total_recipes.{player_uuid}}_m:190_d:0%
this doesnt work but the other thing works
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
put progress inside of utils
just like with math
%utils_parse_progress_percentage_{skript_total_recipes.{player_uuid}}_m:190_d:0%
This is correct right? Ill try this
yes
i just keep nested and use XD
why doesnt work my placeholders
-?
Hey, it fixed itself
Please respect the rules, be patient and don't ping staff members!
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
how do I reset a placeholders data? so everyone gets reset for that placeholder?
access world > stats
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 ...
thats not just for placeholders
I would need to go into every player for that
how to see player ranks in placeholder?
use vault %vault_groups% or %vault_prefix%
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?
how do I reset a placeholders data? so everyone gets reset for that placeholder?
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
how about players online?
use server %server_online%
Ping
You can do that with the ChangeOutput expansion, %changeoutput_equals_input:{yourPlaceholder}_matcher:_ifmatch:none_else:{yourPlaceholder}%
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?
Does anyone know if Betterteams has placeholders?
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
Hello
How can I add date in my minecraft server using placeholderapi
I am so confused what to do
%server_time%
Anyone familiar with this placeholder
what will this return
empty i guess since i dont know what will need to be the right format
can you provide me with and example is possible
.
%worldguard_<Any WG Placeholder><Priority (Lowest number = Highest priority)>% =
%worldguard%worldguard_region_name_capitalized%_1%
i hope its work.
Why when I install bungeecord papi extention the placeholders dont work?
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)
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
placeholder for ping and tps?
how tf do i get bungeecord placholders workin\
https://paste.helpch.at/onobizener.css for some reason i get this error on console whenever a player disconnects, any idea whats up?
Something with "RoyaleEconomy"
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?
papi ecloud download bungee on ur paper server
%bungee_<server name in bungee config> or %bungee_total%
Yea I’ve done all of this
But whenever I reload confit with server names the config just resets
/papi reload
any errors in console?
how do i set up the joinmessage
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
use plugin like essentials, cmi
%server_online%/%server_max_players%
thanks i got it to work with %playerlist_online_amount%&f/100"
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
Is there a way to reset and delete just 1 specific placeholder's data?
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?
Parse Other does not work with offline players? Even if the username output works for offline players?
all expansions just work with online player
Hi, is it possible to change the locale for LocalTime?
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"
How do I pull that with a placeholder?
@vivid sparrow Unknown expansion.
%luckperms_meta_<metakey>% -> %luckperms_meta_prefix-color%
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)
Help needed: PlaceholderAPI spams this in console: https://paste.helpch.at/ivalapedoc.php
I want to make a leaderboard with people that have the most money on the server. What placeholder will suit me?
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.
What JS Engine use JavaScript expansion?
Nashorn I believe, you can take a deeper look here https://github.com/PlaceholderAPI/Javascript-Expansion
Slusaj, samo trebas da izbrises server i sve ce biti u redu
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
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
as per the rules, stick to english
There's a few on the ecloud if your search here https://api.extendedclip.com/all/
define "doesn't work", what does it do?
i already got the expansion
Which one, there's about 4-5
but i cant add a scipr variable
.
%bungee_<server name>%
Not working
guys i have a big problem and i cant find the bug on it. The write Placeholder from the board its not working. I want to send a screenshot but i cant on this chat O.o
and yea i had already /papi ecloud download
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
You're using the small font to parse colors and placeholders, you have to use the normal alphabet
Can someone please answer my question? How can I reset just 1 placeholders data? Wipe it clean for everyone
okey i gonna try it
Help
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.
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.
I don't understand
I ran the command /papi parse me %ajlb_lb_vault_eco_balance_1_alltime_name% and opened the menu, that way it worked
Thank You
To be sure you can also add update to the item so it updates from the steve head if it isn't loaded already
yo
do you get any errors in the console regarding it?
Would I have to execute /papi parse me %ajlb_lb_vault_eco_balance_1_alltime_name%, %ajlb_lb_vault_eco_balance_2_alltime_name% and so on with all the tops?
yes
bungee:
- Hub
- Survival
- Practice
check_interval: 30
is this the right format?
I guess do /ajlb updatealloffline vault_eco_balance once and it should be fine I think
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 ^
There seems to be some invalid syntax in your config! You can paste it into https://yaml.helpch.at/ in order to find out where your issue is!
All of that works but nod at the player's head
Based on my testing it works but add "update_interval: 1" at the top of the menu and in the item, add "update: true"
yea i get what its saying
said it in the error
but still messed up
where does the check intervail go?
I'm not sure how the expansion works, try removing the servers from the config and try that way?
I have got it formatted right bc its not getting deleted
but the placeholders still wont work on scorebaord and tab
with reloading them
What placeholder are you using?
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
%bungeecord_total%
Try https://api.extendedclip.com/expansions/advancedbungee/ it might be better
you too^
make sure to put it both in the expansions folder as well as bungeecord plugins folder
i will do
putting this in Files / plugins makes me not be able to join the bungee proxy
any errors?
nope
only crashes when its in plugins folder
and not in the hub server in expansions
Are you sure it's in the bungeecord server's plugins folder and not the other servers'?
yes
I can send u pic of it in dms if u want
What does it say when you try to join the server?
i put it into the expansion folder in servers ight?
Proxy lost connection to server
did you try restarting all the servers?
.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
no
Alright well try that and see if it works
nope
does it have to do that some of my servers of different versions
Not sure what could be causing the issue :/
and I removed it from plugins folder and joined and it doesnt even show in /papi list in hub server when its in expantion
Can you do /papi reload and then /papi dump
Can you try doing /papi register AdvancedBungee-Expansion-1.0.0_ureF5fm.jar
Check the console for errors as well
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)
yep ^ basically the expansion doesn't support your server version
ok
well
how do I do the bungee expansion
bc i have done everything correct I believe
delete the advancedbungee one and try to register the normal Bungee expansion, see if it also throws the same error
do /papi dump and make sure it says it's registered
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]
someone can help me understand how to show this in vanilla Minecraft
{"translate":"%worldguard_region_name_capitalized_1%"}
Don't know if it'll help but try putting the jar into bungee plugins folder as well
do i add plachodler api to the plugins folder in proxy server?
I don't think so
no work
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);
}
}
}"
here the code:
https://paste.helpch.at/iracawisub.java
you are probably mixing the APIs
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
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.
not really, its not a verified ecloud expansion and then it doesnt work if ur <java 11 or <17 i forgot
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?
you probably can't
do like TAB
make a animation text that return number
and put it in the progress
Can someone please answer my question? How can I reset just 1 placeholders data? Wipe it clean for everyone
...
?
placeholderapi doesn't store any data on its own, if you are asking about statistics, they are stored in the world data
any way to reset a specific place holder data?
did you read my answer?
yes
but like is there a way to delete the data
or do I just need to manually delete it for all users
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]'
Can someone help me with this error?
https://paste.helpch.at/isasevozab.rb
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.
.
update your plugin
that's a problem with the placeholder expansion for Premium Vanish
so go talk to the premium vanish devs!
Bump
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)
its latest version lol?
wrote to him but this is placeholder problem
It's a problem with his placeholder implementation
He needs to implement the getPlugin method
.
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!```
looks like you don't need an expansion anymore, it's included
so just delete it from the expansions folder
I just removed it and restarted the server but now the floodgate_device placeholder is failing. Here I share the dump:
https://paste.helpch.at/ixoqaxiyun
Any way to have %luckperms_expiry_time% come back as only seconds? So 30 mins left should only appear as 1800
Hello, is it possible to somehow get a translation using a javascript extension?
?
Can someone give me an exemple of how to use %checkitem_getinfo% please
Did you have 2 instances of the expansion in the folder?
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
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.
I'm off to work for now, but many people are around that could assist you
%checkitem_getinfo:mainhand_mat:% would return STONE if you had stone in your main hand
And can i use 1,2,3 as slot?
%checkitem_getinfo:mainhand_mat:,nameequals:% would return something like
mat: STONE | name: &aStone
yes all slots listed here
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#checkitem
https://imgur.com/3YCrfC8
I am at work now, so i cant check it now hahaha
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
Papi is not aware of data updates
¯_(ツ)_/¯
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
And?
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
You can query the placeholders from the other server whenever you want to update the text where they are used
Ok thanks
Not with papi directly, but with some addon, I think there's one on spigot called "bungee papi" or whatever
Please respect the rules, be patient and don't ping staff members!
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
hmm, I would try contacting the author of the expansion maybe https://github.com/rtm516/FloodgatePlaceholders
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?
Is there any docs about it?
@austere hawk did you see this
Perfect
here is github https://github.com/Kqliber/Expansion-ChangeOutput
Thanks dude
Is this possible?
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 
some more info here, following Your First Script on the right should help you use this script https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Appreciated, I will do that then.
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
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
does chatchat support hex colors?
got that figured out, how do i remove it so if im opped it wont just show owner rank?
I'm not trying to be annoying I just really need help 😭
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 :/
you really hate your server's performances, don't you 
perhaps ask the developer of the enchantments plugin if they can add some placeholders for that
hahaha no that's just for showing player's his enchantment level in other GUI
he left scamming, so I don't have source code neither 🙄
F
😫
checkitem + string expansion
or, by chance, are the enchantments also stored in nbt?
It's a little complicated, but avoiding javascript should be possible i think
Hey cj, yeah I think so
Please respect the rules, be patient and don't ping staff members!
checkitem retrieves specific nbt
%checkitem_getinfo:mainhand_nbtint:TokensJackhammer=% should return 11
what if you did nbtstrings:
sorry, with the jackhammer part
oh, also I think this should be nbtints
Oh
%checkitem_getinfo:mainhand_nbtstrings:TokensJackhammer=% should return 11
my b
one of those should work
Sure 👍 give me 1m
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```
Hmm that's weird still printing same thing
even in with latest
maybe put something after the =? just anything blank
same for when you're doing [meta] actions
even if you remove meta, you need a value to fill the argument
🤷♂️
but it works!
😄
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```
still having trouble with the %playerlist_online,normal,yes,amount% placeholder in the discordsrv bot's status
%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
that's because you don't need the extra {} around the first placeholder
ah, i forgot
%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
Hello 
how this work %string_replaceCharacters_<configuration>_<string>% example is i what to replace _ w -
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
in papi config under expansions:
string:
replacements:
underhyphen:
'_': '-'
%string_replaceCharacters_underhyphen_part_time%
Thanks
to use placeholders inside of other placeholders generally you need to use {} instead of %%
ex: %changeoutput_contains_input:{simpleclans_clan_name}_matcher:...
"&fClan: &a%changeoutput_equals_input:{simpleclans_tag_label}_matcher:_ifmatch:&cNo Clan_else:{simpleclans_tag_label}%"
it doesn't work for all expansions, but most support it like that
Im going to try that
This didnt work
Same error
try again
Anh the first one too
Same, it says %changeoutput_equals
%changeoutput_equals_input:{simpleclans_tag_label}_matcher:_ifmatch:&cNo Clan_else:{simpleclans_tag_label}%
Oooooo
It works!!!!!!!!!!

you know how to fix this menu ? #general-plugins message
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
The expansion simply returns what the game does. It doesn't do anything else.
PlayerList placeholders aren't working in the DiscordSRV bot status does anyone know why that's happening
- Do other placeholders work?
- Is the placeholder working in-game?
I'll check but how would I see if the placeholder is working in-game
/papi parse me %placeholder%
It just sends back the placeholder in chat
yeah that means it is invalid
What should I do?
send the placeholder
also, make sure you check its wiki https://github.com/Tanguygab/PlayerList-PlaceholderAPI-Expansion/wiki
%playerlist_online,normal,yes,amount%
looks like you need to define the list in config and then use %playerlist_<name-of-the-list>_amount%
If I wanted to exclude players that are vanished the placeholder would be %playerlist_cansee_amount% right
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
Hmm
So if that list is configured the cansee placeholder should exclude vanished players?
Assuming it would work on discordsrv
It will probably not work on discordsrv, but worth a try.
Yeah you're right it didn't work
Gonna try %playerlist_member_amount% and see if that'll work
That didn't work either ✊😔
@misty pier if you use essentials, there's %essentials_safe_online%
ooo okay I'll try that
It kinda worked the placeholder isn't there anymore there's just no number or anything
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 :/
Help needed: PlaceholderAPI spams this in console: https://paste.helpch.at/ivalapedoc.php
how can i connect with discord direct live? our community has been hacked
?not-discord
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.
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?
https://paste.helpch.at/ give me your config
papi right? not deluxe menu?
menu
Thats the menu. I have it replicated it on all servers with different lores
maybe you should change the update of pinger to 1
to make it ping faster
@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
does anyone know why the %essentials_safe_online% placeholder would be an empty value?
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
iridium skyblock placeholder?
=papi iridiumskyblock
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
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 ?
Fixed ?
yeah not sure what the issue was at the time.
When you want to display placeholderapi placeholders
You need to download the expansion
/papi ecloud download Vault

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.
Okay
So what should I do with it?
I would recommend putting the expansion internally
vs. on the ecloud
if it's your own plugin
Well I’d want to, but the plugin that I’m using for my scoreboard isn’t mine
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"
You make a plugin > your plugin provide placeholders to placeholderapi > placeholderapi provides placeholders to scoreboard plugin if implemented by scoreboard plugin
Oh so that could be done without utilizing ecloud
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
I recommend not using player as your identifier
it is a commonly used expansion
your identifier should be unique to your plugin
Oh okay
Oh okay
I’m just really curious and surprised how placeholderAPI is automatically updating my placeholder into other users’ plugins
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
how to change RGB to hex with placeholder
what?
@vivid sparrow Unknown expansion.
RGB to hex is just conversion of each value of the RGB
RGB: 255 0 0
HEX: FF 00 00```
if you have the 3 RGB values separated, and not like 255,0,0, you can use this expansion https://api.extendedclip.com/expansions/conversion/
%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
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
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
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
what is with this?
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.
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.
We are using the "Statistics" expansion by the way.
Yeah
@sharp parcel just uninstalled placeholer api
@hardy quiver
k
Friend, i Still have a problem
Please respect the rules, be patient and don't ping staff members!
Are there any existing placeholders for whether you're currently in a raid or not? Tried looking around but could not find one
No
What to do with this?
Error is spamming abnormal
Because of bungee expansion
how do i separate zeros in vault_eco_balance with a comma?
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...
also dump doesnt work
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?
@sudden slate ur trusted. U gotta know why this is
Please respect the rules, be patient and don't ping staff members!
I don't 😦
the interval should be fixed for all servers
@frank sinew ^
Yes it is and it updates the playercounts of all of them absolutely fine on that interval basis. The issue is simply after restarting the hub, the survival playercount placeholder will show 0 for about 15 minutes and wont ping at all
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
do you get any errors?
No
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?
anyone know why my essentials baltop placeholders look like this? https://imgur.com/a/XR4KkXj
=papi essentials
weird does it fix with /papi reload?
not that I know of but cool idea
no
Please respect the rules, be patient and don't ping staff members!
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
if the quest plugin doesn't support it, you can use a plugin like PsudCommands
can i get player statistics of an offline player?
Yes but only in 1.15+ I believe
can anyone help me?
How Can download expansion rankup?
can anyone help me?
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
I gave details 6 hours ago
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
and the link of /papi dump
?imgur
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.
yeah
%server_time_<format>%
what format ?
Go to examples
And how to specify the zone?
Can anyone help me with this please
https://discord.com/channels/164280494874165248/1113272850355331092
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"
what does the _safe do?
only show players that aren't vanished iirc
Yes
Should I try %essentials_online% and see if I can get a number?
Still getting a blank value
where are you using it? and did you try with /papi parse me %essnetials_safe_online%?
send a screenshot if possible
?imgur
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.
I'm trying to use it in my discordsrv bot's status and yes I can get on and check that in a second
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
idk why it's like that, but if you want an alternative, you could try with my PlayerList expansion :D
https://github.com/Tanguygab/PlayerList-PlaceholderAPI-Expansion/wiki
then create a list like ```yml
lists:
safe_online:
type: ONLINE
included: false
filters:
- "PLACEHOLDER:%essentials_vanished%||no"
Hi
https://prnt.sc/zoERm3bNE2bY i get this error when i try use papi in me plugin
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
Wdym
Sorry
Please respect the rules, be patient and don't ping staff members!
got it tysm
https://paste.helpch.at/moxoraruni.pl
Use a script I want to convert __code into a placeholder <: like %code% = 70249
I think this can help you https://api.extendedclip.com/expansions/skippi/
%randomnumber_number_min_max% hey can someone help me with formatting this by chance
im very confused on how to get this to work
what does "formatting this by chance" means?
getting it to display a number instead of a placeholder
also love your plugins! i bought the pro version of tags and levels!
Where do I find variablename
Please respect the rules, be patient and don't ping staff members!
ok sorry
I don't know, I think it's code
/papi parse NBFLN %skript_code%
Are you sure this will work?
https://paste.helpch.at/moxoraruni.pl script api code discord link
No, I just said "I don't know"
Did you test it?
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
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
/papi ecloud down load localtime
/papi reload
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
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
@static shard Did you tag me? If so, please don't delete tags as ghost pings are one of the most annoying things ever
"UnsupportedClassVersionError" -> Probably your server runs an old Java -> Update Java to at least 11 as stated in the README.md file of the Expansion Repository: https://codeberg.org/Andre601/Math-Expansion#math-expansion
I switched servers and now I keep getting these errors https://paste.helpch.at/aqufugijok.md https://paste.helpch.at/oviqoxacay.md
/papi dump
I only switched server host and it was working perfectly fine before, so idk why it would suddently start doing this
switching hosts would not cause this though
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
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 🙂
%string_replacecharacters_...%
expansions:
string:
replacements:
small-numbers:
'0': ₀
'1': ₁
'2': ₂
'3': ₃
'4': ₄
'5': ₅
'6': ₆
'7': ₇
'8': ₈
'9': ₉
example of how the papi config should look
do you have the string expansion
add something like this to your config
expansions: will already be there
and maybe string: too
small-numbers is the identifier
What about hex codes for gradeints
%string_replaceCharacters_small-numbers_{your_placeholder}%
I dont undersrand how those placeholders work
Which placeholders?
String
%string_replaceCharacters_<configuration>_<string>%- Replace certain characters in astringas defined in config
But how do i use them in ex scoreboard
But like use them
%string_replaceCharacters_config_player_name% or what
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
as shown here, the identifier is small-numbers, so I put %string_replaceCharacters_small-numbers_{your_placeholder}%
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!
A resource that allows information from your favorite plugins be shown practically anywhere!
• Spigot
• Wiki
• Placeholder-List
• GitHub
• eCloud
on the ecloud
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....
tried that, failed
Will PAPI ever have a plugin add-on to automatically update expansions?
Doubtful, isn't great to auto update things on a production server in case something breaks
i still dont understand k
True but would have been useful.
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
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
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
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
The use the luckperms placeholders directly, although I'm not sure if it supports offline players
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 ?
[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?
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);
i think it should end with return parseFloat(result);
same
i don't think so
you can't parse a float from any of those return values
parseFloat(number)
@ocean beacon
idk what you're wanting to return
im remaking hex to rgb for it work 100% with all hex code
i dont want to do the placeholder again @@
so i use javascript to make it look easier
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....

[Server thread/WARN]: [PlaceholderAPI] Cannot load expansion vault due to an unknown issue.
I can't add expensions like vault, luckperms?
you have plugin ?
this cant return placeholder
Do you have those plugins?
I need help
There is no time to wait! Ask your question @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
@ocean beacon
So what i need to
what are you trying to return
you are trying to parse a float from a string
"dafult" is not a float
it would error
So i need to parse a string ?
a float is a number 00.0
What are you trying to return?
are you just wanting to return "defult"
Placeholder
does not help
what are you looking to return from this
a number?
a string?
%placeholder% this is a string ?
"less than 16" is a string
"%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
I'm not learned about JS
yes, it is a lot
function checkNumber(number) {
if (number > 255) {
return "higher than 255";
} else if (number < 16) {
return "less than 16";
} else {
return "dafult";
}
}
checkNumber(280);
my code was from chatGPT :L
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%
bad
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
kind of similar, but not quite
What about checkNumber("%placeholder%");, is it work?
yo, placeholderapi for bungee?
nope
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
Please respect the rules, be patient and don't ping staff members!
but it give an error
why ?
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 {}
still same :L
show the error
some issue with the conversion placeholder, just need to find the right one now lol
%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
there's so many placeholders I can barely read wtf
how to use conversion as JS
every hex code you want
can you show the output?
just choice a random hex
can you just show the output as of right now?
can you show /papi parse me %utils_parse_string_substring_0,2_{deluxemenus_meta_hex-to-rgb_STRING}% now?
if possible, use Imgur or smth because it doesn't let me see your screenshot on LightShot
ah, i forgot to set the value
😐
but why 255 * 0.6 = 99 😐
wat
255 * 0.6 is just math
but isn't it 153 ?
though I have no idea what his placeholders are returning so can't help much
Ah yes, the result is wrong, hmm
result = parseInt(("FFFFFF".substring(0, 2), 16) * 0.6).toString(16);
// it should 99, why the return is 9 :|
because you put the *0.6 inside the parseint
(parseInt("FFFFFF".substring(0, 2), 16) * 0.6).toString(16);
wah, i change it to this and it work
result = parseInt("FFFFFF".substring(0, 2), 16) * 0.6;
result = result.toString(16);

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
but the second one work correctly
yes
idk why
that's what I said
because *0.6 is outside of parseInt
as I've said 3 times now
im not notice that XD
but i wrap it with ()
if you want to multiply the result of parseInt, put the ( before it, not after, like I did here
[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?
// like so ?
function checkNumber(number) {
if (number > 255) {
return "higher than 255";
} else if (number < 16) {
return "less than 16";
} else {
return (parseInt(number.substring(0, 2), 16) * 0.6).toFixed(0).toString(16); # <-
}
}
checkNumber(args[0]);
yes
i input 255 and it return 22 😐
yeah
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
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
you defined hexCode after the function
either add it to the function's arguments or put it on top of it
NaN
You have 2 toStrings, that might be the problem
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%");
true
Also, uh, just return directly
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%");
output https://prnt.sc/coMOiWY03i-c
What are you guys doing?
AD55E7
so this is AD
to convert hex to rgb you just do parseInt("AD", 16)
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
so it return RGB value correctly, then i need it change back to hex value
wat
As so you want to alter the color?
like i did #showcase message
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);`
but look ... https://prnt.sc/JIvX79j7UdoY
wtf is that
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
yeah, this can do it
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%");
its return 104
its red value
ahh stupid javascript, toFixed() returns a string, not a number
var hex = parseInt(code.toFixed()).toString(16);
yeah, it work
great
can not be slower than using 40 placeholders lol
so now i need to make two more JS for 2,4 and 4,6 ?
no
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);
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%");```
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%");
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
ok
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
?
i found it
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
https://minecraftitemids.com refer to this site
hi! i noticed the %server_ram_used% placeholder is incorrect, is there a fix for this?
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?
it took 164.45 instead of 164
i fixed it
what?
it's there, but not verified, so you have to download it manually https://api.extendedclip.com/expansions/tokenenchant/
it takes the value from Spigot, if the value is wrong, then Spigot didn't return the correct value. Do note that there's like 4 ram placeholders so maybe you used the wrong one?
right click one a cauldron full of water
no clue
i know that
life saver, cheers mate
what about checkitem ?
checkitem have remove
so check the dyed and remove it
do you want to remove the item or the dye?
item dyed
then you can't
you can probably check it, but you can't remove it
you can remove the item, but not the dye
it not nessessory, but ill try
I've placed it into the expansions folder and reloaded the plugin but it's not appearing on /papi list?
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
uuuuuuuhhhhh
I just checked the code of the expansion and it looks a bit... sketchy
I wouldn't use that if I were you
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.
/papi ecloud download Utils
/papi reload
add utils_parse_ between the first % and server
remove the item and give back a uncolored item? ig
that could work, but if the item had a name or any kind of data, it would be lost
yeah who obfuscates a expansion..
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...
https://imgur.com/a/LDfcbfV looks like it to me
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
i would not recommend u use it at all
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