#placeholder-api
1 messages Β· Page 158 of 1
yeah the server is runs on it's own thread
damn this looks cool
π€·
did you add back the javascript file?
and registered it in the javascript_placeholders.yml as well?
or just copy other your entire PlaceholderAPI folder
with which placeholder?
I don't know =/
π
what's going on here
you have a JS placeholder that's not formatting it how you want it?
I have a normal placeholder that contains ., I want to remove the .!
RevEnchant tokens
function tokens() {
return Math.round(PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_Tokens%").replaceAll(",",""))
}
tokens()
try that
replace() @errant iron
replace what
not replaceAll
oh why
well the name is misleading and js don't have that
oh this website says it does
i dunno, all I added was Math.round
apparently that's already been working for him
ok
yeah?
I have 131k tokens and it brings them to 131.0
oh what, is it using decimals instead of commas?
Yes
function tokens() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_Tokens%").replaceAll(".","")
}
tokens()
try that
well we tried last time with replace and it only replaced the first , then we tried with replaceAll and it worked so ... π€·
what, it should've replaced the period
Is empty
empty?
hmm
okay it sucks that it uses decimals instead of commas, cause like none of the javascript functions work
function tokens() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_TokensFormatted%").replaceAll(",","")
}
tokens()
how about that
isn't that what I said in the first place?
no that has TokensFormatted, but that's even worse
131.000 = 131000
oh
okay hold on, let me check something
function tokens() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_Tokens%").replaceAll(/\D/g , '')
}
tokens()```
maybe that one
function tokens() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_Tokens%").replace(/\D/g , '')
}
tokens()```
you were right π₯²
π nothing new
is anyone had issue with mysql placeholderapi?
i hve issue with mysql placeholder like this
idk why but The Plugin Just Stopped Work For Me
ahh the plugin
What? @vivid sparrow
PAPI 2.10.9 No Errors
So what doesn't work?
hi
hey
Is there an expansion that can track what day and time it is?
I was thinking the local time placeholders, but didn't know if it could be used that way
%player_world_time%
if you want the per person time
%world_time_<world>% if you want the real world time
Hmm is there a way I can track days like saturday/sunday
minecraft itself doesn't track that
Can probably user server_time with the timeformat for day of the week
%server_time_EEE%
Hello,
which script engine do I need to use for placeholder-api javascript on java 16 please ?
(I'm using latest dev build of placeholderapi)
>.... [16:44:39 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: grade```
It's just like DeluxeMenus. It will not work until we release a build with support for it.
any eta ? π¦
No
deluxemenus works with your build, so I'm just waiting for javascript now ^^
I tried "JSEngine-3.0.1" but doesn't work
PlaceholderAPI is open source. Probabaly can just integrate it yourself.
And PlaceholderAPI itself should be fine. It's just the JS expansion that needs the engine shaded.
I'm not a coder :/
But if you know someone that can do it (for placeholderapi, not only me) I can pay him, so it will help many people
yes i saw
Hope someone can update javascript soon (I can pay) π
https://polymart.org/resource/jsengine.1095
with this it seems possible but I don't know anyhing in java
could always try graal.js π₯²
but if that doesn't work, then nothing will until it's updated
I'll wait until update, but I'm searching someone to update it ^^ (I hope someone will accept, as i pay for this)
I'll try, but I had some problems with graalvm-11
so graalvm-16 maybe also causes issues
Which permission to I need to negate to stop players from being able to use /papi?
The list of permissions on Spigot indicates that they all default to op, but on 2.10.9 my player account can still use that command (and see that PAPI is installed)
does that just show version info and stuff?
yes
I don't use deluxemenus
I'm just saying
the other plugins I use properly hide their commands unless the player has the requisite permissions
it just shows version and all that, no perm required π€·ββοΈ
...right, that's what I'm saying is an issue
it should have an associated permission
even if it defaults to true, it should be capable of being disabled
it's on github
could recompile and remove those messages
I assume you've tried to negate placeholderapi.* right?
just in case?
that would require me maintaining a separate fork for what should be a base feature. if you're telling me there is no associated permission, I will open a github issue
by default it should not be exposed as a matter of security
a matter of security?
yes
players shouldn't have access to plugin versions unless server owners indicate they should
how does seeing the version number and author of a plugin that is available to the public change your security?
are you familiar with informational security principles generally
not here to argue
just doesn't matter really, but if you want it you can go ahead and open the github issue or recompile it
neither am I - I'm asking so I don't explain something to you that you already understand
It reduces attack vector
exactly
the first level of security is security through obscurity
I already deny permission to see the plugin list, but I can't stop plugins from showing their commands in tab complete if they don't have associated permissions. And they shouldn't show up in the first place
π
I'll open a github issue - that was all I needed to know originally
it was said originally as well
you said you don't think it can be disabled and that I could recompile it, you didn't say yes or no about whether there was an explicit associated node
just use a plugin that blocks some commands -_-
that doesn't change tab completion
tab completion registration is based on permissions
the correct approach is for the plugin to engage in best infosec practices
it's a free plugin that every server uses dude
all the more reason for it to be an example of best practices
it matters so little
to you!
to everyone?
i can't name a server that doesn't have PAPI installed
i don't think revealing its presence will be of threat to you
@stone siren
You can't expect everybody to want to match your level of security required.
I don't - it should be an option
That's perfectly fine, you are entitled to your opinion on that matter at hand.
From a marketing perspective it's a great idea π
I mean, I don't think a single person cares besides this guy
there are others
In all the years of PAPI's existence, he's the first to ask
but it is also OS and they usually have somebody that would just make it work for the server
tab completion is a new phenomenon
also, there's been an upswing in botting accounts looking for server vulnerabilities
gotta love the internet
even if PAPI isn't a potential source of vulnerabilities, it should conceal its existence to players
there's gotta be another plugin out there though that can hide this
I can prevent whatever I want - my request for PAPI is about best practices
no?
it's not about whether or not another plugin can do it
Bro I'm done arguing about it
I didn't even realize we were arguing
yes in the short term I can use alternative means to prevent access
in the long term and as a matter of best practices PAPI should default to concealing its existence
I appreciate you trying to help me consider a short-term solution
From the marketing perspective of papi it makes sense
you provide a free plugin, everybody can see it
I don't think players are a target audience for marketing
and in-game marketing via plugin command is an odd way to go about it
I don't think PAPI is a target audience for bots
a lot of the times people want to see what plugin a server uses just so they can have it on a private server
a poorly-made papi hook in another plugin could lead to vulnerability
that's not a papi problem but it is a vector
they could still exploit it without having access to /papi
sure - but as you mentioned earlier, every step counts
it's a good bet that any server you join will have PAPI, so might as well try all your vulnerabilities
which is why I've opened a github issue
if it gets accepted, great, if it doesn't, well, too bad
this is like saying you want to conceal Windows lol
Most people have Windows, might as well try all your attacks targeted towards Windows
How could i take a placeholder and divide it by 60?
math expansion
so i would do %math_{rankup_requirement_playtime-minutes} / 60%
Hello all, I am getting an error with the MySQL placeholder
https://api.extendedclip.com/expansions/mysql/
[20:11:05 WARN]: [PlaceholderAPI] Task #2115 for PlaceholderAPI v2.10.9 generated an exception
java.lang.NullPointerException: null
at me.SuperRonanCraft.expansionMySQL.Main.register(Main.java:35) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:139) ~[?:?]
Here is main.java:
https://github.com/SuperRonanCraft/Expansion-MySQL/blob/master/src/main/java/me/SuperRonanCraft/ExpansionMySQL/Main.java
there is more to the error if needed,
anyone know why this is happening?
I googled it a lot and found that some people updated to 2.10.10-DEV and it worked, but it didn't for me.
can you send the startuplog with 2.10.10-DEV?
it's possible that the mysql expansion is broken
the whole server log?
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
that's 2.10.9
yes please
just double checking because I haven't seen a 2.10.10 log yet
after that can you also send your papi config
ooh i think mysql has it's own actually
is there a file/folder in the expansions folder?
yeah it does
okay send that one
2secs
its default atm
but when I populated it with the login details it still errored
oh, thanks
what do you mean by that
like
if you went to https://decapi.me/random/number/2/10
it would get the body of that and return it in the placeholder
(using it for an example, I know you can do random placeholders)
uh
I don't think so
but that's all of em that are public 
You'd have to have an update interval for it
Yeah I have looked
feather board does something similar with their <url> tag
@mint fable do I need to request for someone to fix the mysql expansion?
you don't need to, no
but nobody is doing it
so it would probably help
the author probably hasn't had time
or might not care anymore, but π€·ββοΈ
I don't know em
ughh
it would really expand a whole load of things
mysql paired with the javascript expansion

it's probably not hard to fix
I wish you luck in maybe somebody doing it
okay, thank you so much for your help, much appreciated!
what do you mean by that?
whats the placeholder api for vault / essentials baltop? I need it for my holograms
If the expansion has a GitHub post a issue soo he know of the bug/problem. And if he is still active, he will reply/fix the issue (if he has time and/or has interest to fix it).
And if it open source, can others perhaps fix the issue.
guys soo
my server is having a lot of crashes recently
the console is being spammed with "The server has stopped responding..... creating a thread dump. etc"
can someone help me in figuring out what is the cause of such crashes ??
I was monitoring the server and i can it is not an issue of cpu overload or over ram usage.
this is happening a lot of times and i am new to server hosting soo if anyone could clearly help me in this tysm
i cannot post the logs it says "u are not allowed to send non-whitelisted websites"
Hello, Is their a placeholder where i can display the players version?
?
what are you using for multi-versions?
wdym i run a 1.16.1 paper survival server
then why do you want a placeholder for the player's version?
Because its useful to me
if the server doesn't have a plugin like ViaVersion to allow players to join with different versions than the server's version, then they all have the exact same version
well, I don't see what's useful for it
you have a 1.16.1 server
everyone has to join in 1.16.1
I came here for support not for an argument
it's not an argument, it's just that I don't understand
Is their a placeholder for it or not?
you can't join a server in another version without a plugin like ViaVersion
alright let's get back to the beggining
you want a placeholder for the player's Minecraft version?
Yes
and your server is using 1.16.1 ?
Mhm
and you don't have ViaVersion ?
Im going to be using it in future servers and test it on my test server
I just need the placeholder for it
please do, I'm confused π
I have an anticheat that when someone joins it displays their client
i want it too display their version too
ik how to add it too the config
i just need the place holder for it
On my server anyone in 1.16 can use it
but
if anyone joins in 1.16
what's the point of showing the player's version?
you could just write Version: 1.16 directly
Cause i just want to know
but they can't join with anything else
the server will tell them Outdated version! or Outdated server!
yes but its good to know whether they are on 1.16.1 1.16.5 etc
oh you mean sub versions
mhm
I think they can't join if they don't have the same version as the server, except for some exception
I a priv plugin for that
ah
then I think your plugin should create the placeholer
like ViaVersion did
I don't see another way
Spigot doesn't have a way to detect the player's version,
i dont use spigot
what do you use?
Paper
it's the same thing
Nope
Paper is a fork of Spigot
which means it uses Spigot code
but with improvements
(well for now)
Ok Buddy, I Wasent here for this i was here for 1 simple thing is it possible or impossible
it's possible if your plugin makes one
I said it here ;-;
closed ? I can ask for my issue ? π
yeah go for it
Hello,
As there is no javascript-expansion update, and I moved to java 16 (so doesn't work anymore)
I tried GraalVM for java 16, I set "engine : graal.js" but it keeps tells me :
>.... [12:52:54 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: grade
>.... [12:52:54 INFO]: [PAPI] [Javascript-Expansion] 0 script loaded!
>.... [12:52:54 INFO]: [PAPI] [Javascript-Expansion] Java version: 16.0.1```
I think you can use this plugin
h and set the script engine to js https://www.spigotmc.org/resources/jsengine.92709/
idk why graal.js doesn't work tho
h and set the script engine to js
Only in javascript_placeholders.yml
or also in config.yml ?
(as in config.yml I can set an engine type)
uh
I tried this plugin, but I didn't now I had to set "js" as engine x)
I think the one in the config is the default script engine
engine: javascript
debug: true
github_script_downloads: false
argument_split: ','```
so you can just put it in the config and remove the engine: from your javascript_placeholders.yml and it will default to the one in the config yeah
I'll only change in the javascript_placeholders ^^
oki
but I tried so much things, and nothing worked x)
that works too I guess
>.... [13:05:24 INFO]: [PAPI] [Javascript-Expansion] 0 script loaded!
>.... [13:05:24 INFO]: [PAPI] [Javascript-Expansion] Java version: 16.0.1```
file: quetes_emeraude.js
engine: js```
and I got the plugin
π
I got also two people that tried to update the javascript expansion for me (one tried to add the graalvm engine, the other to hook into "JSEngine") none of them worked π¦
what if you also set the engine here to js?
even though I don't think that'll change much
me neither
I see that you got the debug mode enabled, do you get something else in console like Displaying all script engine factories ?
maybe on /papi reload
>.... [13:11:24 INFO]: [PAPI] [Javascript-Expansion] 0 script loaded!
>.... [13:11:24 INFO]: [PAPI] [Javascript-Expansion] Java version: 16.0.1
>.... [13:11:24 INFO]: Displaying all script engine factories.
>.... [13:11:24 INFO]: [PlaceholderAPI] Successfully registered expansion: javascript
>.... [13:11:24 INFO]: [PlaceholderAPI] Successfully registered expansion: cooldownbar
>.... [13:11:24 INFO]: [PlaceholderAPI] Successfully registered expansion: parseother```
π
I see this but nothing else
I got graalvm and also JSEngine :c
yeah I know ;-;
javascript-Expansion does not use Bukkit service provider to get the instance of ScriptEngineManager.
if they instantiate ScriptEngineManager like
RegisteredServiceProvider<ScriptEngineManager> servicesManager = Bukkit.getServer().getServicesManager().getRegistration(ScriptEngineManager.class);
ScriptEngineManager scriptEngineManager = servicesManager.getProvider();
ScriptEngine engine = scriptEngineManager.getEngineByName("js");
simply having JSEngine.jar in plugin folder will work.
Tanguy helped me and it works fine, I just got some issues with some javascript in deluxemenus, I'll have to check
yeah that's exactly what I found, I've just made a PR on GitHub
seems like it wasn't enough to detect the JSEngine, or I did something wrong
oh, really? I've heard other plugins like https://www.spigotmc.org/resources/big-doors-opener.80805/ seem to be able to pick it up.
I'm trying things and all x) I seem to be able to get it if I get the Plugin instance with the Bukkit PluginManager and then use it's getNewEngine() method
but I don't understand why it doesn't work with the 3rd way provided on Spigot
i just tested a simple one https://paste.helpch.at/xuyawumuge.cpp
and it picked it up.
are you using 3.0.2?
that seems to be just extra checking being added.
tf
?
fyi I think we're switching to v8 in the javascript expansion for papi 3
hmm, odd, the js is also listed in the name list.
yeah I know, I don't get why it didn't find it
yes, v8 would be faster?
yes but that's not the main reason for switching
it doesn't even seem to detect it there
mainly es6 support
pig is the expansion format for papi 3 finalised btw?
π₯²
but that being said I don't see it changing
its with annotations atm right?
there's a few different ways
oh, I thought the openjdk's nashorn does support es6.
ah.
graal.js was the ideal option but it required jvm args to run on openjdk
and openjdk is now removing the graal jit compiler so it's not an option
basically v8 bindings is the only option left if we want to actually improve the current situation
and v8's es6 implementation is more complete?
||with all those JS problems, maybe a Python-Expansion would be better ? π||
or closure?
do you mean clojure?
;P yes.
clojure is a niche language
python is fucking disgusting
only other language I think I'd seriously consider is lua
obligatory kotlinscript expansion plug that is already made
go is not an option?
I mean I'm sure it is an option, but that's really not what go is for
i know.
lua's primary purpose for example to be used as an embedded language
it's designed to be used for plugins
however I'm not really looking to change away from javascript
that's what people are already used to
and v8 looks like a very promising nashorn alternative
no need ofc, but would be cool to see more just for fun
||then maybe we'll get a Java-Expansion? x)||
so, PAPI ecloud would be used to download v8?
there's java bindings for v8
you said it.
yes, a Java-Expansion expansion made with Java to allow the use of Java, logic
https://github.com/eclipsesource/J2V8 this is the one I was planning on using
that would be handy π
you just bundle all 3 platform dependencies (works on linux, mac, and windows) into the javascript expansion
mind you that makes it 15MB, but size isn't too much of an issue since the expansion isn't uploaded to spigot
most compilers for popular languages are made in their own language -so yes, logic π
java 9+ has a java interpreter called jshell
could technically use that for a java expansion
lol
cant wait to write so much boilerplate in a java "script"
Meh
im guessing the old format will be kept for compatibility?
we dont want a repeat of 2.10.7 do we π
oh I forgot about that (making a compat layer)
iirc we were going to make a compat layer, but I'm not sure you realise just how different papi 3 is
i probably do not
have you looked at the code?
yeah that's a recurring problem
idk ill try and look at it again eventually
I need to document it
lol
If you need document it for future, take a image of the code ;)
Sry for the joke.
Has anybody told Thien about V8?
i havent saw thien in a while actually
Hi, through the API is it possible to reload the placeholders in a scoreboard after 2 seconds? I made a scoreboard with the Spigot API, now I have to make the placeholders I put update after a few seconds.
well you'd do it through your end
every 2 seconds just redo the text in the scoreboard, when the placeholder is parsed it is updated to the new value
some expansions do have separate update intervals set in configs though, like the vault baltop for example
@west blaze 
so always reload the scoreboard?
well, I'd use the word "update", but yes
I've never worked with the scoreboard in java before π€·ββοΈ
Hi does someone know how to register a placeholder with version 2.10.9? The documentation doesn't show it and there is no tutorial
I've used a PlaceholderExpansion to register it but when I use the method setPlaceHolders it doesn't work
idk where you've searched but the wiki has some pretty nice examples: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion
Oh the wiki is on the github page, I did not see it? Sorry for disturbing you
Probably can't be active for 3 months unless i have free time, like now
Please respect the rules, be patient and don't ping staff members!
Learning for university is a pain
I only send in discord a total of only 20 msgs a day now lol
π
It just reads from your world file
Maybe your player data isn't being saved correctly? I'd check that first
How do i check if it is or isn't being saved correctly? I wouldn't really know what it would look like if it wasn't
I mean you can open your world file with NBTExplorer and see if it has the correct time played data
Uhh i don't think it is
so
im trying to make a command block
that does the command /lp user %playername% permission unset timber.disallow
%playername% needs to be @p
or just something to make the %playername% the player who pressed the button
and activated the command block
long explaination i dont want to get into
@p dosent work
/papi ecloud download luckperms
/papi ecloud download Player
/papi ecloud download PlayerList
thats what ive been told to download to get @p working and it dosent
i don't think PAPI works in command blocks...
I think you can't use that placeholder like that.
And in most cases it exists plugins, some can replace the command block.
I will also say use command blocks on a server are not good idea.
class TempFlyCommand(private val plugin: UnitiaTempFly): CommandExecutor {
init {
this.plugin.getCommand("tempfly").executor = this
}
@austere hawk
Can someone help me please, I have created a placeholder like that:
object: PlaceholderExpansion() {
override fun canRegister(): Boolean { return true }
override fun getIdentifier(): String { return "tempflyactive" }
override fun getAuthor(): String { return "Pseudow" }
override fun getVersion(): String { return unitiaPlugin.description.version }
override fun onPlaceholderRequest(player: Player?, params: String): String {
if(player != null && player.isOnline &&
unitiaPlugin.cache.containsKey(player.uniqueId.toString())) {
val time = unitiaPlugin.cache[player.uniqueId.toString()]
return if(time == -1L) {
unitiaPlugin.loadConfigMessage("placeHolderInfiniteTime")
} else {
return "${(time!! - System.currentTimeMillis()) / 1000 / 60}min"
}
}
return unitiaPlugin.loadConfigMessage("placeHolderNoTime")
}
override fun onRequest(player: OfflinePlayer?, params: String): String {
return this.onPlaceholderRequest(player?.player, params)
}
}.register()
The console told me it was registered but when i do:
it.sendMessage("Β§aIl vous reste ${PlaceholderAPI.setPlaceholders(it, "tempflyactive")} de vol !")
It sends me: "Β§aIl vous reste tempflyactice de vol !"
you need the %% in the setPlaceholders
Hello, I need help with PAPI
I run a bungeecord server, and i use chatmanager. if i use %server_name% as a prefix, it gives me "A minecraft server" instead of hub.
anyone please help
ohh ok thanks
Please respect the rules, be patient and don't ping staff members!
k sorry
what in the hell
Thanks I love you
x)
%player_world%
vault
How would you make a place holder on items you have unlocked so for example I have unlocked 25 items out of 100?
You need a plugin for this if you want to do something like hypixel skyblock
what is da placeholder for ping
@tardy current Unknown expansion.
i asked that before
also
@turbid tide
is there a way to fix my essentials nick cutting off?
since its really long and it just cuts off on my scoreboard
Get a better scoreboard plugin is my only advice here. Something like QuickBOard, KiteBOard, FeatherBOard
they allow 32+ chars
I think all of them do in 1.8.8+
i use scoreboard r
yeah you should probably just change to one of those I Listed
How can I get a player head from a placeholder as a GUI button??
Like how can I use the placeholder to get the players head
?dm-heads
How to use custom heads in DeluxeMenus:
a) A player name material: head-extended_clip
b) The player's head material: head-%player_name%
c) The base64 code of a head material: basehead-<code>:
- Go to https://minecraft-heads.com and find a head.
- Copy the head Value code (from the page bottom)
d) EpicHeads material: heads-<id>:
- Require https://www.spigotmc.org/resources/13402/
e) HeadDatabase material: hdb-<id>:
- Require https://www.spigotmc.org/resources/14280/
@mossy sleet second option
I am not using Deluxe menus I am using Ultra-Customizer
@turbid tide ?
Please respect the rules, be patient and don't ping staff members!
not sure. never heard of that plugin before
Hi, im trying to add an extension, but im getting this error: https://paste.helpch.at/voqefisuni.apache
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.
/papi dump
Might be related to McMMO, which is getting messed up by ViaVersion
Not entirely sure, that is a very vague error
the problem is one of your expansions. As Star said its probably MCMMO one. JUst delete it from the plugins/PlaceholderAPI/expansions folder and see if that fixes it
I deleted the expansion, and after /papi reload the same error showed up
Go through one by one and remove PAPI expansions, one of them is causing this problem
figured it out, apparently one of the expansions were empty
ah, that'd do it
thanks for the help!
Why PAPI throwing JSON parsing error on startup?
?startuplog
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.
that's not your startup log
Yeah but that's the error
Okay, the startup log will help us by not requiring us to ask you a million questions you may or may not know the answers to
Ah, it is getting malformed JSON
So?
So somewhere in your network connection is messing with that data
hmm anticheat?
hmm ok let me remove that
Worst case scenario, you make a new server with just PAPI and see if it works
if it doesn't, it's something at your network level and not your server
cause that is quite a weird error ngl
did already
how to fix it? https://paste.helpch.at/dunoxuxayu.sql
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.
That is pretty weird, have you tried downloading PAPI again?
It looks like it got messed up somehow
yes I tried, as well as I also tried to send the file back to the server
Try unzipping it and send the plugin.yml
it worked, thanks, do I need to send the plugin.yml file to my other servers? I'm afraid it will stop working on the next restart
You should replace the plugin.yml on any server that it doesn't work on, since it seems that it got corrupted somehow
ok thanks
PlaceholderAPI is downloading the vault expansion with /papi ecloud download vault, and it's appearing in the expansions folder, but /papi reload doesn't register the expansion: "No expansions were registered"
No errors in console, https://paste.helpch.at/sezinogoya
Tried manually adding the expansion too and problem still occurs
ah, 1.8.8. i think you need to use a different version maybe
Oh, it was working before I uploaded it to my host. On my local server it was working fine, does Bungee interfere with it at all?
Bungee expansion works, just seems to be Vault, I'm not sure why
huh, yeah I am not sure either
papi works just fine on 1.8, even 1.7 afaik
possibly a corrupted jar file idk? altho that would probably throw an error
try restarting the server, or downgrading to the previous version of the vault expansion
Prior two versions of vault expansion also not loading
is there a placeholder that returns the itemname of the item that a player is holding?
%player_item_in_hand_name%
amazing
Have u seen that @austere hawk
why would I
what target version btw
bukkit/spigot/paper version
because my research points out it's to do with the annotation mismatch between getExecutor and setExecutor, and I know for a fact the @Nullable & @NotNull annotations haven't always been part of bukkit
damn emilyy kinda smart
lo and behold it does work for ancient versions like 1.12.2 and prior
Failed to load due to a [NoClassDefFoundError], attempted to use net/luckperms/api/LuckPerms```
could anyone explain this for me
Sounds like LuckPermsExpansion is outdated
Do PAPI & HeroChat play well together?
Wanting to change the format a little bit
Currently using a mix of LP & HeroChat.
however seems like everything gets stored within the {name} field...
the prefix, name and suffix...
Which in turn doesn't let me edit a users nickname color
Damn
Try it so
I use spigot
Version?
You can't do that on 1.13.2+
You can with older versions
targeting older versions, this has no difference during runtime
[13:04:14 WARN]: [PlaceholderAPI] player is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
how can i fix this?
Okay
Your placeholder version is not the same in your server and plugin
With placeholder 2.10.9 you have to use PlaceHolderExpansion
And create an anonymous class
oh ok
Hey, can I get some help? I'm trying to replace the %worldguard_region_name% with another words, but idk how
I mean like, if a player is in region Test1, but instead of test1 I need it to show RegionA
I tried with formatter but idk how
I tried this "%worldguard_region_name% %formatter_text_replace_%worldguard_region_name%_andrews-fashion_Store%"
is ther a place holder for essentials balance?
vault @austere hawk
how to make a checkitem placeholder that checks if you have an enchanted book with efficiency 1, it will say yes
When i set arguments is it possible to set that i can use command without arguments without any permission and if i want to add argument i need a permission
I would do so regular players can use the /stats command
But the /stats (player) is only for VIP ranks
Is that in any way possible ?
Hi,
I have issue with placeholder %player_ping_color%. Placeholder showing me always zero and its grey.
Hi I have a question about placeholderapi! Basically we use essenstials for our money system and we are trying to put the ballance amount on our scoreboard. We did this with the %player_name% but please let me know if you know how to show their balance!
how to only get number of non staff players with placeholder ?
Hello! I've successfully integrated with PlaceholderAPI and registered some placeholders of my own
However, when I run /papi parse me <custom placeholder> in-game, it returns not just the value I assigned it
but also the name of the placeholder?
It's OK, I'm an idiot
I wasn't returning the value
so it actually wasn't updating the placeholder
ummm? can any1 help me, i want to add placeholder (like %vault_eco_balance%) to my plugin, i have hooked to papi but no luck :/ i followed this https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI
"Formatter" Expansion breaks all other expansions, any solutions?
Please respect the rules, be patient and don't ping staff members!
Β» Give the helpers some details
Β» Ask suitable questions
Β» Be polite
Β» Wait
any errors?
?help
Β» Give the helpers some details
Β» Ask suitable questions
Β» Be polite
Β» Wait
I'll have a look
ohk
update ur java version
oh yeah, there is a new verison isn't there
u should (really) be running java 16, as paper 1.17 will be requiring that in a few days when it releases
1.17 releases june 8
pog
Thx btw, it worked π
Please respect the rules, be patient and don't ping staff members!
can I have a placeholder inside 2 placeholders?
like %{<placeholder>}%
what brackets would I need?
if possible
{} for inner placeholders yea, depending on if the placeholder supports it
I want a placeholder inside of the {}
oh right, then nah
π¦
u could get around it by using a javascript placeholder tho
Will formatter expansion allow me to make 1000000 into 1M?
i think so yea
how to do?
Is this the right place to ask for an eCloud account?
I want to add placeholderapi supprot to my plugin https://www.spigotmc.org/resources/superheroes.79766/
Yup, dm a username and email that you'd like and i'll create it
I've written it up and uploaded it now, thanks for the help! Not sure exactly what the process is with verifying it but all my source code is public for easy reading and the like :)
Please respect the rules, be patient and don't ping staff members!
dose anyone know how i can get the bungeecord placholders to work?
like for server count?
/papi ecloud download Bungee
/Papi reload
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#bungeecord
thx
Hello, I am wondering if someone can help me. I use ApexHosting and they have tried to help me. I cant seem to get any placeholders to work. Mainly for Jobs Reborn (Latest version) I was wondering if someone would be able to help me. I input %jobsr_user_points% and that is all that comes up when I reload, and even restart the server. I have made sure that everything I have is compatible. Im using GUI Plus to create a GUI for jobs and use the placeholder so they can see their points. But nothing seems to work
what does /papi parse me %jobsr_user_points% put in chat?
Also for the record that is a premium plugin, they might have a support Discord for this kind of stuff. I've never heard of that plugin before.
I do see it claims to support PlaceholderAPI but they would know better.
But yeah follow what Star suggested too.
It was a premium plugin, so premium I have to get verified... Bit of a pain haha! But oh well! I will give that a go now star and let you know how that goes. I just tried a standard vault placeholder and it worked. So Ill try this and see!
No it's not one of our preium plugins so you don't need to verify anything.
I'm just saying typically premium plugins have their own support Discord.
Ahh I understand! Sorry about that, yes you are right! I entered that command and the amount showed up in chat
Star you fixed it!
Absolute genius, thank you so much!!!
Yeah so it's a problem with the premium plugin not displaying it correctly
Ahh I see, well thats very good to know. I will do that if I ever have this issue again! Seriously thank you, Ive contacted so many people about this, and no one had a clue!
Anyone know what I did wrong? I downloaded all placeholders and did the stuff but it does not work
%math0:{server_online_Hungergames}+{server_online_Cove}+{server_online_Cove2}+{server_online_Cove3}%
I am trying to combine worlds player count and put it on a npc I did it to my other one but I removed and forgot that command but I know it worked
it's %math_0: not %math0:
Ok thanks!
This? it didn't work
&b&lPlayers: %math_0:{server_online_Hungergames}+{server_online_Cove}+{server_online_Cove2}+{server_online_Cove3}%
try /papi parse me %math_0:{server_online_Hungergames}+{server_online_Cove}+{server_online_Cove2}+{server_online_Cove3}%
see what it returns
ok
it just says the command name
it just says %math_0:{server_online_Hungergames}+{server_online_Cove}+{server_online_Cove2}+{server_online_Cove3}%?
yes
Ok
it says "0"
okay /papi parse me %server_online_Cove%
0
okay so it's something up with the math placeholder then hmmmmmm
what if it needs a update
nope, you're up to date
oh
try %math_{server_online_Hungergames}+{server_online_Cove}+{server_online_Cove2}+{server_online_Cove3}%
uh /papi parse me (that)
hmm okay one second
%math_0_{server_online_Hungergames}+{server_online_Cove}+{server_online_Cove2}+{server_online_Cove3}%
try that
ok
I did it the npc says Players: 0.000
hmm I forget how to do the rounding, but at least it's technically right, right?
did you guys add decimals
well I'm not sure why that's even a decimal since you can't have half of a player
when they are in the world it says 1.000
oh I changed the hungergame worlds to something else and changed it back now its at 0
instead of 0.000
I guess it works thanks
oh excellent, im glad that worked!
maybe one of them wasn't correct and it was parsing as 0.00 instead of just 0
I think you can set the default, so maybe you can remove the .00 from the default options
is there a expansion that allows you to make 1000 to 1k
Hello! I am currently attempting to integrate one of my plugins with PlaceholderAPI using Maven. I am running into this error:
Dependency 'me.clip:placeholderapi:2.10.9' not found
Have I imported the project incorrectly?
How see your pom file out?
make sure you also add the repository url, everything you need is on the github wiki
If you're using Vault placeholders, you can use one of the formatting placeholders that vault already has.
Otherwise have a look at https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#formatter
I was looking at formatter but it won't let me do what I want it to
Is it for Something like essentials economy or vault?
VotingPlugin Points
5:
NAME: '&c&lDINERO'
LORE:
- '&2[Dinero]'
- '&6$%vault_eco_balance%'
MATERIAL: gold_block
POSITION-X: 5
POSITION-Y: 1
KEEP-OPEN: True```
not work %vault_eco_balance%
I'm having some issues in my timmings, one of then is this:
PlaceholderAPI::Task: de.tr7zw.nbtapi.utils.ApiMetricsLite$1$$Lambda$7677 (Single)
Can anybody tell what this is?
Is There Any Kind Of Papi Available Which Can Show Bedwars1058 Win Streak
Its Not For Win Streak
Unknown statistic 'mine_block_STONE'
Does anyone know how to fix this?
ah then no, u would have to ask the author of the expansion to create extra placeholders, alternatively, u can try ur luck in #849215409295196180 / #849215410560827432 @austere hawk
the material should be separated by a :
Can I Upload In #showcase ?
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
Β―_(γ)_/Β―
if its not listed on the placeholderapi github page, then check the plugins wiki
%statistic_mine_block:stone%
is there a placeholder that lets you ping your own server form diffrent locations? so you know what the ping is?
Is there a way to make a place holder for how many tags you have unlocked for deluxe tags?. Like for example I have 5 out of 20 holiday tags, abd 20 out of 20 crate tags?
%deluxetags_amount%
Is That for all?
Thank you
@unique leaf pinger
Hey, I use Deluxemenus and I donΒ΄t know the placeholder for the executer. My plan was when a Player klicks a block he gets command executed from the console. Like:
- '[console] give %player% diamond'
And my question is what is the placeholder for the player ? π
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
thx worked
hello %server_online% placeholder is showing vanished players too how can i fix?
what plugin is handling the vanishing?
super vanish and i think that's the reason
@warm topaz Unknown expansion.
try %supervanish_playercount%
okayy
i need help what is this? %javascript_rewards_delay_opendelay%
can enybody help fix it?
I think that is the javascript addon
https://paste.helpch.at/fibuqeyupa.bash
ayo what's that?
plugin guilds file:tires
tiers:
# Should permissions carry over between tiers?
carry-over: true
list:
1:
# Which level tier is this? 1 is the default.
level: 1
# What is the name of this tier?
name: Bronze (how use Placeholders)
how use with plugin?
name: Bronze (how use Placeholders)
example
name: Bronze %guilds_name% ?
How do you get verified on eCloud? https://api.extendedclip.com/expansions/superheroes/
Hi guys
After updating my plugins loaderboard doesn't work anymore
this is what happens
Does someone know what might be the cause of t his issue?
here's close up
@lilac oxide help pls
Please respect the rules, be patient and don't ping staff members!
sorry for da ping <3
Do a /papi reload and see if it fixes the issue
someone heeelp
Do you have PlaceholderAPI installed?
let me try
no it doesn't work
it just outputs: no expansions were registered!
but loaderboard is still not fixed
What happens when you do /papi parse me <one of the placeholders in the leaderboard.>
%skript_coins.player% what is wrong with this papi im have installed ecloud
help
help
What is the problem?
Has you add the expansion and has update papi and the plugin you use?
yes
For some reason %player_first_join_date% isn't giving the correct join date of the players, any idea why
is javascript-expansion going to be updated to work with java 15/16?
Does anyone know why this problem happens?
https://paste.helpch.at/yowopozaki.md
Looks like you need to install Vault
I have it installed
My mistake, I did not put the EssentialsX hahaha
HELP
papi parse Klayzx %statistic_time_played:hours%
[19:14:29 INFO]: 5
[19:14:34 INFO]: Klayzx lost connection: Disconnected
papi parse Klayzx %statistic_time_played:hours%
[19:14:36 INFO]:
Can someone help me? When I run papi parse being connected if it gives me the values, but when I am not connected it does not
It requires player to be online pretty sure
π¦
Someone help
%skript_coins.player% what is wrong with this papi im have installed ecloud
it shows %skript_coins.TheCreper65% my nickname
Hello, are only verified PlaceholderAPI expansions available through the eCloud command?
The website shows 219 entries, but the ingame command only says that there are 185 expansions on the eCloud.
Expansions with the blue shield (
) have been verified, meaning that they can be downloaded ingame via the command: /papi ecloud download
What are the requirements to get an expansion verified? Unfortunately I wasn't able to find informations about that on the linked wiki
Beg funny or Glare to test it :)
cc: @balmy marten ^

What makes it different to the current Skript expansion? Sources look almost identical
Is thee a papi of how many players are multiple worlds combined
server_online
Hi, where do I submit my javascript expansion script?
for CommunityScripts?
then just PR
or open a issue
actually
oh, ok... the CommunityScripts wiki page said to come here to the Discord Server... thanks...
hmm. will update it I guess.
its just that here there's not always someone to check it out. there it will not get lost
oh ok, I understand... π
[PlaceholderAPI] Loaded class ch.njol.skript.Skript from Skript v2.5.3 which is not a depend, softdepend or loadbefore of this plugin.
[17:29:22 WARN]: [PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
what is that
I al alkin on a group of specific world
Please respect the rules, be patient and don't ping staff members!
Like
World A
World B
World C
I want to know how many are there in A and B combined
Without C
Pls @ me if you answer
%math_0:_{server_online_worldA}+{server_online_worldB}%
Contact the author of the expansion / plugin and tell them to update their hook.
Yeah I'm not really a fan of this also being a Skript identifier. Also as cube said they seem similar.
Is it because it might clash with another Skript expansion? If thats the only thing, I could change it
Tyanks gonna try tha
I doubt that the author is updating the original (currently verified) Skript expansion, as it hasn't been updated in the last 4 years. I kept it the same so anybody switching does not have to change all their configs
Hey, can someone help me with this ?
%math_0:_IF({parseother_{PLAYER_NAME}_{jobsr_user_jlevel_hunter}>=10,0,5)%
Without math, the placeholder is %parseother_{PLAYER_NAME}_{jobsr_user_jlevel_hunter}% (And It's working) {} for playername need to be here
When I parse the math placeholder, i have an error from parseother, said its "null", I imagine I need to put some { } somewhere but i dont find where
I don't even think it would allow the loading of both. No matter what you'll have to change the identifier. Other than that I'll have to discuss with funnycube.
pinned messages there's an updated one. @austere hawk
Download it from there and put it in the plugins/PlaceholderAPI/expansions folder (delete the one that's in there)
Or you can try to get in touch with the old author and ask if you can take it over. If they tell us they are okay with it, you can keep the identifier the same and I'll retire the old one.
multiple people asked. he's not answering. so idk about updating the old one
Ahh. I'll have to discuss that with @balmy marten then and we'll get back to you maybe tomorrow.
I really appreciate that, thank you! Please don't hesitate to DM or poke me
use lowercase. {player_name}
also
that math
won't even work
bcz you have a placeholder inside a placeholder inside a placeholder
and its also wrongly written. but idk why you're even using parse other?
here try this:
hmm nvm. what even were you trying to do here? I'm very confused
