#placeholder-api
1 messages · Page 76 of 1
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Maybe the placeholder is too long idk u_u.
hmmm its working fine ? dont have bskyblock to test that placeholder but nothing seems wrong with it
whats the player name form that placeholde ?
Nedjii
@torn inlet returns ur name right ? /papi parse me %Level_bskyblock-island-level-top-name-1
Yes, it also works in the item's lore.
@torn inlet seems like head material doesnt like the -
u can try making js placeholder to return the level placeholder value
Ok, thanks !
1.8.8 papi version?
latest
Restart the server properly
@bronze bison Making js placeholders worked, thanks ! 
@torn inlet
Please be patient and don't ping helpful or staff members!
Great! Glad to help 😃
waste of time with not help at all !!!
And saying that in every channel will help?
Due to spigot's shit way of dealing with stuff, it's currently in angry mode meaning the api cannot get your plugin purchases
Forget it .... they only take people's money with no fucking support at all
they are for laugh
Hey
Is this plugin avadible on NukkitX?
Yeah
Currently we only support Bukkit / Spigot / Paper.
Hi guys, im pulling my hair out here.
19.08 21:04:34 [Server] INFO Successfully registered expansion: player
19.08 21:04:34 [Server] ERROR Failed to load placeholder expansion from class: com.extendedclip.papi.expansion.player.PlayerExpansion
Im trying to parse the %player_name% on my 1.18.8 bungeecord spigot server and its not working. Any ideas?
I downloaded the player expansion using the cloud command, but after trying for ages to get it to work, I downloaded the expansion from the Wiki
Plugin version is up to date
^^ sorted
hello can i ask
is there a placeholder that like
for example
umh, like placeholder of player online. for example
%player_online_<player # from tab>
something like dat
like let you list players online.
Are you on just spigot
wdym
you cant list them.
cant list per slot?
What server do you have?
no, you cant list them in any way
sad
like what type, version and config
???
What tyoe of server do you have
Theres an infinite number of different server configurations you can have, What server type? What version?
I might have another solution
@brisk coral shh
Don't ping me
Or what
i only need palceholder that show player's name, individually
What is it that you are trying to do exactly?
Don't be annoying Tom, ZS, that's not possible with the current existing placeholders
i only need palceholder that show player's name, individually
javascript placeholders wont do?
try this
/papi ecloud download OtherPlayer
that wont work
As I've said multiple times, there is no way to do it with the current existing placeholders
To get another player name?
yeah, im asking so i can make javascript version of it
and i think the guide in github is outdated
Oh well that explains it
wdym individually ?
and whats outdated in GH other than the /papijsp commands ?
papijsp seem not working icant recall
for example i want to make a list of online players with placeholder, 1 by 1.
use /papi reload instead of /papijsp reload for the meantime
and make a js placeholder for that.
2nd command havent tried
all /papijsp arent working
How would your code know what player 1, 2, 3 would be ?
Would it pull the list of players alphabically, time they joined ect?
that is already our concern to how to make it work, if jsp is actually working, then we'll make work it.
Is it for a mini game or are you just wanting to display players that are online
and where
why you keep asking uncessary questions?
Because you could just download a plugin to do that for you, if you told me what specifically you wanted, maybe I might know how to help instead of leaving you to figure it out on your own
you're stating whats obvious
even people in wiki doesnt know
stop forcing yourself
@bronze bison can i get wiki link for jscripts
I know javascript, but fine, suit yourself
@vapid nexus ^
thank you
np 😄
/papijsp reload this doesntwork ya?
mhm use /papi reload as i mentioned above.
ok thnks
Any chance someone here has any libsdisguises placeholders?
@bronze bison /papi parse %placeholder% doesnt work
/papi parse me %placeholder here%
ok thnks
Updated it in the wiki.
thnks
Sorry about that.
=imgur
@bronze bison sorry for multiple pings i am trying to make an exxpansion, where can i get library for it?
@vapid nexus
Please be patient and don't ping helpful or staff members!
srry
Everyone here can help, no need to always ping me when u have a question.
Here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI
ok, i just got hooked on you :v
?? 😂
Its not, read please https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI#adding-placeholders-to-placeholderapi
Hello,
ive got a question bout the sponge version of this plugin.
You can install expansions for the spigot version of papi pretty easily, either ingame via the command or with the expansions folder.
Are you able to install them for the sponge version aswell, e.g. the luckperms expansion?
Sponge version of the plugin?
yep, papi for sponge
Mind linking me to it?
We don't correlate with the sponge version of PAPI at all @willow saddle
It's a completely separate plugin and has nothing to do with us/clip
Yeah looks just have the same name
yep :L
Maybe Papi3 (coming soon ™ ) we just make multi-platform.
That'd be hell
I think we were in the works of using ACF which has shared stuff we'd need to do Paper, Spigot, SPonge, etc.
We weren’t
Sponge is just completely different than the rest...
That's more of a PAPI Wannabe
Just to add on though, it wouldn’t be that difficult to add multi-platform support
v3 3000
Yeah true
rip, i guess modded servers arent a good thing to run then, plugin whise at least xD
thanks for the info tho ✌
idk, sponge is pretty different
Oh hey, you guys should tune into the panel that Clip and I are doing on uhhhhh
I think it's August 30th?
cubedcon
Ya
o
aug 30 - sep 1
What panel
O.o
We're talking BBQ tips & tricks and just about the mc community in general
I believe so
also cj, it’s really not that hard. All you’d need to do was create a user interface, and make implementations for it for both apis. It doesn’t even need to be fully featured, just have methods to getSpongeUser, and getBukkitUser on the impls
We'll probably go over a schedule / list of what to cover with cube, so he can tell us what to be professional on
similar to how I do in my framework cj https://github.com/PiggyPiglet/Framework/tree/master/bukkit/src/main/java/me/piggypiglet/framework/bukkit/user
gaby, didn’t u see the build?
Like I access that daily (link at least?)
Hmm
I did, unless fc changed it lately
Yo this framework is interesting
yea, just added a http server to it yesterday, so u can make web json apis
Ooo
Damn
If I didn't have ACF I'd totally check this out
I’ve never used their api
I do plan to make a binding for it on my framework tho, so I guess I’ll have to learn
This is really fucking dope piggy I didn't realize how much you had already finished
yeah I’ve been powering through it
I didn’t really have to make much new stuff though
PCF
most of the code I’d made on a load of other projects
Honestly I was going to do something similar soon
Since Guilds has a new backend now
I gotta have a handler for the handlers
it’s got everything u’d ever need
tho, u should be using the filemanager for exporting resources, not the util directly
filemanager is the only thing I haven’t written docs for yet
oh, and making addons
So does your mysql use pooling?
yea
So what do you plan to use this for?
anything I make in the future
Cool
I’m thinking of removing the search shit from the normal Manager, and then making a new implementation called SearchableManager, where I can put the levenshtein shit
that’d make it more usable
Cool
Has anyone heard from GC from Advanced Enchantments about the EXP placeholder issue?
said he was supposed to contact you guys about an issue with that placeholder
Error:(3,30) java: package me.clip.placeholderapi does not exist
i am compiling my plugin'
and i get this error
does anyone get this problem
i just imported placeholderapi jar into intelij
are you using maven to compile or?
maven yes
Then you need to import the dependency with maven
Otherwise your IDE and your build tool are seeing two different things
it worked thanks
hello, do i need to create the {player} placeholder?
because in my plugin i thought placeholder api has a {player} placeholder
which shows the name of the player
if it is not in placeholderapi
how do i make it
player expansion or something has a name placeholder
player, yes
Is there a placeholder in papi that can track player kills and display like top 1 player with the most kills? I can't seem to find one for that?
no
rip
Please look at my issue on github :c
if you want it that bad, submit a PR
I can't see platforms like nukkitx being a top priority
What in the world is Nukkitx.
Software for bedrock
It's basically its own plugin environment
Ah. Okay. That sounds really...odd
As Glare said, on future they will probably add support for more than Spigot and Paper, but dont think it's a priority / that easy to add.
But...why?
bedrock trash
^
The question is most likely "why not?"
Hello!
Why TokenManager isn't working?
While i put it into titlemanager " %tm_tokens% " It just shows that same thing there.
You must downlaod PlaceHolderAPI plugin and restart server
Im sure that TM have switched from an expansion to their own placeholders, make sure you check the wiki.
It says it needs placeholderAPi
i have this error pls help https://pastebin.com/Nd22K0SK
But if i put it on titlemanager then it just shows that %tm_tokens_f%
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.
@tranquil mulch
yes?
Check above ._.
It's working now.
Yw
Thanks.
Is there a target placeholder ? Like %target% or something ?
nop
hey, is @clip#0001 the WorldGuard PAPI Dev?
I think that's a combo between Clip and WizJany.
Clip is one of the main devs of PAPI, I think
WizJany is one of the main devs of WG.
@cloud shard
@tardy star i was asking cause i saw that WG PAPI extension was updated to 1.13, but seems to break on 1.14.
and didnt want to ping clip or wiz unless i knew for sure who did it
Listen man. All I know is that Ash made MM. xD
lmaooo
Hi
I have the DeluxeTags ecloud extension installed
and %%deluxetags_tag%% placeholder in essentials chat still doesn't work
How to get DeluxeTags working using essentials chat:
- Turn off the DeluxeChat option in the DeluxeTags config.
- Turn off the format_chat option in the DeluxeTags config.
- Replace all the %placeholders% with {placeholders}
- Restart the server
@austere hawk ^
alrdy tried that
u gotta add {deluxetaga_tag} to essentials chat and not %%deluxetags_tag%%
show me your chat format
/papi ecloud download deluxetags
/papi reload
ayyye worked, thank you again frosty and others
=faq tagess
DeluxeTags showing in essentials chat:
- Turn of the DeluxeChat option in the DeluxeTags config.
- Turn off the format_chat option in the DeluxeTags config.
- Replace all the
%placeholders%(%deluxetags_tag%) with{placeholders}({deluxetags_tag}) - Download the DeluxeTags expansion using /papi ecloud download deluxetags
- Restart the server
i cant use it without it
PS
How can I put a display name in a hologram?
%player%, %displayname%, {player}, {displayname}, {display_name}, %player_name% etc dont seem to be working
you need the expansion
expansion name?
HolographicDisplaysExpansion (it's a plugin)
ohh kk ill get that, then what placeholder will work?
%player_name%
ight ty
wellfk
doesn't work
yeah it doesn't work
the plugin is installed
and %player_name% shows up as %player_name%
thas depressing k
think ive found ze problem
fab
I installed it and it's working
but now
I can't login
it's crashed the server
great
dude im on the server but its still not working @brisk coral
what am i doing wrong
Did you download ProtocolLib plugin ?
I did
So you have Holographic Displays, Holographic Extension, ProtocolLib and PlaceholderAPI plugins
and you downloaded player expansion by running
/papi ecloud download Player
/papi reload
and it didnt work ?
np! glad it did 😃
Is there any way to edit placeholders?
I'd like to remove the time from %player_first_join_date%
js
ah
dk how to compile tho so 😛
oof
Ok use js then
Or wait
U can change the format of it in papi config @near nimbus
np 😁
@cloud shard
Please be patient and don't ping helpful or staff members!
Now you wait :okhand:
Yee lol
o thats u
I dont know if this is a papi, votingplugin, or featherboard issue. But the placeholders for votingplugin on featherboard are not working. Yes, I have downloaded the votingplugin papi and reloaded papi and it still doesnt work.
What placeholder
more info pls
{placeholderapi_<placeholder>} will probably fix the issue :p
Yeah will get it asap. Not at desk now. From memory, no errors, just broke papi.
And sorry, didn't realize it had its own category
I'll update the git when I get the chance
Np
I tried {votingplugin_votepartyvotescurrent}
try this {placeholderapi_votingplugin_votepartyvotescurrent}
👌
Glare, if you read this, I love you bro ❤ lol
Thanks boodyy
Let us know if theres anything wrong with it
i think i found something.
if your in one region thats inside another, it spams both in the placeholder.
not sure if theres anything that can be done there though, is there?
can you please send the placeholder u used with its return value ?
/papi parse CarsonJF %worldguard_region_name%
it returns ones name in chat, and then another if i run it at the right time, but i have said placeholder in a tab list for testing, and its spazzing out lol
Would be good if u reduced the update interval of it maybe.
hm, i'll have to look into how to do that. would that be done on my tab list, or possibly with PAPI?
and incase you wanted a quick glimpse lol
Holographic Displays doesnt support PAPI by it self, u need to get this plugin
=plugin holographicextension
that don't work ^
spigot being a mean boy still
dont forget to get ProtocolLib too
@cloud shard as i said, it may work if u reduce the update interval of it
@deft hemlock read what ive said after ur message please.
o
well then does ur TAB plugin support papi?
and make sure that u have the server expansion and its loaded by checking if its in /papi list
@deft hemlock
Please be patient and don't ping helpful or staff members!
problem detected, using % without it being a placeholder, such as "50% off in store" makes the rest of string not parse for placeholders
do we call this placeholderapi bug ? or, how do we get around that ?
cab someone help me plz. I have deluxechat and the placeholders arent working and i have the latest versions of deluxechat and placeholdapi
@sharp jay
@modest cosmos
Please be patient and don't ping helpful or staff members!
ping
sry
dont
Not rn later
i fixed it i think
Hi, I created some javascripts on my server for placeholders and I get an error in the console.
https://pastebin.com/0spJGgRz
If anyone knows, talk to me and pass the javascript...
https://pastebin.com/fCA5jBDH
It seems to be from here beacuse of the "length"
o i made that
and its not from that placeholder
@kindred pecan
sorry frosty ❤
its from an item lore js placeholder btw
double pong 
sorry bb
var item = player.getInventory().getItemInHand();
var lore = null;
function itemlore() {
if (item == null || item.getType() == "AIR") {
return "";
}
if (item.hasItemMeta() && item.getItemMeta().hasLore()) {
lore = item.getItemMeta().getLore();
}
if (lore == null) {
return "";
}
if (args.length == 1) {
var index = parseInt(args[0]) - 1;
if (isNaN(index)) {
return "invalid index";
} else {
if (lore.length > index) {
return lore[index];
}
return "";
}
} else {
return lore.toString().replace(/^\[/, "").replace(/.$/,"").replace(/, /g, '\n');
}
}
itemlore();```
o i made that too 😂
yea 1m
okay
Okay
Anyone having issues with sugar crafted not being tracked in Statistics?
No errors, just always 0
%vault_prefix_color% seems to output the prefix as well as the color, I just want the color. Any fix for this?
is there anyreason why the console cannot use javascript placeholders? for example %javascript_test%, ingame it returns "test" with no issue, but trying in in console in any situation replaces it with nothing whatsoever
hmm? Running a command from console (not through a plugin) doesn't parse placeholders for u
if ure running them through a plugin, that plugin should supports papi for that to work
hmm, i believe CMI supports papi
idk
just checked, yes
i use a few other placeholders
oddly enough, normal placeholder work fine
@near nimbus maybe open an issue in vault expansion repo with full details please and i or someone could look into it.
only javascript placeholders, and only though the console...
Well if the placeholder is working using papi parse commnd, then this isnt papi issue
alrighty
ok another question then, is it possible for papi javascript to notice if the command was issued by a player or the console?
No
U cant have an event in a js placeholder
Well, idk but haven't looked into it but i dont think so
you can't
o
rippppo
Does anyone know of a good plugin that can replace essentials command /who ?
idk, Ask in #general-plugins or #general-plugins-2
Oh, how'd I get in this channel. My bad!
Is this channel appropriate for javascript placeholders?
Yes
Okay, so for supervanish there's a placeholder %supervanish_isvanished% that returns yes or no. Is there a way to make the placeholder compare to a username instead of the user who executed the placeholder?
I guess it's not really a javascript question but it's where I got stuck in my javascript
So u want to get the result of the placeholder as another player
🐳
if so, use parseother expansion
Oh, thanks
np 😄
Okay, here's my javascript. I'm trying to take the list I get from listplayers and remove anyone who is vanished.
function onlinelist() {
var list = "%listplayers_with_perm_group.hobo%";
var listLength = list.length;
var lastPos = 0;
var lastName = "";
var fixedList = "";
var i;
for (i = 0; i < list.length - 1; i++){
if (list.charAt(i) = " "){
lastName = list.substr(lastPos, (i-1);
if ("%parseother_" + lastName + "_supervanish_isvanished%" == "No"){
fixedList = fixedList + "Lastname&8, ";
}
lastPost = i+2;
}
return fixedList;
}
onlinelist();```
But I am getting this error
```Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at ParseOtherExpansion.onRequest(ParseOtherExpansion.java:36) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:234) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:374) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:89) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onPlaceholderRequest(JavascriptExpansion.java:169) ~[?:?]
at me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:38) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:234) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:202) ~[?:?]
at me.clip.placeholderapi.commands.PlaceholderAPICommands.onCommand(PlaceholderAPICommands.java:190) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)```
Seems I can't get the parseother placeholder to work :/. Anyone able to confirm it works for 1.14?
it does
I am unable to manually parse it for example
/papi parse Kureen %parseother_kureen_supervanish_isvanished%
do you have the expansion?
Yeah, I did the ecloud
and have you reloaded papi after doing that?
Yes
What rank?
Maybe %luckperms_highest_group_by_weight% ?
i use pex
%vault_rank%
make sure you have the expansion btw
do you have the expansion and have reloaded papi?
/papi ecloud download factions
/papi reload
and does it work?
Yes!
Shouldnt prefixes work if i have papi + deluxechat + luckperms and i downloaded luckperms expansion
formats:
default:
priority: 2147483647
channel: ''
prefix: '&7[%luckperms_prefix%&7] '
help
For javascript placeholders. What types of engines are available? nashorn doesn't seem to have the .includes function
What placeholder do I do to get a different bungee serveds statud
So when they hover over the server in compass it shows if online or offline
I think it requires for the thing to be actually paid
and not just bought for free @deft hemlock
Ask the dev?
Anyone got any idea about my issue?
Can i make Health Bar like this with Papi ?
https://imgur.com/a/KtuKXJq
Yes, check progress expansion 😄
thanks
np
Can u give me a format ? I don't know which one to use
Use player health placeholder from player expansion
And check progress expansion repo, for more info about it
#progress
ok (._.)
https://imgur.com/a/olq1z4D not show correctly
Send the placeholder u tried
%progress_bar_{player_health}_c:&a■_p:&e■_r:&7■_l:10_m:{player_maxhealth}%
hmm wrong placeholder maxhealth
letme fix
https://pastebin.com/CPTA3pr3
If i change maxhealth to max_heath have a problem
just use the maximum number player_health placeholder returns?
Ill look into that error
same error? And whats the placeholder now
Try with one of these maybe
%player_health_rounded%
%player_health_scale%
Im not sure which one will work, if none did ill look into them and see
On phone rn
aBooDyy
it worked
but
It always displays the full bar
And I remember, you can't have the two existing and maximum values equal
That will always make the bar full
btw my english is very bad: neut_face:
@royal parcel Good! if u dont want the full bar text, just make it 10 red hearts ?
i know
but ..
the problem is you put the max value is same value with placeholder
hm?
Ex
the max value should be the goal, which in your case 10 or 20, up to the placeholder u used
but i have a Skillapi
and?
can increase max heath per level
ah, well then is there a placeholder for max health ?
ok use it then?
ok let me try
I cannot find the ecloud extension for DeluxeJoin. Am I missing something?
@brisk coral Unknown expansion.
what placeholder are you trying to use?
It's printing %player% in chat as opposed to the player name
Is there a placeholder that returns the value of a placeholder as if it was in the context of another player?
Thanks, I couldn't find it in the wiki.
I suppose it's not possible to replace {username} with another placeholder that returns a playername?
Ikr
How do I update an item in DeluxeMenus when a placeholder changes?
o i think i found it
view requirements
vanila_online:
type: string equals ignorecase
input: '%pinger_online_127.0.0.1:25565%'
output: '&aOnline'```
if this what u want then yes
But keep in mind that dm doesn't support animated items
so player need to click an item with refresh action, or reopen the menu
Ask in #general-plugins or #general-plugins-2 next time please.
ah ok thanks
np 😁
Hey @near sentinel
sorry i didnt reply to u about ur js placeholder issue (was doing somethings and was lazy to write this tbh :p),
Current js expansion doesn't support having a variable (js variable) inside of a placeholder (like u have with the parseother placeholder) so thats a thing. To fix this, i added a method to the js expansion (not live yet) to be able to parse placeholders with variables insde them, by doing Placeholder.setPAPIPlaceholder(BukkitPlayer, "PAPI Placeholder without %%"). All info about this version i made can be found here https://github.com/PlaceholderAPI/Javascript-Expansion/pull/8/
another thing ive just noticed is ur list variable, ure treating it as an array, while its a string, to make it an array contains all players, u gotta split it, var list = "%listplayers_with_perm_group.hobo%".split(","); and by this the for loop should work fine for u, also with this, u wont need these things that i dont really understand why u have them?
just check if the player is NOT vanished and if he isnt, add him to the new list fixedList += list[i] + ", ";
guess that should work for you, let me know how this goes with u 😄
and btw, u might have to add {} between the player name inside of parseother placeholder. not sure but i remember that u need that
try with papi parse command and see if u need that or no
Guys what is the placeholder for total online members
edited the link
u can use server, bungee or pinger
whatever u want
each is for a certain use, pick the one u need and use it 😄
It doesn't seem to work with your suggested changes :/ I get an unknown exception
>.... [22:18:09 WARN]: java.lang.NullPointerException
>.... [22:18:09 WARN]: at de.myzelyam.supervanish.hooks.PlaceholderAPIHook$1.onPlaceholderRequest(PlaceholderAPIHook.java:44)
>.... [22:18:09 WARN]: at me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:40)
>.... [22:18:09 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:234)
>.... [22:18:09 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:202)
>.... [22:18:09 WARN]: at ParseOtherExpansion.onRequest(ParseOtherExpansion.java:45)
>.... [22:18:09 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:234)
>.... [22:18:09 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:202)
>.... [22:18:09 WARN]: at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:90)
>.... [22:18:09 WARN]: at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onRequest(JavascriptExpansion.java:122)
>.... [22:18:09 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:234)
>.... [22:18:09 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:202)
>.... [22:18:09 WARN]: at me.clip.placeholderapi.commands.PlaceholderAPICommands.onCommand(PlaceholderAPICommands.java:190)
>.... [22:18:09 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
I can confirm that parseother works though. It was that the { } are required, but I figured that out yesterday :)
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
This is the modified js btw
function onlinelist() {
var list = "%listplayers_with_perm_group.hobo%".split(", ");
var vanishList = "%supervanish_vanishedplayers%";
var length = list.length;
var lastPos = 0;
var fixedList = "";
var i = 0;
for (i = 0; i < length; i++){
if (vanishList != ""){
if(("%parseother_{" + list[i] + "}_{supervanish_vanished}%") === "Yes"){
}
else {
fixedList += (list[i] + ", ");
}
}
else{
fixedList += (list[i] + ", ");
}
}
return(fixedList);
}
onlinelist();```
The command returns a list but vanished players are in the list
no need to check if parseother placeholder is yes then give nothing to do, check if its no and add what u have in else there and thats it
also, when u parse the parseother placeholder but using the command, does it work?
with the super vanish placeholder
oh wait
Yea, parseother is working
dont think its parseother, cuz u arent using the method i talked about
guess its %supervanish_vanishedplayers%
Hm?
did u read the first part of my big message
?
also, try parsing that vanished players placeholder using parse command
Yea
No, no errors
well then use what i said in the first part
Hi, is there a total hostile mobs killed statistic placeholder?
No, only for total mobs killed.
How can i make the utc time
What is the total mobs killed statistic placeholder, I can only find a "statz" one and it doesnt seem to work even after downloading it and reloading papi
%statistic_kill_entity:<mob>,<mob2>%
I really gotta type each mob name to get all mobs
Of? Lol
Can i call Papi variable (%cmi_user_afk%) in skript?
Ask on skript servers.
:lel:
Hey, I just had the greatest nightmare. All my placeholders extensions got deleted, when I tried redownloading them and doing /papi reload, they all got deleted again. A reload fixed the problem, but I wouldn't want to have this happen again. There were no errors in the console or anything. Any suggestions what could have caused that?
Nightmares can be caused by anxiety and depression.
My chat was %vault_prefix% %essentials_displayname% %deluxetags_tag% lol
it was horrific
Sounds horrible, best of luck to your next sleep
@carmine veldt be grateful 😋
Lmao piggy
It was scary tho
I bet. Life-like nightmares are a well-known topic in today's western cultures, thanks to their prevalence in movies and other forms of media.
forgot to actually say my point in the previous message lol
was meant to put something like
"I know what you're going through"
o actually I suppose "I bet" suffices
lol, well, it was horrific, they kept disappearing 😭
in the circumstance that this shocking event actually commenced, I haven't the faintest clue of any likely causes.
I'd say a possible malicious plugin, but that's a bit of a stretch, and I can't see any reason why a plugin would delete your expansions.
me neither, let's justhope all my folling dreams are pleasant!
hey is there any buycraft placeholders?
There is not iirc
aw.. cuz ik there's a buycraft api :/
leaderheads has a buycraft "board" but idk how to use it.. (i have leaderheads, and i wanted my donator crate.. to be the SKIN of the recent donator, because my crates are NPC's for some reason xd)
perhaps this nerd could help you @steep thorn
@lilac verge Send me some proof of purchase please
ok, tbh i did add you on my main discord xd but ye lemme message you there ( Journett#0069 )
Where can I find the right versions for all api's for 1.12.2?
- '&7Rank: %vault_rank%' dont work
why
/papi ecloud refresh iirc
@austere hawk if ur plugin ure using this in supports papi, then make sure u have vault expansion
/papi ecloud download vault
/papi reload
i just donwloaded the kitpvp placeholders and i did /papi list and there was nothing there
/papi reload
still 0
do you have the plugin?
which one
the kitpvp one..
yesw i have it
manually download the expansion from the cloud download then
hello if i download placeholder api for my hub server
but then i ecloud download bungeecord
do i also need to download placeholder api on my bungeecord server?
nop
placeholder API doesn't work on bungee
It just has an expansion which uses bungees plugin messaging for getting info from it
soo
if i want to get playercount on a certain bungee server
the bungee plugin on placeholder api doesnt work?
So I was using the {player_Server} placeholder in order to see what server players on my network were on from any other server, it now says 'now available in the server expansion'
When looking at the server expansion the only one similar is {server_name} which is redundant because you can't set that in a 1.14.4 server.properties. Just defaults to 'A Minecraft Server'.
ok ty eletronicboy it works
Squacious, that value is set in the PlaceholderAPI config
Ah okay, is there a reason the player_Server was removed? It was so useful
They moved away from expansion to build-in placeholders, read the wiki
Hello, I am using Spigot 1.14.4 and when I install Placeholder API on my server, it floods errors on my cmd. Please help
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
- is currently using a deprecated method to hook into PlaceholderAPI. Placeholders for that plugin no longer work. Please consult [*] and urge them to update it ASAP.
Is this an error or a warning?
As in, does the integration still work or will it not hook properly?
The hook no longer works
Warnings were given out awhile back
Then the old hook was completely removed
Alright, thanks for the info
@robust star ^
hm....not working with quickboard
Yup
=plugin quickboard
Oh shoot I think it is broken still
Did you restart server by chance?
Plugin page says to
Yea, restarted like 5 times lol
Hi, I need help with Pinger placeholders
Wtf?
No no
No DoS or DDoS
Btw that ip is bungeecord, spigot ip works
Bungeecord doesnt work?
its possible, you may want to look into the source of the plugin.
Bungeecord is just a proxy, it handles things diffrently.
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
@ember crown might wanna remove that ip if it's your actual server ip
Removed
Is there a placeholder equal to "@a[tag="Example"]"?
hmm?
wut
Like "tellraw @a[tag=Example] {"text":"Example Tellraw"}" but instead of "@a[tag=Example]" a player placeholder for only players with a specific /minecraft:tag
idk how that works tbh, but if ure running this command through a plugin, ull be able to use a papi placeholder there if the plugin supports papi
:WhatThe:
if the plugin supports papi you can use tellraw %player_name% {"text":"Example Tellraw"}
make sure you have the expansion downloaded and papi reloaded
Hello, i have problem with upload placeholder for Jobs Reborn. Placeholders not active on server
Which placeholders are you using?
%jobs_name_jobname%
have you downloaded the expansion, aswell as reloaded papi?
they have changed the placeholders recently
oof
where are u using it?
FeatherBoard
use {placeholderapi_jobsr_user_id}
this is how u use a papi placeholder in mvdwpapi (fb)
It still does not work 😦
u have latest jobs right ? also does it work in /papi parse me %jobsr_user_id%
It was displayed %jobsr_user_id%
how about the first question ?
Yes
try restarting the server
well then, contact them.
nope, jobs
Okay
/kill @deft hemlock
Need some help with LeaderHeads x Papi.
I'm trying to set a sign with the command /leaderheads setsign %statistic_time_played% 1 alltime but it isn't working on the sign. I have downloaded the Statistic expansion and verified it.
^ Some clarification, the statistic expansion doesn't seem to register properly, as /papi parse me %statistic_time_played% also just returns the placeholder
download 1.7.0 for 1.12.2 and lower
i'm on 1.14.4
ah welp
i dont see any
Any known issues with Statistic on 1.14?
Doesn't seem to work properly for @austere hawk
change ur server's timezone 😄
not in a config, it takes the server/vps/machine timezone
Good evening. I have a question! I'm using the WorldGuard placeholder to view the current region in my TAB.
In some regions it works fine. In other regions it doesn't and it will show the %-% placeholder text. It, at the same time, breaks the other placeholders until I go to an other region. Sometimes it starts to flicker between the two.
I've used papi parse %worldguard_region_name_capitalized% in both area's. In one it works great, in an other region it gives me an error and console error. I have included this in the pastebin. Problem is very easy to re-produce, so if you need any other debug info let me know. https://pastebin.com/6AKw9um3
If someone is able to help me, that would be very appreciated. If I need to supply any more info, please let me know :). Thanks in advance!
hello
what is the recommended version of placeholder api for minecraft 1.8.8?
i will give 3€ to the people that help me
4€
4€ instant via paypal
lol
Does anyone know if there a placeholder in either papi or mvdw to get a comma separated list of playernames from a server on either a bungee network or from an address?
Example: %playerlist_30@server.com:25565% or %bungee_playerlist_30@_survival1 would display as Player1, Player2, Player3, etc up to the 30th player and then stop. (this is to stop lore from getting huge in guis and such) perhaps could do it in intervals of 10, 20, 30, etc?
I have found one from mvdw that displays a comma separated list of playernames that are on the current server, but none that display a comma separated list of players on another server.
I'm basically trying to create a deluxemenu item for my hub server that shows a few of the playernames that are playing on certain servers so people don't have to login and check or use /glist :)
Any help would be appreciated. 👍
Example photo of what I am looking for:
(Where it says "Online:")
https://gyazo.com/b260d6d5e109b241c9a8f9a638c9299b
Hey @polar dragon,
Thanks for your report, can you please try this version for me? http://aboodyy.net/WorldGuard-Expansion-1.4.1.jar
Also, can you try this placeholder %worldguard_region_min_point_x% for example?
Hello! My javascript doesnt work! https://paste.helpch.at/wimivokoya.php
generators-upgrade.js file name
[PlaceholderAPI] File: generators-upgrade.js for javascript placeholder: generators-upgrade is empty
In javascript_placeholders.yml i have
generators-upgrade:
file: generators-upgrade.js
the file is empty ..
make sure ure editing the correct file and u saved it after u finished
Yes i saved and no its not empty...
well then id say change the - to _
tried... still doesnt work
i don't see any reason why it wouldn't work...
ive had files with _ so don't think its an issue
@bronze bison Thanks for the help! Plugin won't load though. Jar does not contain plugin.yml
its not a plugin, its worldguard expansion that u need to replace with the current one u have in plugins/PlaceholderAPI/expansions/ folder
does deluxejoin have a papi expansion??
nope, it doesn't provide any placeholders
when I join the server it says [+] %player%
np
thanks lmao
😃
Does Featherboard really not support "%" placeholders??
Hello, I am attempting to make a javascript placeholder that allows me to put an ABC rank into chat, Pre 1.14 this worked fine and I have had it working really well however after I updated to 1.14.4 it just stopped working and started returning errors, I will include the file and error message below. If you know how to fix this it would be great if you could let me know how.
Error: https://paste.helpch.at/owibosulob.php [This was everything that happened after a player typed "Hello"]
Code: https://paste.helpch.at/totujajibe.js
Thanks.
@thorny patio try remove some variables at the top and try again.
@zenith vessel Featherboard uses mvdw placeholders
how can it be that users without the permission to use papi still can access it's commands? (using UltraPermission)
never heard of this problem berore, are you talking about /papi or smth more like /papi reload?
both
hmm, odd
agree
anybody else using papi and uperms can confirm this?
I have a very quick question
@thorny patio the script u sent doesnt seem to be the one the error about
well guess theres 2 different placeholders in that error
I can't seem to understand what this website: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI
Can someone help me by just giving me a step-by-step guide?
what do u want to do?
ecloud downloads aren't working for me, I just get the response "No cloud expansions are available at this time"
i need help
Theres not time to wait! Ask your question @novel elbow!
?ecloudblock
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.
Will WildStacker be supported by PlaceholderAPI? How money kills etc.
@bronze bison I want just to use skript variables in my plugin, so i figured i should just use PAPI for it.
so u want to support papi placeholders in ur plugin
There's a page which explains that
@bronze bison Sorry for the late response, but it does not seem to load as an expantion :( Should I replace the origional?
@polar dragon
Please be patient and don't ping helpful or staff members!
Problem with DeluxeChat/Format
I am op, on the kyrox account, and I do have a tag, but it doesn't show.
On my alt, I'm not OP, and I have a tag, but it doesn't work
worked fine a few hours ago
I did some stuff with lp tracks
Could that cause it?
➖2
@vivid sparrow : It seems to just move the placement of the error, its like there is a cap on how long the file can be...
@bronze bison There are 2 scripts, they are the same but with a slight modification to what it returns so there should be no effect. The script I sent is the one I care about and it is also causing an error.
@thorny patio
Please be patient and don't ping helpful or staff members!
i was replying to them
@thorny patio try using
var p = Bukkit.player;
if (p.hasPermission())
it's not returning "Script Error" anymore, instead just %javascript_abcrank% and there is no error.
https://paste.helpch.at/yatarucozo.js
How about using BukkitPlayer?
so instead of bukkit.player I use BukkitPlayer?
Yeah
[00:01:30] [Server thread/WARN]: [PlaceholderAPI] File: abcrank.js for javascript placeholder: abcrank is empty
uh?
its not empty
and still does the same thing
@polar dragon delete the old one (the original one) and put the new one (the one u downloaded from the link i sent)
@thorny patio do u have comments in ur script?
Also yea its BukkitPlayer not Bukkit.player
but i don't think thats the issue
@bronze bison There are no comments, Here is the script https://paste.helpch.at/pisirotava.js
This still doesn't work???
send the error pls
Would be good if u parsed it using /papi parse me %js p%
And then send the error u get
alright gimme a sec
no error, just the File: abcrank.js for javascript placeholder: abcrank is empty thing
Well its not reading the file if its not empty
and how would I fix that?
Idk tbh... Haven't had issues with this
Make sure ure saving the file...
Maybe try in another file/placeholder and restart? Idk
same error after putting it into a new file
it must be something to do with the code
but the code has correct syntaxing to what I can see
it only started happening after I updated to 1.14
1.13.2 was fine
Ok ill look into it
aBooDyy Thanks for the help! This version works without any problems.
Did you try %worldguard_region_max_point_x% ?
hey @thorny patio,
i've tried the placeholder, looks like the issue is from the these characters Ⓩ
so u have to replace them with their unicode (u can find them here https://unicode-table.com/en/search/?q=Circled+Latin+Capital)
Copy the U+#### code and replace it with \u#### in ur script
so for Ⓩ it will be return "&7\u24CF";
how would I list how many players are in a certian bungeecord server?
I accidently downloaded the wrong expansion and the one I downloaded is giving me console errors. Is there a command to disable/delete a downloaded expantion?
Easiest way is just remove it from the /placeholderapi/expansions folder
alright thanks (not going to mention you) aBooDyy, It's all working now.
no problem 😁 👍
Hello!
Can you help me?
How can I do this in the latest version. (https://paste.helpch.at/lihosisata.java)
thx
np 😄
@bronze bison mind showing me how to read a config using js?
not really, look into it... Its not hard at all
look into what haha xD
@bronze bison can I has link to the cooldown thingy
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
There's a error on this wiki page of placeholderapi https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#internal-class
if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null){
new SomeExpansion().register();
}
This should have the instance of the plugin on the brackets of the SomeExpansions if i'm not mistaken
Thanks for letting us know.
I've just fixed it.
I created a hook inside my plugin and I'm not getting any luck making it work, when papi starts it should recognize it as an expansion?
No, only actual expansions are.
but it will appear in /papi list iirc
im not getting any stacktrace out of this error so i don't know why im getting that error
make ur plugin soft depend on papi
No should work that
depend: [PlaceholderAPI] # If your plugin requires PlaceholderAPI, to work, use this.
when ure plugin is being enabled.. when u start the server?
>.... [14:18:45 INFO]: [EloPlugin] Enabling EloPlugin v1.0-SNAPSHOT
>.... [14:18:46 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
>.... [14:18:46 INFO]: [PlaceholderAPI] Successfully registered expansion: deluxechat
>.... [14:18:46 INFO]: [PlaceholderAPI] Successfully registered expansion: player
>.... [14:18:46 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms
>.... [14:18:46 INFO]: Done (21.335s)! For help, type "help"
[Prism Daemon] Server marked as ON
Make ur identifier lower case
Yeah it now registers
Can you add a note on that so someone doesn't repeat the same mistake?
Plugin should probably shout at people when they do stuff like that vs silently just not registering it
(Assuming that nothing has been missed from the log there)
yeah true
This issue has been fixed in dev build.
So it will be fixed in the next version of PAPI.
reles or be executad!
however im not getting any luck on getting my new placeholder working
it's registered but my %eloplugin_elo% is showing as it is
returns the %placeholder%
i mean /papi parse me %ur placeholder here...%
Guys how to add to my scoreboard the vote party???
@runic dirge #spigot-linking
I'm trying to use PAPI with my kitpvp plugin and it will show the values on the side for a split second on join. And then vanish right after and only show the placeholders.
i mean it returned my placeholder literally
@graceful adder Your own expansion?
i mean my placeholder is %eloplugin_elo%
But is it your expansion?
Yeah
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
