#placeholder-api
1 messages · Page 1 of 1 (latest)
Is there a version of placeholder pai for velocity, or do I just install it on all the backend servers?
(sane question for vault if anyone knows)
no. PlaceholderAPI doesn't support velocity. you just install it on the backend servers.
and I'm fairly certain it is the same for vault
Alright, thanks a lot!
Hi
I have problem with PlaceholderAPI. I can't download placeholder and reload plugin
This is error in console https://prnt.sc/aIf8SpoXpfww
Is there a way to get a list of all online players? %server_online% just gives me a number but I'd need a way to iterate through all players currently online.
check out the palyerlist expansion
That's a very nice expansion. Thanks for the pointers
One issue I seem to have with that expansion seems to be that it never returns an empty list / 0. When I test %playerlist_online,perm,yes,list,abc.def% it always returns my player name even though I do not have the abc.def permission
yes
oh ok. didn't expect that it would go up that far
help?
how would I go about excluding certain players/groups from that? Could I just pass it a placeholder / expression to evaluate on a per player basis?
delete expansions and reinstall what you need
not sure about excluding
thank you ❤️
Hello everyone,
I received an email regarding the JavaScript expansion and it has been reported by @nimble summit as malware. I have unverified the expansion from the ecloud so anyone who wants to use it going forward will no longer be able to download it from in game. Sorry for the inconvenience but if some type of action was not taken it would risk the entire ecloud being shut down. Thanks @nimble summit for reporting an exploit not caused by the expansion but caused by your carelessness with your permission system.
👍
yeah hurtlay, suck an onion
Yes, thanks hurtlay lmao
this is so sad
Please respect the rules, be patient and don't ping staff members!
yes. its bad if you don't set up your permissions correctly...
man someone really leaked my 0day and reported it
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
Stupid bot i didnt even ping twice
So do I understand correctly that JavaScript expansion is fine and it was just a false report?
Yes. Now don’t get it confused though
The expansion can allow unwanted code be executed as it is a JavaScript interpreter but that’s only if your permission system is compromised
the javascript expansion allows you to run code, if you don't set up the permissions then yes it can be abused. but they reported it as malware while the expansion clearly is meant to ... well run code..
There is no way to exploit the expansion under normal circumstances
So what will happen now?
Okay, thanks for the clarification.
the expansion was made unverified, there's an update incoming, allowing you to block the command from a config file, and possible older versions of the expansion will be taken down (can't confirm the last one)
We’re adding a few safeguards to the expansion so even if you are an idiot who can’t manage your own server you will be okay and the expansion won’t allow code be executed by command
And when will the expansion be available?
Yeah but I mean, when will it be added again to the ecloud
it still is on the ecloud, its just unverified, so you can't download it using a command. it will be verified soon tho after the update will be pushed
tl;dr setting up your permissions right will keep you safe from many situations similar to this one
yeah. please don't give * permissions or op to anyone, especially people you don't trust. And also use 2fa on your minecraft account xD
Sorry for any confusion though regarding my announcement. I just wanted to be transparent with what’s going on with the expansion. Didn’t mean to scare anyone and your server is safe as long as you keep your security in check. Basically if you are in a position for the expansion to be exploited, you are at risk of a lot more damage
Not just damage from “exploiting” the expansion
New release will be deploying shortly that implements the new safeguard 🙂
I got all my files deleted using that kind of exploit
😫
And that's why you don't give op to anyone...
how do you remove decimals for math operations?
nvm got it, just looked at the msg history xD
I think it is unnecessary to do it by config, should enable the command that works only by console and that's it 😄
Please respect the rules, be patient and don't ping staff members!
PRs are open
Next update is already going to sandbox it so you have to manually undo the sandbox to run stuff we don't allow access to which are Bukkit variables. Nevertheless, console only is an option we're considering.
Is there a total blocks brocken per world placeholder?
hello
%bungee_survival% placeholder is showing 189 players online but there are 170 lol
what's going on
@turbid tide Hey, thanks for writing the world expansion for me a few days ago. I found a bug where even when then sky is clear, the placeholder returns Thunder. Any idea of what's happening?
Please respect the rules, be patient and don't ping staff members!
What world expansion?
Hey, when I parse %bungee_gamemode> it's duplicating every time a player joins, like it doesn't remove when a player leaves, someone knows what thing could be doing this issue?
And there are only 20 players online
like it counts total times joined instead of current online players
same problem
Is the javascript expansion broken for 1.19?
Blitz edited the PAPI world expansion for me so %world_weather_<world> returns [Sunny | Rainy | Thunder], somehow thunder is acting weird.
Please respect the rules, be patient and don't ping staff members!
ah
Hey, can someone please test this version of the Vault expansion? All placeholders should work, expect for the color ones, I'm working on them.
can you please reply to the question above?
.
.
So, I think there's actually a way for thunder to be on without it raining. That's what's probably going on as the default value is Sunny, and I only change to thunder, if well the API tells me thunder is on
yeah the bungee expansion has been reported as broken recently, I don't really have time to look at it as I'm currently in the process of recovering my drive and I also am working on other projects.
read the message above this one please.
Ohh so it's prob spigot's fault
do you have any other version of the expansion that is not broken?

most likely a previous version
nope. I mean this version has worked for a long time now, its only in the past month that I've seen reports of it being broken. It could as well have something to do with the messaging channels giving false information
you can get older versions from the ecloud
if you want to test
oh yea
does the expansion uses plugin messaging?
but as you'll see the 2.0 version has been working for 2 years now
no updates required
yup. it uses the provided channels by spigot and bungee that gives this information
yea, my plugin messaging is broken on a server ig as also nuvotifier doesn't forward votes to that server via plugin messaging
I think that's the cause
could be
nope. by default, the statistics are all stored in the main world, together. so you can't really tell them apart since they're all just added up together. You'd need to have your own stats plugin that registers all this information for you, and also you need to have it before people start breaking, otherwise the older broken blocks you won't be able to count at all
Hello, why can't I download Placehloder JavaScript
.
hello, is it possible to get placeholder value in code? some stupid closedsource plugin is formatting placeholder with a color and I want to get it's value and fix it with my custom new placeholder
unfortunately asking him to fix it would take weeks
yeah just use setPlaceholders
String res = PlaceholderAPI.setPlaceholders("%player_name%", player);
``` or whatever
man aint that some shit
but at first I have to get it's value to set to a new placeholder
%player_name% is the value you want to get
I have a question about top placeholders (but it's not about balancetop) is there a way to generate a list of people who have the top values for i.e. drowned killed? or if it's like an analysis using the math expansion?
@next fossil checkout this plugin 
Thanks! 
Hey thanks for reply but I tried with older versions but still having the same issue
Please respect the rules, be patient and don't ping staff members!
yeah, then its most likely a problem with the plugin messaging thingy
but you mean a bungee plugin
or a plugin on the server where I've the bungee expansion?
most likely this
I've only these plugins
and still giving me 8 players when I'm alone at the config server
no no, its not the any plugins at fault. I think its the fault is directly with bungeecord or spigot itself
well, I didn't get into my linux yet (Been locked out for a few days now), so can't really do any testing myself
and as far as I know, there's no way to debug this unless you write code for it
okay okay don't worry, so I'd have to take a look by myself
do you know anyone with experience on expansions to tell if he can make a debug pl or something like that?
Please respect the rules, be patient and don't ping staff members!
Okay?
What I was referring to was the parse command.
If there's a problem you see, Pull Requests are open 🙂
I don't fully understand what you're saying sorry, can I see an example?
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.
Imgur should suite just fine 🙂
Ahh you want a command to enable the parse command.
Probably going to say no to that one.
That way only the server administrator can enable it.
Still it opens the ability for another plugin to execute something as console.
Safest option is to require the server administrator to manually enable it in the config 🙂
That's beyond my knowledge. I don't use it.
You can go and manually download them though.
I have this placeholder: %ajlb_position_{placeholder}_{deluxemenus_meta_type_STRING_alltime}% but it gives me this error: https://paste.helpch.at/usotubuxob.bash when parsing %ajlb_position_{placeholder}_alltime% it works fine
Is this placeholder written correctly? %math_({statistic_WALK_ON_WATER_ONE_CM})/100+({statistic_WALK_UNDER_WATER_ONE_CM})/100+({statistic_SWIM_ONE_CM})/100+({statistic_BOAT_ONE_CM})/100% I've been getting this error in console https://paste.helpch.at/oleruvagiq.coffeescript
seems like your placeholders return empty strings. try /papi parse me %statistic_WALK_ON_WATER_ONE_CM%. what does this show?
Would I need to go to AjLeaderboard for support on this?
It shows me 370648
559381 - WALK UNDER WATER
269603 - Swim One cm
3040456 - Boat one cm
what are you trying to achieve btw?
just get distance travelled in meters?
try %math_0_({statistic_WALK_ON_WATER_ONE_CM}+{statistic_WALK_UNDER_WATER_ONE_CM}+{statistic_SWIM_ONE_CM}+{statistic_BOAT_ONE_CM})/100%.
Idk what is messing up but i'm getting the same issue. It might be the plugin I'm trying to use with it so i'll check there. but thanks for this :)
What placeholder can I display the current date?
hey
why does placeholder api fake tps
%server_tps% is 20.0, 20.0, 20.0 while tps in /spigot:tps is not same
Is there a PlaceholderAPI expanion to put players heads in chat?
It's not faking it, it's just not as up to date or something
How do i add %tokenenchant_<enchantment>_cost% to my menu? i tried to add %tokenenchant_efficiency_cost% to my deluxemenu, but it won't open after i do so
How to make it so that the online server of everything is displayed and when the player exits, this online goes down and first becomes red, and then in its usual color and then with the entrance itself, if the player enters Hello online and becomes first in lime and in your normal color?
hello, is there a way to insert a placeholder into a new placeholder?
%startplaceholder1 %placeholder2% endPlaceholder1%
yes. use bracket placeholders. %placeholder1_{placeholder2}%. but every expansion needs to add support for this, so there will be expansions that this will not work in
if a placeholder doesent support it, can I use a 3rth placeholder to exploit it? like I was trying to use Strings %string_random_{placeholder1{placeholder2}}%
but no results
you can't have placeholder inside placeholder inside placeholder
ok so the only way is to create a custom placeholder or use js
sad
is possible to be implemented in the future?
pretty sure that's a no. I mean in theory its possible but I doubt anyone will spend the time doing it. Maybe PAPI 3 will have it. IDK
not on the agenda
don't recommend using placeholder values like that anyway
their values don't have any guarantee of consistency
I was just trying to use shortcut and ascii tooghether
How to make it so that the online server of everything is displayed and when the player exits, this online goes down and first becomes red, and then in its usual color and then with the entrance itself, if the player enters Hello online and becomes first in lime and in your normal color?
exist a way for parse yml file?
.
Is there a way to use papi on velocity?
Because I have TAB installed on my velocity server, running luckperms on velocity as well and I want to use the luckperms prefixes with the TAB plugin.
I tried to install it on the backend servers but because TAB is running on the proxy it doesn't work :/
I am starting to fix a lot of issues with TAB being on the proxy, I think its best to have it on the backend servers
no, PlaceholderAPI has no proxy support.
????
I figured, I will be doing that
thank yous!
how do I make the first letter of text uppercase?
Yo i have this problem where if i download papi in my server and when I start it it shows could not find expansions information or smth like that and if i check expansions folder there is no expansion and if i do /papi ecloud download player/server/any other it says no expansion found with the name: [name]
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
@pseudo pagoda 
Are you looking for a placeholder that could capitalize an input? then you can take a look at the string expansion.
Thx I'll try it
Hi,everybody
I have a problem
This is papi's log
%deluxetags_tag% and %guild_name% donesn't work again 😦
guild have some logs
This is Julyguild's error
java.lang.NullPointerException
[01:43:01 INFO]: Cannot invoke "org.bukkit.entity.Player.getUniqueId()" because "p" is null com.github.julyss2019.mcsp.julyguild.thirdparty.PlaceholderAPIExpansion.onPlaceholderRequest(PlaceholderAPIExpansion.java:42) me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:35)
[01:43:01 INFO]: me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119)
[01:43:01 INFO]: me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71)
[01:43:01 INFO]: me.clip.placeholderapi.commands.impl.local.CommandParse.evaluateParseSingular(CommandParse.java:118)
But Enter /papi parse guyao %deluxetags_tag% result returned is empty
🥲
How to make it so that the online server of everything is displayed and when the player exits, this online goes down and first becomes red, and then in its usual color and then with the entrance itself, if the player enters Hello online and becomes first in lime and in your normal color?
what?
Hey there, how does %checkitem_nbtStrings:<key>=<value> work?
I am using MMOItems and it has Custom NBT Tags and I'm trying to detect them with CheckItem
anyone know why pinger isnt working the placeholder it always says my server is off even when its on for like 5 hours+
'registerPlaceholderHook(org.bukkit.plugin.Plugin, me.clip.placeholderapi.PlaceholderHook)' is scheduled for removal in version 2.13.0
any solution
when i try to register my placholders onEnable
it gives this error
pls help
Its been broken for some time already
Hard to say
var color,
red = args[0],
green = args[1],
blue = args[2]
function placeholder(r, e, l, a, g) {
return 3 === g.length
? r + " " + e + " " + l
: (r = 255) + " " + (e = 255) + " " + (l = 255)
}
placeholder(red, green, blue, color, args)
the plugin constantly throws an error:
An internal error occurred while attempting to perform this command
Even the script from the documentation - hello world also gives an error!
command:
/papi parse me %javascript_colorscar_123,123,123%
Heyyy I’m trying to create leader boards, how would I go about doing this? Can anyone help
/ what plugin do you recommend
Hey, in DeluxeTags if force_tags is enabled and the permission given - Can a player "opt out" of the tag and disable it themselves manually, or are they locked into it?
pls help me🥲
I have a problem
This is papi's log
https://paste.helpch.at/yonabevuro
%deluxetags_tag% and %guild_name% donesn't work again 😦
guild have some logs
This is papi's log
java.lang.NullPointerException
[01:43:01 INFO]: Cannot invoke "org.bukkit.entity.Player.getUniqueId()" because "p" is null com.github.julyss2019.mcsp.julyguild.thirdparty.PlaceholderAPIExpansion.onPlaceholderRequest(PlaceholderAPIExpansion.java:42) me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:35)
[01:43:01 INFO]: me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119)
[01:43:01 INFO]: me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71)
[01:43:01 INFO]: me.clip.placeholderapi.commands.impl.local.CommandParse.evaluateParseSingular(CommandParse.java:118)
But Enter /papi parse guyao %deluxetags_tag% result returned is empty
🥲
Hey I have 2 questions:
- How may I sign up in PlaceholderAPI website?
- What is the ToS or what are the requirements to make my expansion verified?
There's a long time ago I don't code Minecraft plugins and it's the first time I will create an expansion and I really want to contribute and get some info about this
you have to dm @balmy marten (if the dms are closed on discord, dm them on spigot) to get an account, and then you send the link to the expansion (ecloud link) and then the source code (preferably a github repository link) here, asking us to verify. You can even ping me if no one responds in a few hours from you posting all these here.
The %deluxetags_tag% placeholder only returns an empty string when you don't have a tag selected.
The error seems to be related to be related to one of your JulyGuild placeholder. Might want to contact the author of the plugin and report the problem.
ah ok thanks Blitz ^^
the tag gets locked. They can't switch or remove the tag.
AjLeaderboard, works and is free. Not sure how good it is, and how optimized it is but you can try it. It uses PlaceholderAPI placeholders to create the leaderboards.
check the console. you should be getting an error message in there when executing the command.
nope. as far as I am aware, no one is maintaining the expansion. It is open source tho so if you know how to update it, or know someone that could, we wouldn't mind a PR xD
PlaceholderExpansion#register.
already figured it out, but thanks
👍
Hi,sry I didn't see yours messages. I am so frustrate.Because when I enter /papi parse guyao %deluxetag_tags% and %guild_name%. The console can normal display. But when I use cmi manage chat system,the foreground is still showing %deluxetag_tags% and %guild_name%,instead of the content after the variable has been replaced。
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
That sounds like CMI doesn't parse placeholder.
I've never used CMI, but maybe it uses bracket placeholders
try {deluxetags_tag} instead
Thank you for your reply, I will try and let you know the result
yeah but those are internal placeholders
I tried to use this method but it didn't work ):
This is my config
Format: '&2[%guild_name% &2] &6%deluxetags_tag% &b&l{nickName}:&f'
And what is very strange is that I set it according to the variable in the cmi operation manual, and the content of this variable is still %% ):
ugh you didn't do what I recommended tho?
Format: '&2[{guild_name} &2] &6{deluxetags_tag} &b&l{nickName}:&f'
I have tried the method you gave, but it still shows the error
what error?
Can I send picture?
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 remember having issue with this, where it was trying to parse server player count placeholder for specific player so it basically made it unusable in citizens npc name
But I am use it in cmi plugin
Having an issue, can't download JavaScript expansion
It says there is no expansion called like that
You can use ecloud website
If you in the China,you must use vpn to download
The expansion is unverified for now, you have to download it manually
I mean it seems to be a problem in CMI. If the placeholder works using /papi parse, then there shouldn't be a reason to not work anywhere else. I recommend you either read the CMI documentation and make sure you're using them right, or if you already did that, contact their support.
In fact, I just asked the management on the cmi side, and I said it should be the problem of deluxetags 🥲
Hello! I am making a join/leave msges plugin and i have a problem when a player joins it says "%luckperms_prefix% %player_name% has decided to stop by!" So i have a test rank and it's prefix is &1[hi] when a player joins its not showing the prefix with blue colour it's showing just the "&1[hi] SnowFyre_o7 has decided to stop by!"
how can it be a problem on deluxetags' side if the placeholder clearly works tho?
you've said that /papi parse me %deluxetags_tag% works right?
well you have to parse the colors after parsing the placeholders as well.
/papi parse me %deluxetags_tag% works is right,/cmi placeholder %deluxetags_tag% is Unknown
So I think is cmi's problem
hello i used %statistic_player_kills% in a leaderboard, but now i want to reset the kills. how can i do this?
player statistics are stored in the world folder.
you'd have to manually go thru all files in world/stats/ and set the kills one to 0
ok thanks
How may i do that?
Please respect the rules, be patient and don't ping staff members!
sorry
d;spigot ChatColor#translateAlternateCode
@NotNull
public static String translateAlternateColorCodes(char altColorChar, @NotNull String textToTranslate)```
Translates a string using an alternate color code character into a string that uses the internal ChatColor.COLOR_CODE color code character. The alternate color code character will only be replaced if it is immediately followed by 0-9, A-F, a-f, K-O, k-o, R or r.
Text containing the ChatColor.COLOR_CODE color code character.
altColorChar - The alternate color code character to replace. Ex: &
textToTranslate - Text containing the alternate color code character.
use 
Hello, i have a problem with papi ecloud. Some of expansions on my minecraft server after restart stop working. And in the console I see this error: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials.
What should I do?
Go to plugins/PlaceholderAPI/expansions/ and delete the essentials expansion (all of them if there's multiple) then do /papi reload.
@tulip mauve
Should I add the
@NotNull public static String translateAlternateColorCodes(char altColorChar, @NotNull String textToTranslate)
In the main class? or somewhere else?
When I start my server the expansions do not load and I have to do /papi reload for them to load, how can I fix this?
Hello, on my test server not connected to bungee and without the registration plugin, they bypassed the whitelist and registered this command
yYoung issued server command: /papi ecloud download MySQL
what could they get if they do not have access to files, and mysql is not on the test server?
yYoung issued server command: /papi dump
and added this
Hey, anyone knows how to remove max-money cap on essentials to use number suffix well?
i'm using number suffix javascript
and it's capped to QN
@here Who can drop a link to download JavaScript 1.6.0 for PlaceholderAPI?
3 different channels with here mention... you could have just look it up by yourself
People smh
Hi guys i am having issues while trying to create a nested placeholderapi usage
I want to uppercase the first letter that is returned from the essentials home name
%string_uppercase_{string_charat_0_{essentials_home_1}}%
This is the placeholder i used but it returns first or n character from the word {essentials_home_1}
Hello ! Could you help me with this error? It happens to me when I put /papi reload (I speak Spanish and I am translating this in case it is not well understood)
https://paste.helpch.at/iliroreyoh.sql
When I put "/papi ecloud download server" everything bugs and the other expansions stop working
Looks like the jar may be corrupted. You can try manually downloading it here: https://api.extendedclip.com/expansions/server/
I got some issues with papi bcs this dont show colors of lucky perms prefix
Provide more information
anyone?
ChatColor.translateAlternateColorCodes(‘&’, message)
@here Who can drop a link to download JavaScript 1.6.0 for PlaceholderAPI?
Has anyone ever done some performance tests to compare different requirement types? e.g. how do "has permission", "string equals" and "javascript" compare against each other
its pretty hard to test them. The differences for something simple like strings, will be almost nothing. But if you have placeholders it might take a while, since each expansion can do a lot of stuff before returning the placeholder result.
@warm topaz when i try to parse me using ChangeOutput papi placeholder, it always doesn't translate color codes
Please respect the rules, be patient and don't ping staff members!
that's because of papi version 2.11.2. it no longer parses colour codes automatically.
if u are to use the placeholder in a plugin, then they should then be parsed.
I dont really think colours should be parsed within the expansion, but unless it's needed please let me know
I have scoreboard which have placeholder of my prefix %luckyperms_prefix% and this shows me rank but dont show color I mean rank should be red but i see &7[&4owner&7}
Well as mentioned above your message, papi no longer parses color codes
Its most likely your issue
how to fix it?
Any way?
talk with the developers of the plugin that you're using the placeholder in and ask them to parse placeholders first and parse colors after that. If that's not an option use section symbol instead of ampersand in your placeholder.
Is there a way using the math placeholder to get 60 from 64/10? so like division but no remainder
if that made sense
or is there a way to get just the remainder of the number? either work
so like input 64/10 and get out 4
found it :) I think
Can you use the percent sign in the math placeholder % Remainder operator (Modulo) is what is shown on https://github.com/uklimaschewski/EvalEx
ima try [prc]
yes it works
thanks!
Hey Blitz, about that do you have any idea with bungee cpu it's on 600%?
Please respect the rules, be patient and don't ping staff members!
I wonder if you asked the question and answered yourself, or the respondent deleted the message. 😂
he responded to himself
sometimes all it takes to figure stuff out is just type the question. happens to me as well
😂
🤣
hello there I see you everywhere :)
Hi xD
Is there a placeholder that returns the time when the last player was online?
E.g 5 minutes ago
Not that I'm aware of.
I gave myself 1 exp, parsed the %player_exp%, got 0.14285715
figured it out
what did you use
huh
i see someone said its the percentage to the next level
ye
okay lol
well that doesn't fix my issue I just realized :P
I have this:
requirements:
money:
type: has exp
amount: '%math_{deluxemenus_meta_price_INTEGER_1}*{deluxemenus_meta_amount_INTEGER_1}%'
deny_commands:
- '[message]&cYou do not have enough exp'
- '[close]'```
xp is 601
says I don't have enough exp
wot
whatcha mean
look at it
lol
you didn't use any exp placeholder
huh, the type is has exp? is that wrong?
ohhh
im confused
i was looking for current exp
h
ah
if I parse %math_{deluxemenus_meta_price_INTEGER_1}*{deluxemenus_meta_amount_INTEGER_1}% while im in the menu, it gives me 400
400 even?
yep
or does it say 400.00
lemme see
400 exact*
400.000
set precision to 0
trying to turn raw_chicken to cooked_chicken, I have this javascript:
var replace = item.replaceAll('raw','cooked');
return replace;```
giving this error in console: https://paste.helpch.at/ijiniqubuz.cs
I removed the return replace, giving me nothing now
uh
noComma = "%player_item_in_hand%".replace("raw","cooked"); from this I get just RABBIT when im holding raw rabbit
bruh
the item's name is just rabbit
thats why
bruh. all the items arent raw_item, its just item
yasss
it works
great thanks
Wtf
what the placeholder ecloud download for deluxetag?
What server version do you run
mind executing /papi dump and sending the generated link?
1.18.2
go to plugins/PlaceholderAPI/expansions/ and delete this file Expansion-chatreaction.jar then restart the server
Ok
Would you be able to explain why?
the chat reaction expansion is trying to get a class from the chat reaction plugin which you don't have installed. this ends up in it throwing a NoClassException or whatever its called
NoClassDefFoundError
Thank you
I recently removed all the plugins except some essential ones such as papi so thats why
I also kept the folders
😂
Woops
[13:25:17 ERROR]: Thread pool-23-thread-1 failed main thread check: Chunk getEntities call
java.lang.Throwable: null
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) ~[paper-1.19.jar:git-Paper-50]
at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:2425) ~[?:?]
at org.bukkit.craftbukkit.v1_19_R1.CraftWorld.getNMSEntities(CraftWorld.java:1058) ~[paper-1.19.jar:git-Paper-50]
at org.bukkit.craftbukkit.v1_19_R1.CraftRegionAccessor.getLivingEntities(CraftRegionAccessor.java:428) ~[paper-1.19.jar:git-Paper-50]
at com.extendedclip.papi.expansion.server.ServerExpansion.getLivingEntities(ServerExpansion.java:424) ~[?:?]
at com.extendedclip.papi.expansion.server.ServerExpansion.lambda$onRequest$1(ServerExpansion.java:162) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$27(BoundedLocalCache.java:1261) ~[?:?]
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:1259) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:1242) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:103) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.LocalManualCache.get(LocalManualCache.java:54) ~[?:?]
at com.extendedclip.papi.expansion.server.ServerExpansion.onRequest(ServerExpansion.java:162) ~[?:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[PlaceholderAPI-2.11.2.jar:?]
at me.neznamy.tab.bridge.bukkit.DataBridge.lambda$registerPlaceholder$7(DataBridge.java:217) ~[TAB-Bridge v2.0.3 (1).jar:?]
at me.neznamy.tab.bridge.shared.placeholder.ServerPlaceholder.request(ServerPlaceholder.java:35) ~[TAB-Bridge v2.0.3 (1).jar:?]
at me.neznamy.tab.bridge.shared.placeholder.ServerPlaceholder.update(ServerPlaceholder.java:25) ~[TAB-Bridge v2.0.3 (1).jar:?]
at me.neznamy.tab.bridge.bukkit.DataBridge.updatePlaceholders(DataBridge.java:264) ~[TAB-Bridge v2.0.3 (1).jar:?]
at me.neznamy.tab.bridge.bukkit.DataBridge.lambda$new$1(DataBridge.java:44) ~[TAB-Bridge v2.0.3 (1).jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
spamming this error in my server
from the server expension pack
Did you create a new world?
Also do /papi dump
and I could maybe sort it out
you seem to be using the %server_entities% placeholder in TAB which parses placeholders in an async mode.
and the expansion calls some code regarding entities which throws if done not on the main thread
Yes already saw it, but after removing it, it still spam the console.
@turbid tide could you accept my friend request I need to ask you something
might wanna try to restart the server?
already did.
send the error that it spams now. I Doubt it spams the same error if you actually removed it
let me try restart again
@winged basin you can just message me. I opened my DMs
Ok thanks
still spamming after restart
for some reason after restart and removing it
it will keep going
can you show the error again? The one that you see now. Not the one you sent earlier
[13:37:20 ERROR]: Thread pool-23-thread-1 failed main thread check: Chunk getEntities call
java.lang.Throwable: null
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) ~[paper-1.19.jar:git-Paper-50]
at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:2425) ~[?:?]
at org.bukkit.craftbukkit.v1_19_R1.CraftWorld.getNMSEntities(CraftWorld.java:1058) ~[paper-1.19.jar:git-Paper-50]
at org.bukkit.craftbukkit.v1_19_R1.CraftRegionAccessor.getEntities(CraftRegionAccessor.java:412) ~[paper-1.19.jar:git-Paper-50]
at com.extendedclip.papi.expansion.server.ServerExpansion.getTotalEntities(ServerExpansion.java:433) ~[?:?]
at com.extendedclip.papi.expansion.server.ServerExpansion.lambda$onRequest$2(ServerExpansion.java:164) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$27(BoundedLocalCache.java:1261) ~[?:?]
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:1259) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:1242) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:103) ~[?:?]
at com.extendedclip.papi.expansion.server.caffeine.cache.LocalManualCache.get(LocalManualCache.java:54) ~[?:?]
at com.extendedclip.papi.expansion.server.ServerExpansion.onRequest(ServerExpansion.java:164) ~[?:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[PlaceholderAPI-2.11.2.jar:?]
at me.neznamy.tab.bridge.bukkit.DataBridge.lambda$registerPlaceholder$7(DataBridge.java:217) ~[TAB-Bridge v2.0.3 (1).jar:?]
at me.neznamy.tab.bridge.shared.placeholder.ServerPlaceholder.request(ServerPlaceholder.java:35) ~[TAB-Bridge v2.0.3 (1).jar:?]
at me.neznamy.tab.bridge.shared.placeholder.ServerPlaceholder.update(ServerPlaceholder.java:25) ~[TAB-Bridge v2.0.3 (1).jar:?]
at me.neznamy.tab.bridge.bukkit.DataBridge.updatePlaceholders(DataBridge.java:264) ~[TAB-Bridge v2.0.3 (1).jar:?]
at me.neznamy.tab.bridge.bukkit.DataBridge.lambda$new$1(DataBridge.java:44) ~[TAB-Bridge v2.0.3 (1).jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
dont know if this is the same one
yeah. its the same one. You must have missed some placeholder somewhere
I can't tell what else might be going on
i setup that chunk check
but then it gave errors
so i removed it
and reloaded en restarted everything
and now its keep comming
o i fixed it
but still thanks!
Hey, is it possible to skip a %? I'm trying to do something like %my_placeholder,param1 = \%,param2%
Adding a backslash before a % will still consider as the end of the placeholder
I'm pretty sure that the way PlaceholderAPI currently works does not allow that at all. If this is your expansion, I'd recommend you add a special phrase like [prc] that you then replaced with a%. similar to what the Math expansion does.
hmm I see, thanks 🙂
Any mathematical here? 🙄
I am the developer and I'm just starting off so uhh idk how to parse placeholders and color codes can you tell me how?
Please respect the rules, be patient and don't ping staff members!
String parsedPlaceholders = PlaceholderAPI.setPlaceholders(Player, "%player_displayname%");
String parsedColors = ChatColor.translateAlternateColorCodes('&', parsedPlaceholders);``` now the string called `parsedColors` will have the message with parsed placeholders and parsed colors.
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
I'm having trouble using placeholders that check item enchantments in 1.19 paper:
https://paste.helpch.at/xerizegaje.bash
Im getting this error
https://paste.gg/p/anonymous/b74876860e944a0b93eaac658706e125
function hp() {
return parseInt('%bungee_towny%') + parseInt('%bungee_factions%');
}
hp();
``` this is my javascript
DAMAGE_ALL
the sharpness enchant is called DAMAGE_ALL
no idea why they havent changed it yet
Man, ty but in the wiki say to use minecraft name
the wiki? where does it say that?
the code uses the spigot enchantment names. just looked at it and as far as I know there is no wiki for this expansion
DAMAGE_ALL is the minecraft internal name for sharpness
try it atleast
yes yes it worked
Ty
Should I parse all the placeholders like %luckperms_prefix% and the placeholders my plugin needs?
Please respect the rules, be patient and don't ping staff members!
Is there a way to edit meta outside of deluxemenus? Like within a placeholder? Like when parsing the placeholder (for example) %meta_add_amount_INTEGER_1% it adds 1 to the amount meta?
not via placeholder but deluxemenus provides a dm execute command
Hey, someone knows a yaml generator for do too many levels?
like doing
rewards:
block:
'1':
chance: 100
commands:
- '[COMMAND] tokens add %player% 10000'
explosive:
'1':
chance: 1
commands:
- '[COMMAND] give %player% explosive'```
to 10k levels
adding up tokens in each level
python
do you've any tutorial or something like that?
Hey, where dif you put that code ?
Please respect the rules, be patient and don't ping staff members!
there's any limit of yaml lines?
Please respect the rules, be patient and don't ping staff members!
I mean, a yaml file can have 3m lines for example?
no, there's no limit
and you can also write stuff like lists on the same line
or objects
Hey, anyone could help me with an expression?
I want to add each prestige the cost of (30000000000000000) to the previous prestige cost but I can't see how to do that with only {number} and {rankcost} placeholders (using prisonranksx). Starting price of first prestige is (1000000000000000000)
So prestige 2 will be (1,030,000,000,000,000,000)
Prestige 3 (1,060,000,000,000,000,000), etc
would appreciate any help 🙂
Unless the plugin supports BitInteger, that is most likely not possible
9,223,372,036,854,775,807 this is the max for long
and you have 30,000,000,000,000,000 for one
that's like 280 prestiges or something I guess
what you want is probably 1000000000000000000 + {number} * 30000000000000000
will test that now, much appreciated Gaby!
yeah it was that expression
thanks a lot!!
Heyo
How to use placeholders inside items lore in deluxemenus
I'm clueless
alr it works now
hey, I'm trying to make a compact version of a placeholder, could you help me with that?
https://imgur.com/a/jhyBrvm
can sm1 help me w this?
i need a way to identify the tag with the deluxetags plugin, because if a player doesnt has a tag it'll show just nothing
if (rank === "")
lemme try
it doesnt work :d
what does it return when you don't have a tag?
var tag = "%deluxetags_tag%";
function tagFormat() {
return tag === "" ? "&cNone" : "&r" + tag;
}
tagFormat();``` try this. but its basically the same code just shortened. so don't know if it will work if the other one doesn't
nothing
thats why i needed the code
I'm talking about the javascript placeholder
not the deluxetags one
same thing
nothing
i cant send images
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.
how are you using it? can you show me the javascript placeholder please?
not the code but the actual placeholder you're putting in the hologram
its the scoreboard
scoreboard then, show me the placeholder
its both here?
oh. missed that message
dw!
mind sending a screenshot from inside javascript_placeholders.yml as well?
ah there's your problem
i just realized that i forgot to identify it
anyway tysm!!! and sorry to bothering you!
no problem and you're welcome
Is there a way to use placeholders to convert material names to friendly / language file names?
I.E. %friendly_material_LAPIS_LAZULI% becomes "Lapis Lazuli"
best you can do is something like this https://api.extendedclip.com/expansions/multilanguageintegration/ but it will not have anything setup for you
I mean it is possible. right? You could get the material, make an item stack out of the material and get its localized name?
may i know how do i do that?
lay out what you're trying to do a little bit
String parsedPlaceholders = PlaceholderAPI.setPlaceholders(Player, "%player_displayname% has the rank %luckperms_primary_group_name% and $%vault_eco_balance%");
String parsedColors = ChatColor.translateAlternateColorCodes('&', parsedPlaceholders);
Just to clarify, the setPlaceholders method takes in any string, not just a single placeholder at a time
so like it wont matter what we keep in the "" string only placeholders in it count?
setPlaceholders just parses placeholder inside a string to what they should be
so it could return cj89898 has the rank Owner and $500.00
for example
so this which placeholder is it gonna parse?
all of them inside the string...
should read this if you have not https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI#setting-placeholders-in-your-plugin
i did
so if i keep
String parsedPlaceholders = PlaceholderAPI.setPlaceholders(Player, "%luckperms_prefix%");
does it parse %luckperms_prefix% and when i use that placeholder itll show its colour and name both?
i do have this too so now does it work?
String parsedColors = ChatColor.translateAlternateColorCodes('&', parsedPlaceholders);
Yes it will
with color?
Yes that method specifically translates the &2 format to the correct format for colors
Anyone knows how to add dots on a raw number
with javascript?
without decimals
to remove decimal and add dots
it's only removing decimal
return (parseInt("%autosell_total_multiplier%") + 0).toFixed()
console.log(new Intl.NumberFormat('de-DE').format("%autosell_total_multiplier%"));
}
hp()```
but not adding dots
what exactly are you trying to do?
sorry, I'm so bad at javascript so don't bully me 😂
removing decimals and adding dots
to a raw number with decimals
150123.23 would become 150.123
what does this show as?
150050
you might have to add the style as well
from the example above
actually never mind
that would just add the euro symbol
yeah that's weird
anyone have any idea?
hi how do i reset an leaderboard like mob kills etc to 0?
Goto world folder and player data/stats folder and open uuid.dat of that specific player and edit it
thx bro!
is it possible to use a placeholder inside of another placeholder?
It's not working
Anyone could help with this, please?
hi
I have some problems
Papi expansion cannot be used normally
java.util.concurrent.CompletionException: java.io.EOFException: Unexpected end of ZLIB input stream
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:428) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:245) ~[?:?]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159) ~[?:?]
at java.util.zip.ZipInputStream.read(ZipInputStream.java:197) ~[?:?]
at java.util.jar.JarInputStream.read(JarInputStream.java:207) ~[?:?]
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:143) ~[?:?]
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:121) ~[?:?]
at java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:142) ~[?:?]
at java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:179) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:51) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:405) ~[?:?]
... 7 more```
Can someone help me?
who knows if it is possible to change the light of the glass in menia to 1.12.2 I have one light
Hi, does somebody know how to make placeholder %world_players_<world>% work also for world_the_end world_nether???
What do you mean by light of the glass?
Just enter the world name
Yes but it doesn't work with this two worlds, maybe because they have _ in name
Anyone knows why the Javascript Expansion is not marked as verified anymore
oh thanks 🙂
Does sandboxing patches blocks using Spigot APIs in js placeholder?
like
// get item lore in player's off-hand
function getLore(): Array<string> {
// check slot
if (!checkSlot(40)) return []
// return lore
return BukkitPlayer.getInventory().getItemInOffHand().getItemMeta().serialize().get('lore')
}
Hm?
seems no problem with my scripts. 👍
What are you asking though?
no. This will block you from accessing any java method, and object except those provided, aka BukkitPlayer, OfflinePlayer, and anything you can get from there.
at least that's how I'm understanding it. So you should still be able to do what you're doing currently
idk. but right now, the patch creates the nashorn engine using the --no-java arguments which from what I understand does what I've said above
Aight
understand
how to make a menu of a different color stained_glass_pane
1.12 still uses ID, so ID:1 etc iirc
no it doesn't. it uses data. but not ids
so yml material: stained_glass_pane data: 11
data is from 0 to 15 or 16
Oh 🤔 been a long time since 1.12, thought it's like 90:11 or something
all thanks earned
nope. 1.12 removed material IDs, and 1.13 removed data
i can't find the crazy crate ecloud, is not exist or im bad on searching?????
Doesnt exist
hmm for some reason it stopped working for me
When I do /papi download factions it says factions doesnt exist
%checkitem_inhand_mat:DIAMOND_PICKAXE_namecontains:{player_name}% Does anyone know why this is working with any item in hand? It needs to only work if you're holding a diamond pickaxe, not any item.
Do these compound? Like does everything have to be true? Or just 1 modifier
yo sorry for ping but if i add this
String parsedColors = ChatColor.translateAlternateColorCodes('&', parsedPlaceholders);```
the plugin wont enable for some reason if i remove it itll enable why?
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
#development, most likely because you're using Player instead of a player
ok I'll ask in developement channel
Any way to fix it?
why doesn't material: cow_spawn_egg (1.12.2) show up in my menu
?materials
Time is not working
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
Am I a dummy or is there a bug with update checks. Fresh install of Papi and just added some expansions, yet console logs:
[01:40:53] [Server thread/INFO]: 5 placeholder hook(s) registered! 1 placeholder hook(s) have an update available.
Tried the ole /papi ecloud update all + /papi reload
Even tried restarting the server
Papi is still convinced the bungee expansion has an update available
🤯
oof, think I broke something now lol
Ran /papi ecloud update Bungee now console won't shut up with this error:
https://www.toptal.com/developers/hastebin/hogufurebu.apache
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
yea it's definitely bugged. Soon as you install bungee expansion it prompts with an available update. Guess I'll just disable update checks for now
yeah. the update system is definitely not the best. there's many bugs with it that just are very hard or impossible to fix with how the system currently works
Ah, ok, good to know it's not just me then 🙂
@drowsy acorn can you execute /papi dump and send the generated link here please?
yeah. another one I had to deal with was having an internal expansion with the name randomteleport. Because there's another expansion on the ecloud with the same name it kept telling me there's an update available while the expansions are unrelated
Is it possible to disable update of placeholders like %statistic_days_since_death% in some worlds like an event world?
no. at least not that I Know of. these placeholders are just the normal statistics that minecraft/spigot records
maybe with a custom plugin actually
Okay, I just dont want people to progress their stats in event worl. Ill look around 😛
I managed to remove decimals, but I need to add commas now
Hey guys I cant find top jobs plugin placeholders ?
Does anyone know much about the progress extension that might be able to give me some guidance on how to configure it to actually know what progress it's looking at?
Example - players need to kill 10 withers which is a requirement using a small bit of javascript to check. I'd like to show %statistic_kill_entity:<wither>% as a progress bar for the first 10 kills (If that makes any sense)
%vault_eco_balance_<number>dp% how does this work?
whats ur issue?
my placeholders is do not working on the plugins GemsEconomy..
what verion is ur server?
1.16.5
can someone help, please?
%formatter_number_format_[locale]:[format]_<number>% try this, xNekio
%formatter_number_format_GERMAN:#,###_{autosell_total_multiplier}%
Where javascript placeholder.
yeah works fine
Please respect the rules, be patient and don't ping staff members!
much appreciated Gaby! ❤️
nice
had to update to java 11 because it's only compatible with java +11 formatter placeholder
but all good!
tyy
hi! tell me how to specify the correct TimezoneID by example
%localtime_timezone__<TimeZoneID>%
I saw and did not understand I need an example
%localtime_timezone_Africa/Freetown%.
isn't is supposed to be the number?
thx
can I specify the time format not at 04:00 PM but at 16:00 ?
how?
bro doesn't work, I specify
%localtime_timezone_Europe/Moscow_dd/MM/yyyy HH:mm%
and still writes 1:51PM although for real 17:51
because there's a comma in between time zone and sdf, not an underscore
you can specify only the timezone and it will use the format from config
thanks
essentials does not support the placeholders api?
no. it does not support it
good evening I have a small problem with placeHolderAPI I try to display the tps of my server but it finds nothing at all I downloaded the api server but nothing works can you help me?
mind restarting the server and sending the fresh startup log here please?
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.
so you're saying /papi list shows nothing at all? Or what exactly? Just trying to make sure I understand the problem here
I can't upload the image
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.
right. so expansions are registered. what isn't showing then? oh you want a placeholder to display the TPS? then try %server_tps%.
you can also use these:
%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%```
what plugin is that in?
holographic display
oh. they use a different format
for PAPI placeholders
I believe it is something like {papi: server_tps}
its works it's great if I just want tps 1 I guess I must have papi: server_tps_1_colored
its works great thank you well I gallaire for 3 hours
okay :c
OK. First of all please update back to 2.11.2 or whatever latest version is and then execute /papi ecloud download gemseconomy then /papi reload to download and load the gems economy expansion which should let you use the placeholders
as long as they still work that is
oky, i'll try
heyo, dumb question. if i have a plugin installed on my bungeecord server how would i get placeholders to show up? is there a bungeecord version of placeholder api or do i just need to install the plugin on my spigot backends as well?
my scoreboard has crashed..
Please respect the rules, be patient and don't ping staff members!
PlaceholderAPI doesn't support bungee.
ah ok
Hey is it possible to use two placeholders like this so you need both to be displayed in the playerlist? This currently doesn't work V
%playerlist_online,placeholder,yes,amount,supervanish_isvanished||No+player_has_permission_staff.list||&a&l✓%
Is there another work around for it? This is a display staff online list but if they are vanished I don't want them displayed
I could try add some way
Would be really awesome if you could
I'm not on my pc rn but I'll try in a bit
Alright, mention me if you get something working 🙂
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
What is the placeholder that outputs a world's ticks?
bruh nobody knows?
Anything on https://helpch.at/placeholders?
Well I searched at "world" mostly but couldnt find anything useful
%world_time_<world>%?
me ? forget important things? naaah... totally not my style...
I'm sorry x)
%playerlist_online,placeholder,yes,amount,supervanish_isvanished##No+player_has_permission_staff.list##&a&l✓% (same thing but I changed the || to ## a while ago for some reasons)
-> /plugins/PlaceholderAPI/expansions/
hey?
couldn't find any placeholder for that. there's one in the player expansion but that only works for the world the player is in and I'm pretty sure it also returns the formatted time
oof
Or maybe a placeholder that outputs night or day?
can I install ecloud expansions using placeholderapi on my plugin, for exemple, can I install Player expansion using a method from my plugin
I believe you can the cloud expansion manager using PlaceholderAPIPlugin#getCloudExpansionManager and from there you can use the downloadExpansion method.
to get the PlaceholderAPIPlugin instance, you can use the static getInstance method available in the PlaceholderAPIPlugin class
perfeect, that I was looking for ❤️
Hey, can somebody help me with "TimeManager" placeholders?
Idk if someone can help me with that. I use CMI and LP on my server. I created a custom Command with cmi (the command: https://pastebin.com/udbEiPvj )
But if i run the command the server freeze for a bit and i get a error in console: https://pastebin.com/RHpziYkQ (CMI Dev couldnt help me and thinks that it dont come from cmi)
how do i set a player online list for a specific world
please don't ask in multiple channels. answered in #general-plugins
is there a way to not have a space show up if the papi string is empty?
like for this in LPC default: '[&%discordsrv_user_top_role_color_hex%{prefixes} &r| CC:%simpleclans_clan_color_tag%&r] &r{displayname} &7»&r {message}'
not everyone with the default group has a clan, so if I can remove the space I can make it a lot prettier.
aw
and if I do || it returns 0
2sec
Alright 🙂
the code is fine, are you sure you replaced the jar?
Lemme try it again
make sure you removed the old jar
Do I need to restart the server or papi reload works fine?
papi reload
Hm, the expansion doesn't load for me
send the console log
actually I might have an idea
what's your server's java version?
this one will work on Java 8+
I run 1.16.5 on Java 8
Alright ill try
Yep works but one problem tho when both requirements are passed it counts as 1 player for each requirement so I pass the vanish counter thats 1 then permission counter thats another 1
Want me to send a video of it?
Works, but seems to be another issue with regular online list.
I have this on DeluxeCommands:
- '{"text":"&4&lONLINE &c&lPLAYERS &7(%playerlist_online,placeholder,yes,amount,supervanish_isvanished##No%)&f&l:"}'
- '{"text":" &8&l» &f%playerlist_online,placeholder,yes,list,supervanish_isvanished##No%"}'
It works on papi parse me but returns this on my command https://gyazo.com/4877311b37db6140303948405c1141ff
Nvm don't mind me
I put it under target message 🤦
Thank you very much sir! 😄 Appreciated 🙂
not exactly sure where to ask about this. I'm trying to use relation placeholders to put in a basic chat plugin that supports factionsuuid
so I've got the placeholder %rel_factionsuuid_relation_color% which should give the color of the relation between two players (eg. Enemy = red, own faction = green, neutral = white)
but how will it send a different message to each player on the server based on this relational placeholder?
Why can't I use this now?
https://cdn.discordapp.com/attachments/426460575971672064/1004360654490194090/unknown.png
the top placeholders were removed from the vault expansion.
you can however find top placeholders in the essentials expansion, if you're using essentials for your economy
%essentials_baltop_balance_formatted_<rank>%
%essentials_baltop_balance_commas_<rank>%
%essentials_baltop_balance_<rank>%
%essentials_baltop_player_<rank>%
%essentials_baltop_rank%
%essentials_baltop_player_stripped_<num>%``` this?
seems to be related with chat injector. pretty sure that plugin is not maintained anymore.
yup
%essentials_baltop_player_<rank>% is this for the player name?
cancel the chat event, loop thru all receivers and independently send the message yourself to each player
ugh. you sure you haven't used %essentials_baltop_balance_<rank>%?
same
ah. the ranks start from 0 not 1. so might be why
no problem 👍
[06:57:50 INFO]: [Progress] Couldn't get the number from aoneblock. The progress will be 0%.
Why
Does anyone have an idea?
Bump
when is this showing? what are you doing for this to show?
Showing the placeholder?
what placeholder?
aoneblock_visited_island_percent_done
forked to make it always return a value and remove the '%' at the end
so you've forked aoneblock, chnaged code and are now asking me why it isn't working? or what?
It didn't work with the default placeholder, which is why I modified it. I assumed it was because it couldn't parse the integer due to the "%" at the end, but it still cannot do so
I don't see how exactly this is my fault?
no one said its your fault. I'm just trying to figure out what you're doing first so I can maybe figure out what's happening. can't really guess the problem. we're not the developers or maintainers of AOneblock either.
That placeholder returns a number, e.g. 80
but for whatever reason the "progress" placeholder thingy cannot figure out what 80 means
oh wait. so you're using it in the progress expansion?
Yes
can you do /papi parse me %aoneblock_visited_island_percent_done% and send a screenshot of the output please?
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.
Sure.
ok now can you show me the progress placeholder you're trying as well?
no no. not parsed. the actual text
copy and paste it here
Oh
%progress_bar_aoneblock_visited_island_percent_done_m:100%
put the aoneblock placeholder in {}
%progress_bar_{aoneblock_visited_island_percent_done}_m:100%
That might be a bit of an issue considering the weird way our TAB plugin parses placeholders, but I can see the problem now
thats on you then
- {text: "${viewer progress_bar_{aoneblock_visited_island_percent_done}_m:100} &7${viewer aoneblock_visited_island_percent_done}", icon: "colors/dark_gray.png", ping: -1}``` kind of breaks if there are two {} but I can see the issue now, I tried parsing it with the {} and it worked, but yeah
yeah, that's not gonna work
damn
BTLP?
exactly https://i.imgur.com/g037BhJ.png
BungeeTabListPlus or something I guess
yeah that
AdvancedTabOverlay, the Spigot version of BungeeTabListPlus :herold:
no nitro emotes, ouch
yeah, so same thing
basically
maybe they have something for that on theif wiki, let me check
Ty
you could try to use this instead of the progress placeholder https://github.com/CodeCrafter47/BungeeTabListPlus/wiki/Custom-Placeholders#progress_bar
This won’t hurt performance or anything right?
Please respect the rules, be patient and don't ping staff members!
Oops, apologies
that's what a lot of chat plugins do. as long as you're careful with what you do, it won't
Will this still work in 1.19?
I heard something about how signed chat cannot be cancelled
they can be cancelled. its just that the messages will be shown as system messages and won't be signed
well I mean, currently on spigot they're system messages anyways
so it shouldn't really matter at all for now
Wait, is disabling the enforce secure profiles thing not enough?
Please respect the rules, be patient and don't ping staff members!
sorry mate
Kinda dont get why would you use javascript for that? Theres already placeholder for that
why does papi sometimes just not load some expansions?
Ok I'm having some struggles. It's getting the relational placeholder wrong
shouldn't this work?
"player" is the player sending the chat
I have 2 online players for testing (myself and my alt), both are in seperate factions that are enemies to each other
my alt always shows red faction name though from both points of view, and my main always shows green
Anyone know how the UltraPrisonCore placeholders?
Hello! How do I reverse the date on placeholderapi? I want it to be 08/04/22. not 04/08/22. I have it set to MM/dd/yy
does any1 knows why the scoreboard doesnt parse the color code (its %luckperms_prefix% placeholder)
When using Data.set(), Placeholder.saveData() and Data.get() does that data persist across server restarts?
I've had some issues that the data only appears to be partially set. So some keys do get a value assigned, while others don't even get saved. Does anyone have any ideas what might cause this issue?
Why Pinger expansion isn't work?
Please respect the rules, be patient and don't ping staff members!
God wifi
can anyone help me with this? i need it ASAP
Lol
What placeholder can I use to show if the server is online? I don't want to use pinger because I have to enter the full ip address.
How would i go about creating a playtime leader board?
Explanation: I want to use the is online placeholder on my npc and show the number of players if it is online (for another server on network)
that would probably need server and playerlist expansions
Oh sorry I didn't mention that I need that for other servers on the network
Hi
I need support
I can't download expansions with papi ecloud download
The console give me a error for "failed to find an expansion named: Randomcolor
The command is /papi ecloud download RandomColor
Idk
The link of papi dump
The config of the plugin
The latest.log content
For now i download the extensions manually
But anyone can support me
Thanks
hello brothers, is placeholderapi for 1.19.1?
yes, latest release works
could you pass me a link? it doesn't work for me
