#placeholder-api
150650 messages · Page 48 of 151
Thanks<33
You're welcome 😄
Hi is there a way to check if there is a block on a specific xyz position and display
❌✔️
how do i get coordinates of a specific player
the coordinates placeholders can be found within the player expansion
if u need a specific player, u can use the parseother expansion in conjunction
ok
Really noone?
the JavaSCript expansion is your best hope here.
in the changeoutput placeholder, what do i do when i want to type in the matching portion of the placeholder but the matching value has _ too?
As of now I'm afraid that is not possible. In the future I'll ask the dev to add a way to escape slashes using \_
just use %statistic_time_played:seconds% instead
cant because i am using a placeholder that has _ in between when it prints
I dont knoe javascript
download the latest update, done
For some reason every time my server restarts it removes all my papi addons?? Anyone have a clue why this might be? I honestly have no clue. The addons are specifically Vault and Essentials, I download them using /papi ecloud download vault and same with essentials but replacing vault with essentials
do you get any errors when using /papi reload in the console or when loading PlaceholderAPI on server start?
whats the /papi ecloud download for the voteparty. when it does the broadcast dont say the players name.
you'll have to link your spigot account if you want help with anything VoteParty related
follow steps in #voteparty
right i ask the owner of the server to join and link the acc
alr 👍
i need to put a placeholder in a placeholder in a placeholder
that sounds like a bad idea and most likely not possible. at least not with PAPI. It only accepts to type of placeholders and that is %placeholder% and {bracket-placeholder}
this is the placeholder%progress_bar_{server_ram_used}_l:80_m:{server_ram_max}_p:#FF8000|_c:#FF8000|_r:#31C91F|% and i want to replace server_ram_max with %math_0:[rounding]_{server_ram_max}-{server_ram_free}% that would look like : %progress_bar_{server_ram_used}_l:80_m:{math_0:[rounding]_{server_ram_max}-{server_ram_free}}_p:#FF8000|_c:#FF8000|_r:#31C91F|% and wont work, i think that the {{}} are the problem
i want to use the math
yeah you have 2 choices here. Make your own placeholder or use the JavaScript expansion if you know any JavaScript
what is the javasscript expanision?
ok, i will read a bit, thx
ther isnt a placeholder that allows you to put placeholder with %pp<placeholde>% or?
nope
k
alr @quasi spoke he linked. its all good now
so first of all can you try /papi parse me %player_name% ?
ok ty
tell me what it says
all i get is %player_name%
can you do these 2 commands in order:
/papi ecloud download Player
then:
/papi reload
then do the parse command again
and tell me if it works now or not
👍 no problem
How can I save statistic placeholders for weeks, months and lifetime? Do you have any idea?
not possible. the statistics are taken directly from minecraft and they're just alltime.
I mean numeric placeholders by statistic.
with the new update for changeoutput, how do i use the new feature
just use \_ where you don't want the _ to be counted
so basically 1 \
and the _
%changeoutput_INPUT_OUT\_PUT_true_false%
like this I think
so basically the _ in the OUTPUT
will be counted as a character
in output
so OUT_PUT
ok ty
hope that makes sense xD
nice ty
How can I save numeric placeholders for weeks, months and lifetime? Do you have any idea?
You'd need a plugin to save it to a database or file.
Thanks. Do you know any?
Not really.
Hello, What wrong with this code?
var prison1 = Number("%bungee_prison-1%");
var prison2 = Number("%bungee_prison-2%");
var prison3 = Number("%bungee_prison-3%");
var PrisonTotal = prison1 + prison2 + prison3;
function returnTotal() {
return (PrisonTotal);
}
returnTotal();
now it shows me 000
you don't need an entire javascript for that tho. just use the math expansion
%math_0:_{bungee_prison-1}+{bungee_prison-2}+{bungee_prison-3}%
and probably the number
whats that 0?
was not actually making them an integer
number of decimal
if you remove it it will always have 3 decimals
which you probably don't want
no problem
also you can set the default to 0 in plugins/PLaceholderAPI/config.yml so you can just use %math_{}+{}%
0
make sure you have latest version of the Math expansion /papi ecloud download Math then /papi reload
yes I have
Hello guys, I just noticed in my console today this error. Is there anyone who can provide some insight. I am not sure what SuperRonanCraft is.
it's the mysql expansion it seems
yeah its been broken for a while. idk if there's a fix for it yet
can you parse these please: /papi parse me %math_0:_{bungee_prison-1}+{bungee_prison-2}+{bungee_prison-3}%
it returns 0
Ok thanks, I was wondering if that was the case since I saw the expansionMySQL but wanted to make sure. I will just delete the expansion then. I ended up not using that one anyway.
hmm and there's 0 players in all those 3 servers? bcz then it seems to work
yes but in scoreboard...
theres nothing
now I have 1 in one sv
but still 0
now 1
dude..
it might be just the number of characters then I guess. if you want a javascript here:
fun total() {
return parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")
}
total()
thats all the code?
well
made it in a function so its more understandable
oh
yeah I think it can be just parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")
js ez
it shows 100 again
yes
hmm this is strange
it concatenates the but I don't get it. It shouldn't since they're all parsed to integers
fun total() {
var prison1 = parseInt("%bungee_prison-1%")
var prison2 = parseInt("%bungee_prison-2%")
var prison3 = parseInt("%bungee_prison-3%")
var total = prison1 + prison2 + prison3
return total
}
total()``` idk maybe it works the long way?
now it doesnt show anything
do /papi dump please and send the link here
hmm
it will generate a link
uve done it again!
fun!
oh my fucking god
😂
i wrote function instead
function total() {
return parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")
}
total()```
dont worry
is that link ok?
yeah and I've looked at it and only thing I can really recommend (even tho I Don't expect anything from it) is to update PAPI to the latest development build
nope
can you test ```js
function total() {
return parseInt("1") + parseInt("2") + parseInt("3")
}
total()```
and see if it will parse 123 or 6
nope
what does it say?
nothing
you tried it with /papi parse me %% ?
nope
always test it like that
nope
duh
you need to parse the javasript
placeholder
/papi parse me %javascript_<identifier>%
it returns 1
huh this seems more like a problem with your scoreboard if /papi parse me %javascript_returnPrison% works
does your scoreboard allow more than 16 chars?
hmm
Should I contact the members from the quickboard team?
%server_time_MM/dd/yyyy% this placeholder works
well I can't really help you any more from here so probably the best thing to do. If you say /papi parse works then the placeholder works
probably contacting their team and seeing if there's any debug they can make on their end
as in in their plugin
I Don't see why it would be needed
bc of the { brackets?
Do anyone know a placehodler for server ping
Hi, i'm trying to install skript expansion.
With the /papi ecloud download skript, the download works, but on the /papi list, others expansions are here, but not skript.
And with the https://github.com/Altruiis/skript-expansion/releases/ expansion, when i /papi reload nothing happened, and with the /papi list, no expansion are here, not even the others
/papi dump and paste it here
With the /papi ecloud download skript :
https://paste.helpch.at/jewozotofi
With the link 1.2.0 :
https://paste.helpch.at/telocixora
From a cursory search, it seems the original Skript expansion doesn't work very well. Try Skript-Fork
Same problem with the /papi ecloud download skript
https://paste.helpch.at/ajixecafev
Do i need to rename it Expansion-skript.jar ?
Not sure, worth a try
If i do, same problem with the https://github.com/Altruiis/skript-expansion/releases/
Any errors in console?
[22:21:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.ClassNotFoundException: Failed to remap class de.soulcraft.SkriptExpansion
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_282]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_282]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_282]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_282]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_282]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_282]
Caused by: java.lang.ClassNotFoundException: Failed to remap class de.soulcraft.SkriptExpansion
at red.mohist.bukkit.nms.proxy.DelegateURLClassLoder.remappedFindClass(DelegateURLClassLoder.java:99) ~[DelegateURLClassLoder.class:?]
at red.mohist.bukkit.nms.proxy.DelegateURLClassLoder.findClass(DelegateURLClassLoder.java:59) ~[DelegateURLClassLoder.class:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_282]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?]
... 6 more
(sorry)
for the spam
[22:21:32 INFO]: Nealisissued server command:/papi reload
[22:21:32 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[22:21:32 INFO]: [PlaceholderAPI] Fetching available expansion information...
[22:21:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions
Which version of Java are you running?
How can i know that ^^'
root@Pixor:~# java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)
ooh okay it's probably Forge messing with something, I'm honestly not sure with Forge in the mix
Oh, ok, thanks anyway
19.05 22:32:00 [Server] Craft Scheduler Thread - 7/INFO Checking for Updates ...
19.05 22:32:00 [Server] Server thread/WARN Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend, softdepend or loadbefore of this plugin.
19.05 22:32:00 [Server] Server thread/INFO Successfully registered expansion: vault
19.05 22:32:00 [Server] Server thread/WARN Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.3.3 which is not a depend, softdepend or loadbefore of this plugin.
someone happens to know what that means
that's fine, it just means it's loading
ah ok thanks
Do anyone know a placehodler for server ping
@fervent spire
One question
Using the %name% variable does not show me the level name
In the pvppremium add-on
Do you know any way to fix it?
Why ping me? And why post in 3 different channels?
I haven't asked anything for a long time so I didn't know where I should ask this
I mentioned why you are support xd
srry
You'd have to speak to the developer of the plugin as the %name% is handled by that plugin only. So if it's not working than they will be one's that can help you fix it.
ok thx
hello i have an error in to my consol about placeholderAPI but the plugin that the error give is not placeholder API but it is NameTagEdit
I have a few numbers from placeholders ( island level , Number of challenges completed etc ) Id like to get an average of them. and display it, from what iv read so far a javascript placeholder should be able to achive this correct? If so i have little to no idea how to do that Some one mind pointing me the right way
/papi ecloud download javascript
/papi reload
In /plugins/placeholderapi/, a JavaScript folder should appear and in there is an example.
the example file apears to be blank
Please provide the error.
the error is fixed but the priority form Nametagedit is not working?
Any idea what is causing this? Is it the daily rewards plugin or placeholder-api. It's strange had been working fine for awhile then a couple days ago on daily restart, started to get this console error and it won't enable. Only changes to server was updating papermc, not either plugin. https://pastebin.com/DS24ArVa
Hello, when using HolographicDisplays with ajParkour, my PAPI placeholders simply dont load.
I type %ajpk_stats_top_name_1% in the holograph and it simply shows %ajpk_stats_top_name_1% instead of acttualy showing the placeholder.
Please help ASAP, thanks.
Hello? Anyone?
install Holographic Extension and ProtocolLib
Thanks, i have ProtocolLib but not Holographic Extension
also, if you want to make the placeholders refresh on the holograms, you have to put one of the following placeholderse on each line containing placeholders
how do i trim the decimal point off my numbers in JS.
Finally got my math works helps if the type is number.. derp.
if any one can tell me how to remove the trailing .0 that would be
return added.toFixed(0)
😂
Keep in main tofixed can bug out in some cases.
ok sowwy
what plugin?
for the gui I mean
Command Panels | Custom GUIs 3.15.5.4
I want to install one
u can also suggest
for minecraft 1.16.4
I want to display some information using gui
I have the placeholder codes
well are you sure that COmmand Panels even supports PlaceholderAPI?
Idk that
Well you can use DeluxeMenus for example. I Know for sure that plugin supports PlaceholderAPI
An economy plugin have numeric placeholders, but it shows numbers as 43958349. I want commas but it doesn't support. Do you know any add-on that does it?
how do I put a player count for a server on a npc
you can try the %server_online% placeholder
do I /npc rename and add %server_online%?
that won't work no.
CItizens doesn't accept placeholders as names
afaik
you have to set your own hologram using HolographicDisplay I think
but you can try I guess
maybe they added PAPI support
so I need to use holographicdisplay so the npc says how many players are on a world for bungeecord?
yes I think so. also if its a server from bungeeocrd then you need to use %bungee_<server-name>% not server_online
well actually you need: HolographicDisplay, HolographicExtension and ProtocolLib
Since Minecraft is changing to Java 16 I want to switch of nashorn engine for obvious reasons. What would I put in the engine mode for JavaScript to use graal?
Please @ me if you know
@cunning elk because TimezoneID doesnt refer to GMT, UTC etc, but this https://www.google.com/amp/s/garygregory.wordpress.com/2013/06/18/what-are-the-java-timezone-ids/amp/
view_requirement: '%iridiumskyblock_island_level% > 50' why is this not working?
I have a question I need to clear peoples inventories and a plugin we have got rid of the like @p option but does anyone know how to clear someones inventory with a command block when they step on it?
I didnt?
well you did. #general-plugins and this
and I am not pissed at you. just letting you know how and where you should ask
that's all
is there a way to utilise javascript engine on Java16?
not yet no. There is a new version in development but there are still some issues to take care of before it can be released
owch! i'm back in MC after many years and saw notifications in my console that nashorn is getting removed in future JDK releases and was wondering if I should still stick to PAPI's javascript
yeah it got removed in java 15 I think
you will be required to run Java16 for spigot 1.17, and by doing that you are forced to lose javascript engine
well the new js expansion will probably be released by then
sounds good
its just the dev was kinda busy I think. And is mostly done just needs more testing and there's a few bugs we discovered
is it extendedclip?
nope. thienbao is working on it
he did not. but he is taking a break and has been taking a break for a while now.
makes sense. had a few of his plugins that I bought back in 2016, there's hex in 1.16 now and deluxechat doesn't seem to support it so I had to ditch that one as well
yeah. he was working with someone else on a complete rewrite but idk when that's coming
i'm with ezchat now, seems perfect and its opensource as well 👍
Do anyone knows a good speed tracker
Block/sec or something like that
Speedpersec expansion isnt really good
[19:42:24 WARN]: [PlaceholderAPI] failed to download expansion information
java.util.concurrent.CompletionException: java.net.UnknownHostException: api.extendedclip.com
at me.clip.placeholderapi.expansion.manager.CloudExpansionManager.lambda$fetch$4(CloudExpansionManager.java:174) ~[?:?]
at me.clip.placeholderapi.expansion.manager.CloudExpansionManager$$Lambda$6339/0x00000000564de020.get(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_292]
at java.lang.Thread.run(Thread.java:823) [?:1.8.0_292]
Caused by: java.net.UnknownHostException: api.extendedclip.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:1.8.0_292]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_292]
at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_292]
at java.net.Socket.connect(Socket.java:556) ~[?:1.8.0_292]
at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[?:1.8.0_292]
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) ~[?:1.8.0_292]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) ~[?:1.8.0_292]```
can anyone help pls
you has your server on a host?
yes
they can block some incoming trafic.
now i fixed thanks
Does anyone know a plugin so that I can sync a few placeholder api placeholders over multiple servers? Without the plugins installed on other servers that provide those placeholders..
Hello i have i queston
How ro delete it?
Loaded class javassist.d from PlaceholderAPI v2.10.9 which is not a depend, softdepend or loadbefore of this plugin.
that's just a debug message from spigot. no way to disable it afaik
PlaceholderAPI doesn't shade javassist tho 🤔
infected jar perhaps?
Hey I am very new to this :)
I am currently using Deluxehub and I am trying to display Luckperm roles. I have installed the extension through papi ecloud. Now I try to write "%luckperms_prefix%" but it just displays %luckperms_prefix%
that means the expansion is not actually registered
That was my thought too
execute these 2 commands:
/papi ecloud download LuckPerms
/papi reload```
if that doesn't work do /papi dump and send the generated link here
Yeah
It says no expansions were registered
Though I can see it there
under expansions
restart the server and send the startup log. it usually says in there why it didn't load it
?startuplog
There
Failed to load due to a [NoClassDefFoundError], attempted to use net/luckperms/api/LuckPerms```
How would I update an expansion
well you'd have to go to plugins/PlaceholderAPI/expansions and delete the jar from there and reexecute those 2 commands
Ah
well it doesn't show up in the logs
make sure you have the jar
in the plugins folder
Ooh
Let me check
Aight I am reintalling it again
Aight
So now it doesn't show anything lol
that means you have no rank with the prefix set
try %luckperms_rank%
to see if at least you have the rank
?imgur
I think so. Not really sure
but probably
They are ok good
Trying to use imgur but internet is not the best
Can u see this
Oh
I think I found the issue
I use bungee, that has luckperm included already
Can I use bungee_luckperm_rank
you have to link the bungee luckperms to the server luckperms using mysql
Oh lord
not that hard.
all you have to do is get a mysql database, export the current database
and import it back when you switched to mysql
still a bit of work tho
you'll have to follow their wiki
luckperms.net I think
👍 gn
Do anyone knows a good soeed tracker
Block/sec
Bc speedpersec isnt that good
Hey can someone help me setup placeholder api so it says if the a server is online or offline over a npc?
Well, I'm not sure what NPC plugin you use, but if it supports PAPI, then all you need to do is use either the Pinger expansion, or the BungeeCord expansion to see if they're online
How can I change the engine to graal for JavaScript expansion?
hi i cant convert javascript argument to placeholder in placeholderapi.
for ex:
i write var x = `%rank_${args[0]}%` and its gives an error. how can i convert javascript argument to placeholderapi's placeholder?
var x = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "rank_" + args[0] + "%")
Hello,
I got this error
https://pastebin.com/nzZh9AFw
and I don't know how to fix it (seems related to the engine I use, so default one)
is your server running java 15 or 16 by any chance? If yes you'll probably have to downgrade for a bit until the new javascript expansion and deluxemenus are launched
||this error sounds more like a file that has been edited/removed while server was running tho||
I just have to do this and I don't need to import extra class, right?
yeah
okay thank you so much
java 11 (jdk)
didn't change any file :c
seems fixed, strange, it's nice 🙂
¯_(ツ)_/¯
An economy plugin have numeric placeholders, but it shows numbers as 43958349. I want commas but it doesn't support. Do you know any add-on that does it?
Hi, i've implemented the papi repo in my maven project.
How can i "auto download" expansions?
I don't think the API offers that afaik
you could probably use the ecloud to download it from there yourself. using a plugin of course
So plugins that requires PAPI and a specific expansion don't download it by themself?
nope. Server owners have to download using /papi ecloud download EXPANSION-NAME
but nowadays most people just put the expansion inside the plugin
bcz that is possible as well
Because if i try to run the command "papi ecloud download Statistic" inside my plugin (as console), i get "failed to find an expansion named Statistic" (PAPI is a dependency)
?ecloudblock
any help?
?help
Is there a way to make a countdown on the same day? I'm using the Server expansion but I can't seem to do this. I'd like to make a countdown for daily restarts, and honesty it's preferable if I had a way to just get seconds in the day instead of per minute
hmm
might need to do some math @austere hawk
it might help to make a javascript for it, to keep it clean
Does the PlaceholderAPI.static.setPlaceholders() still work with javascript expansions? I always get the Caused by: <eval>:1 ReferenceError: "PlaceholderAPI" is not defined error. Please @mention me if you know how to fix this.
var pos = "ndsmysql_position";
var something = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + pos + "%");
%math_{server_time_HH*3600}+{server_time_mm*60}+{server_time_ss}% @austere hawk
that should give you seconds in the day I think
actually that works decently... but is there a way to get like... the seconds since a certain time (ex. 14:55)
if that makes any sense
ye
just do a countdown
you can combine dates I bet
so take the hour and minute you want, get today's date
and combine it
soo i managed to mess around with it but i can't seem to get something that compares the amount of seconds passed in a five minute window, returning 100 if it just started and 0 when 5 minutes have passed, i'm trying to do this for a plugin that only works in that format
Hello!
Recently i was wondering how i could create a placeholder that return only the player on a specific index of a list of peoples who did a command or have a certain group/permission in luckperms.
I thought that PlayerLIst could be helpful doing this since it gives you a way to create a list of player with a certain perm and then take one of them by selecting the player at the index you want (ex. of a placeholder of playerList which take the first player of the list of player online with permission "staff.admin": %playerlist_online,perm,yes,0,staff.admin%).
However it doesn't seems like this placeholder works with luckperms permissions/groups, and to be honest i'm to lazy to learn how the permission.yml works.
At this point i got two questions: Is there a placeholder that works the same and got luckperms integration? If not, is there another way i could do this thing of take a player form a list without using permissions?
Thanks in advice
Hi ! Anyone know how to reset the statistic in the "statistic" extension to 0?
ah I can be found in the world stats folder?
Yes
Hey there, is it possible to use one placeholder inside another? I have a chat plugin that won't accept a placeholder as its colouring code as it needs to be RGB not hex, but I can use another placeholder to convert hex to RGB, but I can't seem to see how, if at all, I can use that colour placeholder inside the colour converting placeholder
Try using {second_placeholder) inside the first one
It may ot may not work
Pretty sure PlayerList works with LuckPerms + Vault. As long as you have those it should work just fine.
Thank you! I’ll try it 🙂
(With {}s not %%s)
👍
hey, none of the placeholders from ANY plugin work after updating Spigot to the lastest 1.16.5 version
?startuplog
seems to be a problem with the prison plugin from what I can tell
that's just the error prison gives, but no placeholders from any other plugins work either
send the startup log then ^^
I told prison dev, he says it's likely an issue with Spigot/Bukkit update broke something.
https://paste.helpch.at/eqifirokak.md
said it should be reported
I mean, even %player_name% doesn't work
strange. the error soeems to appear when it loads Prison. NOthing else.
is it a custom prison plugin?
custom? meaning?
it's the alpha release from the discord
but I've been using this same version for 4 weeks, and today is the only time it's not working
yeah but what Prison plugin? Can you link it?
because Idk how it can be a problem with PLaceholderAPI Since it registers all the other expansions and breaks when it reaches Prison.
hmm
what surprises me is that it's always worked before, and we have someone else, using an earlier prison version that has the exact same error
can you restart the server and don't execute any prison command
just /papi parse me %player_name%
see if it works
then execute /prison placeholders reload
and see if that same command will work after
/papi parse me %player_name% returns my name, properly now
/prison placeholders reload gives the same error
do you want logs?
well then its clearly not a PlaceholderAPI error. Its something to do with the prison plugin. I've got no idea what but if the placeholders work with /papi parse me then the plugin works
nothing I Can do about that
Doesn't look like PAPI is registering my placeholders
er
its not retaining them
[18:12:10 ERROR]: Could not pass event PluginDisableEvent to PlaceholderAPI v2.10.9
[18:12:10 ERROR]: Suspected Plugins:
[18:12:10 ERROR]: grakkit{enabled,ver=4.1.3,path=plugins/grakkit-4.1.3.server.jar}
[18:12:10 ERROR]: PlaceholderAPI{enabled,ver=2.10.9,path=plugins/PlaceholderAPI-2.10.9.jar}```
Wait do I need to unregister my placeholders in the onDisable method?
Is there a placeholder addon I can use to assign like a colour to a user, like a placeholder for a user's favourite colour or something? I want to use it to format a chat plugin
Hmmm I'm not sure
My server dies now
Every time I /stop or anythiong
it just complains
> [18:12:10 ERROR]: Could not pass event PluginDisableEvent to PlaceholderAPI v2.10.9
> [18:12:10 ERROR]: Suspected Plugins:
> [18:12:10 ERROR]: grakkit{enabled,ver=4.1.3,path=plugins/grakkit-4.1.3.server.jar}
😢
wha
[18:32:52 ERROR]: Suspected Plugins:
[18:32:52 ERROR]: PlaceholderAPI{enabled,ver=2.10.9,path=plugins/PlaceholderAPI-2.10.9.jar}
[18:32:52 ERROR]: Exception details below:
com.oracle.truffle.polyglot.PolyglotIllegalStateException: The Context is already closed.
at com.oracle.truffle.polyglot.PolyglotContextImpl.checkClosed(PolyglotContextImpl.java:714) ~[org.graalvm.truffle:?]
at ```
theres more but its being a baby head
Hi
When I put the vault placeholder% vault_eco_balance_formatted%, this causes for example $ 1,000,000 to be seen as 1M, but this only goes up to Q, then M, B, T, Q and then normal digits start to appear and no more letters
Please, I've been asking for help for 3 days but I can't find a solution!
How do I easily change the color of a placeholder? Some placeholders I have are just including color codes and it's very hard to get them out, I get I can use JS but is there an easier way to do this?
The javascript-extension for placeholderapi is no longer working with JVM 16. I see it doesn't work on anything higher then JVM 11. I have also tried GraalVM CE 21.1.0 JVM 16 and it has the same problem. Any fixes possibly? Maybe an alternative?
I currently have my Placeholders setup all in 1 class, but I want to organize them into multiple.
How can I use the same identifier in both classes?
When I use the same identifier in both, one breaks
have one class extend PlaceholderExpansion but then u can seperate the logic of the placeholders in multiple classes, then call these in the onRequest method
Thanks!
hello it is possible to list the players but don t show the play how are in vanish?
All of my placeholders are broken. I restarted the server multiple times
the PlayerList expansion
send over the startup log
It got a lot of things
if you know javascript you could probably use the javascript expansion for this.
Any e ample
Ok thanks
I fixed it. The formatter expansion doesn't work
ah Ic. well glad you found a fix 👍
Hi, perhaps a bit of a beginner question, but I couldn't find a whole lot material about it online. Is it possible to nest placeholders? As I tried the following, which did not work: "%world_seed_%player_world%%"
Oh I noticed Discord removed some of the _, not sure how to disable that
some expansion support nesting using bracket placeholders
%placeholder_{other-placeholder}%
but not all of them. The developer of those expansions need to add support for them
2 ways usually to do this. either use \ or put them inside codeblocks
so like this \_ or `_`
Ah I see, thank you! Let me quickly try that out to see if it works
just took a look at the code and it doesn't look like that's possible I'm afraid.
for this expansion
but you could always use the javascript expansion to make your own placeholder
Yea it's not working indeed, the placeholders does get 'resolved', but just ends up blank
Oh wow didn't know this, thanks again haha!
function getWorldSeed() {
var world = args.length == 0 ? BukkitServer.getWorld(args[0]) : BukkitPlayer.getWorld()
return world.getSeed().toString()
}
getWorldSeed()
```here
this javascript code should get you the world seed
I'll tell you in a second how to make it work step by step
Seems correct to me, didn't even know all of this was possible, just started messing around with placeholders like hours ago lol. Just to verify, by default it's not possible to make the World expansion from papi just take the current world automatically?
- FIrst of all download the javascript expansion:
/papi ecloud download JavaScriptthen/papi reload - Go to
plugins/PlaceholderAPI/javascript_placeholders.ymland add this:yml seed: file: seed.js engine: javascript - Save the file and do
/papi reload - Go to
plugins/PlaceholderAPI/javascriptand you'll find aseed.jsfile in there. Put the code I Just gave you above in that file - Save the file and do
/papi reload - TRy the placeholder:
/papi parse me %javascript_seed_WORLD-NAME%or just/papi parse me %javascript_seed%. First one returns the seed for a world you want by using its name, second one returns the seed of the world the player is in.
Right now, no. If you knew java you could edit the expansion yourself but I assume you don't have any java knowledge
but you can just follow the steps I just gave you and it will be a lot easier
It's working, thank you!
Ah according to the github page of the world expansion: "For placeholders which has the argument <world>, you can name the argument to the specific world, or symbol "$" (without ") as local world"
[19:01:31] [Server thread/WARN]: [PlaceholderAPI] Task #38 for PlaceholderAPI v2.10.9 generated an exception
java.lang.NullPointerException: null
wtf
How can I fix?
Help pls
?startuplog
@austere hawk send over the startup log ^
[19:18:07] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_292]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:686) ~[?:1.8.0_292]
at java.util.zip.ZipFile.getEntry(ZipFile.java:315) ~[?:1.8.0_292]
at java.util.jar.JarFile.getEntry(JarFile.java:240) ~[?:1.8.0_292]
at java.util.jar.JarFile.getJarEntry(JarFile.java:223) ~[?:1.8.0_292]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:120) ~[server.jar:git-Paper-33d42c8e]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:104) ~[server.jar:git-Paper-33d42c8e]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:405) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_292]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?]
... 2 more
When i /papi reload
please sue paste bins and send a startup log
It only gives me an error when I reload, the expansions don't update
oh true. I Didn't see that. welp... xD
No worries, feel bad that you had to code that now unnecessary (for me at least) javascript function
alr then. will let good support help you and I'll just mind my own business. I'm asking for a startup log, you give me an error ...
What do you need the startup log for?
well if that's how you want this to go.. I Don't have time for this. Just reinstall PlaceholderAPI. From the error it looks like it might be a corrupted jar. Not sure tho since apparently I Can't have a startup log.
gtg now. someone else will help you if reinstalling is not enough
%math_{value}/100000)_% M
Why not work?
[Math] Invalid Placeholder detected!
[20:04:54 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{value}/100000)%
[20:04:54 WARN]: [PlaceholderAPI] [Math] Cause: Not allowed placeholder-syntax '%math<text>_%'
ugh what is value?
`money:
placeholder: '%vault_eco_balance%'
rules:
- ">=1000000;%math_{vault_eco_balance_fixed}/100000_%M"`
The placeholder does not return the value with M
ah
did you know that vault has an already formatted placeholder?
%vault_eco_balance_formatted%
and there's also a formatter expansion
it seems like he's trying to make his own formatted placeholders
Yes, but it only comes to Q
that won't work btw. that formats only by adding commas or dots etc.
idk about number format. never used it
I do not know how to use it
i send
download that expansion
i send one more thing
/papi download javascript
/papi reload
i'm trying to find my file
@mint fable btw when you've got some time, read my last message here please. I need some input from you https://github.com/extendedclip/DeluxeMenus/issues/2
I don't know how to program in JS
ahh
he's already made it you just have to add it to your server
ok
aha
var exp = parseInt("50912");
function formatNum(num){
var suffixes = ['', 'k', 'm', 'b', 't', 'qd', 'qn'];
var decimals = 2;
for(i=0;i<suffixes.length;i++){
if(num>=1000){
num = (num/1000);
} else {
return num.toFixed(decimals)+suffixes[i];
}
}
return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}
formatNum(exp);
so
k,m,b,t,Q,Qt,S
all you have to do besides saving this script (follow https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script for tutorial)
is change your suffixes and the placeholder
you can change that yourself
instead of parseInt("50912") make it parseInt("%placeholder%")
and remember it has to be the raw number, no commas or anything else
ok
var exp = parseInt("%vault_eco_balance_fixed%");
function formatNum(num){
var suffixes = ['', 'k', 'm', 'b', 't', 'Q', 'Qt', 'S'];
var decimals = 2;
for(i=0;i<suffixes.length;i++){
if(num>=1000){
num = (num/1000);
} else {
return num.toFixed(decimals)+suffixes[i];
}
}
return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}
formatNum(exp);```
here
changed it for you
noice
well cj when u got 2 minutes check my link pls. ty
what have you tried?
did you save the javascript as a .js file in your server/plugins/PlaceholderAPI/javascripts folder?
I see NaN
and define it in the config?
yeah
what did you type to see NaN?
I gave myself 1Q and it comes out written NaN
NaN
eco give myname 1000000
which placeholder sorry
%javascript_name%
can I see your javascript config?
ok
soldifatti: file: money.js engine: nashorn
yeah
var exp = parseInt("%soldifatti%");
function formatNum(num){
var suffixes = ['', 'K', 'M', 'B', 'T', 'Q', 'Qt', 'S'];
var decimals = 2;
for(i=0;i<suffixes.length;i++){
if(num>=1000){
num = (num/1000);
} else {
return num.toFixed(decimals)+suffixes[i];
}
}
return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}
formatNum(exp);
oh no no
this
use this
your placeholder is not %soldifatti%
ah
nah he changed the suffixes @turbid tide
the one I sent is exactly what you need
the placeholder is %vault_eco_balance_fixed%
oh nvm then
so change that and try again
so what do i wear?
replace parseInt("soldifatti") to parseInt("vault_eco_balance_fixed% in yours
to %vault_eco_balance_fixed% in yours
%javascript_soldifatti%
more prefixes he means
suffix*
btw cj why not add it to the community scripts ?
I was gonna
just edit the page if you've got access to it. which most likely you do
what does it say
only reaches 9.22Qt
how much do you have
1Sextillions
yeah
umm
What can I do?
type /papi parse me %vault_eco_balance_fixed%
what does that say
9.22qt? (but the whole number)
yes
bruh
bruh i'm lazy
I don't know
How can I see?
just run those commands
it will download the latest
latest papi dev build is here: https://ci.extendedclip.com/job/Placeholderapi
if you wanna see if that helps/fixes it
do you use essentials btw? as your economy? Bcz you might also have to increase the max amount in there
he has 1s
So I download this?
oh. mb then
ye, it's weird
yes, download the dev build
ok
1st 2nd or 3thrd
PlaceholderAPI-2.10.10-DEV-123-javadoc.jar 96.18 KB visualizza
PlaceholderAPI-2.10.10-DEV-123-sources.jar 85.18 KB visualizza
PlaceholderAPI-2.10.10-DEV-123.jar
3rd
they might be using Long and not BigINteger then
same
yeah they were pretty sure. at least the api requires doubles
when you want to add/take
9.22qt
Should I delete the folder of papi?
no
the fixed makes it a long
I did it then
so we need to get rid of that
hi i had question, is any possibility to make gradient hex colored placeholder? i had for example %essentialsnick% and i want it to be gradiented
I always see 9.22qt
I haven't deleted it
what does /papi parse me %vault_eco_balance% return
because we need to use that I believe and strip/change the formatting on it
1.01E23
Bruh
you could try and use the RGBPlaceholder expansion
That's why I wanted to use Math, but it doesn't work
%rgb_gradient_#<HEX>:#<HEX>_{essentials_nickname}%
What can I do then
the issue lies in the fact that the _fixed placeholder returns a long
ah
will try thanks
is it not OS? you could fork it and change it maybe? idk
Bruh
?
I've been looking for a solution for this for days and days but still nothing
a
ah you'd have to format the string
So what do I do
?
i wonder if you can do it in javascript or not
a
Do such a thing if the money is more than or equal to 1S (in numbers) divide it by 1S and add "S" to it
idk
?
I'm not 100% sure, but try Number instead of parseInt
ok
not fixed
no fixed
this time
because that's max 9.22Qt
oh it shows 9.22Qt?
y
did you use fixed
did you use var exp = Number("%vault_eco_balance_fixed%"); or var exp = Number("%vault_eco_balance%");?
you should use the second one
without fixed
fvck vault
Maybe because the fixed reaches 9.22Qt I don't know
sort of
Badly written code
Man, the important thing is that we have solved it;)
I really don't know how to thank you "
ye
how
very nice
prego
sei italiano?
no 😂
ahahaha
mmh
Nice
it should parse placeholders yeah.
the bracket ones
huh?
it goes from T to QT?
a
00S,00Q,00q,00t,00b,00m,00t,000
wtf
it makes sense
😂
sextillion, quintillion, quadrillion, trillion, billion, million, thousand
yes
St?
Ok it works I just got confused
why not Sp
mmh ok
😉
ok, thanks for everything, you were really very kind, now I have to go, bye !!
Guys everyone who joins [LocalTime] Couldn't get X_gamer_x5's timezone. Will use default timezone.
i dont think its papi related but yea
pretty sure that is from the LocalTIme expansion. NOt 100% sure tho
what does it mean? how do i fix that
You can't really fix it. It just can't find the player's time zone
do you use TcpShield or something like that btw? Usually those break that
not that i know
well usually it happens when it can't get the location of a player from their IP so it doesn't know what time zone they are in by default
what do i add and where? (path)
I don't think there is a way to disable that message
you should have named it Number formatting or something like that
it will probably draw people's attention more
i dont know
It is
nice
yes it is
you can delete it if you don't use it, but you can't disable that message
you can just ignore it or delete the expansion
completely
%localtime_time_HH:mm aaa%
lmao. idk its to much imo. If you go over 1b its already insane
it gives somthing random
but yteah nice
not random
well they are commented out
your server must be located in GMT+1 then
imma change the time in my server
like France, Germany something like that
tbh
idk if changing the time in your server will affect. pretty sure it takes it from the ip
