#placeholder-api
150650 messages · Page 68 of 151
I think you can do /papi download javascript <version>
If not, you can always get it from here: https://api.extendedclip.com/expansions/javascript/versions/
@tight veldt 
you'll have to use it in a spot that supports it
So in the chat where you would normally put %rel_factionsuuid_relation_color%
you put this instead %changeoutput_equals_{rel_factionsuuid_relation_color}_<match>_<output-if-matched>_<output-if-not-matched>%
and replace the last 3 options with your needs of course
I just also remembered you can test it with the parserel command https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Commands#papi-parserel @austere hawk
can you send the placeholder again from config? discord messed it up a bit
cj89898 help my plz :x
by any chance are ur relational placeholders returning an underscore @austere hawk
the whole thing
because this is a broken one
it wasn't escaped in `` when you first sent it
I have a question ? can't you create a ticket system? because it's a mess to navigate I still have my problem: /
ur trying to download the mcore factions expansion when u dont have the mcore factions plugin
delete that expansion
I'm personally on a time constraint and can't delve into an issue rn
the other issue I was already a part of trying to help :L
makes sense
what does it return though
i just need to know if that placeholder individually has an _ in it because theres a bug in changeoutput
because all options are separated by _ so it ends up bugging it
oh fuck I forgot it's just a color like &a @warm topaz
what is the changeoutput placeholder you're using again @austere hawk ?
yea im not sure whats happening here
I believe you have to specifically parse relational placeholders using the parseBracketRel? Unless I am misremembering
idk
nvm. there is no bracket rel method
but I believe that's why it breaks anyways. bcz of the relational placeholders.
do u really need the relational placeholders anyway @austere hawk? to me it sounds like u could just use the normal placeholders
I mean I might be completely wrong but doesn't this palceholder just check if rel is empty then it puts empty otherwise it puts the placeholder?
like why?
the whole thing sounds very useless
ah. default color
Ic
Anyone have an idea about this?
is there a deluxe menu placeholder of the name of the player who clicks the menu item?
%player_name% works
do you have any idea if there is any solution so that when i have more than 1q money it still formats the money?
and doesnt get stuck?
1q money?
1 Q
I don't know what u mean by 1Q
like 1 million, 1 billion, 1 trillion and etc
Ahh, what economy plugin do you use
uhm vault
%vault_eco_balance_formatted%
it doesnt work
thats what im asking
is there a fix that when you reach 1000Q it still formats
when i gave myself more than 1000Q it stopped formatting
it didnt continued
what i mean is that when i give myself x amount of money (big amount) it doesnt format, like QT, SX, SP and etc
IK, but there is no other placeholder for you when u r using only Vault.
what other thing i can do? change plugin?
I guess the number is so big that it can't even format..
i was looking in the messages, they said the format wasnt added or smth like that from what i understood
I gave my self 10,000,000,000.00 and it's showing only 100M
So that's the maximum maybe
javascript expansion don't seem to work on Paper 1.12.2 and PlaceholderAPI-2.10.10-DEV-132
Doesn't seem to work how? What does it say?
You need java 15 or smth iirc
Pretty sure it's Java 16 for the latest javascript version
since version 2.0 you need java 15 or newer
man I love discord..
it disables the ping
but doesn't actually disable it
Hey i have a problem while hooking the placeholderapi to my plugin (Maven build)
Dependency 'me.clip:placeholderapi:2.10.10' not found
Dependency 'me.clip:placeholderapi:2.10.10' not found
Dependency 'me.clip:placeholderapi:2.10.10' not found
my code : https://paste.helpch.at/anuyebijuk.http
Helllo
[12:53:55 INFO]: [Systém] Hráč nebyl nalezen! (money -> %player_name%)
[12:53:55 INFO]: GoldenCrates » Error while get data for %player_name%.
[12:53:55 INFO]: [Systém] Hráč nebyl nalezen! (money -> %player_name%)
[12:53:55 INFO]: GoldenCrates » Error while get data for %player_name%.
[12:53:55 INFO]: GoldenCrates » Error while get data for %player%.
[12:53:55 INFO]: GoldenCrates » Error while get data for %player%.
I have this problem
%player_name% and %player% dont work
have you tried /papi ecloud download Player?
reward_commands:
enabled: true
max_possible: 10
commands:
- chance: 50
command:
- crate givekey %player_name% votekey 3
- chance: 40
command:
- crate givekey %player_name% moneyklic 3
- chance: 5
command:
- crate givekey %player_name% spawner 1
Papi or placeholderAPI ?
papi is a command for placeholderapi
some placeholders are not standalone
so if you want to use them you should type
/papi ecloud download name
then
/papi reload
papi ecloud download Player
[13:04:54 INFO]: Successfully downloaded expansion Player [2.0.2] to file: Expansion-player.jar
Make sure to type /papi reload to enable your new expansion!
this ?
yes and then do /papi reload
yes i make
it should work fine now
13:05:58 INFO]: [Peníze] Zůstatek na účtě hráče Zivotna je 75440.28 Kč
[13:05:58 INFO]: GoldenCrates » Dal x2 Votekey klíč(e) to Zivotna
[13:05:58 INFO]: [Peníze] Zůstatek na účtě hráče kajix je 142042.71 Kč
[13:05:58 INFO]: GoldenCrates » Dal x2 Votekey klíč(e) to kajix
[13:05:58 INFO]: GoldenCrates » Dal x3 Moneyklic Key klíč(e) to Zivotna
[13:05:58 INFO]: GoldenCrates » Dal x3 Votekey klíč(e) to kajix
Nice work bro
Very thanks
For help
I have next question
Check log
[13:05:58 INFO]: GoldenCrates » Dal x2 Votekey klíč(e) to kajix
This is voteparty garanted
[13:05:58 INFO]: GoldenCrates » Dal x3 Votekey klíč(e) to kajix
This is Chance reward
How to make it work in one log in console
Pattern -Dal jsi 5x votekey klic to kajix
i think this must be related to the plugin you use not placeholder api
Did you reloaded it?
it isnt a server
Maven project.. If you reloaded...
in that case no i didnt
where is it uh
Do you have on your right side Maven?
np
also will it work in configuration files without adding something?
Im just newbie in placeholder's api api
It won't work until you added into your code
You just added api which allows you to use placeholders in your plugin
shhh ok
@fervent spirewhen I parse the placeholder i made it returns the place holder, only does this on one server
This with your own plugin or?
will not work if I use parse command or dchat
How did you make the placeholder?
Do any errors come up?
no errors, it is latest papi on paper 1.12.2
running java 8
trying working combo from my Spigot 1.12.2 again
https://paste.helpch.at/adohuwequn.sql with combo from working 1.12.2
download an older version of js expansion
papi will not reload with version 1.4.1 with papi 2.10.0
What time format is the join date in?
you mean the %player_first_join_date% ?
then it just uses the format from your config.yml
Sorry to keep bringing this up. Thanks again for the support thus far, this is as far as the issue has gotten resolved. Still PAPI isn't working with factions, nor is it liking featherboard (except when it comes to towny, elitemobs, and autorank)
Hello,
Using placeholderAPI, is it possible to reduce ram usage of "vault.baltoptask" ?
It's pretty heavy in my flare report :
https://flare.airplane.gg/fe2a0c32
screen :
https://prnt.sc/1y2sxu4
If you're using EssX, disable the baltop in Vault expansion and use the dev version of EssX. The baltop in Vault is being removed at some point in time for that exact reason.
disable the baltop in Vault expansion
how do I disable it ?
In the config
ok yes I found it
Thanks for your help I'll now try to optimise also other things 🙂
Update: So I deleted all the expansions & reloaded papi that the folder is empty. Then downloaded expansions in game, and reloaded after every one.
This seems to have fixed it, very well
Then I downloaded AutoRank, still using the command, and it broke the rest
@spice tapirwhat version of Autorank?
latest Autorank has built it expansion, so make sure you don't have one in the expansion folder
essentials, iridium, localtime, luckperm, multiverse, mdvw, player, quests, server, servertime, vault <- all worked well
playertime also broke it. V 1.1.0 and 1.0.1 both broke > https://pastebin.com/vtHD0rfM
Townychat also broke it. V1.2 > https://pastebin.com/QHqHerBT
Autorank broke it V1.0.2 > https://pastebin.com/p697s2tc
Autorank V 1.01 V 1.0.0 didn't break the others, but also didn't register > https://pastebin.com/qiZY77eF
@spice tapirno version of autorank not the expansion
and no expansion is required, since it is in the autorank jar
.... hmmm I'll have to double check the placeholders, cause it is not doing that for me rn, but has before (as in less than 2 months ago)
%autorank_active_paths%
%autorank_total_time_of_player%
ummmm... ya those are on the list
some placeholders were changed
when clip made the expansion, and when Staartvin built it into his plugin
..... idk what's going. Because I just replaced the placeholders with the ones from the list. Maybe its the parenthesis?
- '&a┃ &7Name: &f%player_name%'
line4:
frames:
- '&a┃ &7Rank: &f%autorank_completed_paths%'
line3:
frames:
- '&a┃ &7Play Time: &f%autorank_total_time_of_player%'
line10:
frames:
nope tried {autorank_completed_paths} and {autorank_total_time_of_player} and still natta
did you make sure there is no autorank expansion in the expansion folder
yep, manually deleted anything regarding autorank
that may be it! Ik in the past when I do /papi reload it will break the autorank placeholders and requires a restart. Idk why.
I'll do a restart in a sec, any chance you can put me on the right path for factions placeholders? I'm using the latest version of UUID
which faction plugin?
I tried using their placeholders as shown here https://factions.support/placeholders/
But that just leaves empty brackets in my featherboard
I have not set that one up, but I belive it should work the same as the ones I have done
Well when I try FactionsUpdated 2.14.0 papi expansion it breaks the others
does featherboard still use mvdwplaceholder
AHA! Figured it out actually. So the placeholders they list on that wiki don't work, only on a seperate wiki I found.
Ironic you have been a tremendous help getting me to figure out which papi expansions were breaking the plugin! thank you so much!!!
If the command itself isn't there and NO DOWNLOAD COMMAND instead is shown, then it means, that the plugin actually has the placeholders hard-coded into them and doesn't require a manual download of any expansion.
factionUUID has the expansion built into the plugin also
soooooo..... problem not entirely gone :/ did the restart, expectedly that fixed the autorank, but when I went to change worlds, it broke again
how can i register my plugins placeholders to the ecloud?
Just send a message to Barry and cube will help you with it
btw barry is a bot
btw I know
kk thanks
I created a placeholder for the color of the tps
but I didn't put another one in it
there was just a color swap.
The one on the left works fine, the one on the right creates another one.
why?
help pls
what did you create again? and why? There's already a colored tps placeholder I believe
why not use that one?
Yeah, there are placeholders for it,
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%
server:
tps_color:
high: '&a'
low: '&c'
medium: '&e'
sorry
this?
and is it possible to adjust it by numbers somehow?
var tps = "%server_tps_1%";
function PlaceholderCheck() {
if (tps >= "19.0") {
return "&a%server_tps_1%";
}
if (tps >= "17.0") {
return "&e%server_tps_1%";
}
if (tps >= "15.0") {
return "&c%server_tps_1%";
}
if (tps >= "10.0") {
return "&4%server_tps_1%";
}
}
PlaceholderCheck();
I made a placeholder like this
or do the tps colors need to be changed in the config plugin?
var tps = parseInt("%server_tps_1%");
function tpsColor() {
if (tps >= 19) {
return "&a" + tps;
}
else if (tps >= 17) {
return "&e" + tps;
}
else if (tps >= 15) {
return "&c" + tps;
}
else {
return "&4" + tps;
}
}
tpsColor();``` try this maybe.
Now everything seems to be working fine, why is that?
you can't change the values at which color changes for the other placeholder
I'm going to try it now, too.
with this old one, it would break if you have less than 10 tps
so fixed that in mine
the rest is the same
Hi
I do have a placeholder with skript
referencing a variable which uses player's name in it's name
%skript_<Player's name>.deaths%
but I don't know if it's posible to reference the name of the player inside the placeholder
hey there is there a wiki for setting up plugins placeholders and uploading in ecloud?
hey is there a placeholder for essentials/vault that shows how much money a player have?
you can checkout the wiki and sure it is
thanks
Hi, I do have this place holder %skript_{player}.deaths%"
it is working
but I also want to use Math placeholder in it
%math_{skript_{player}.deaths}%"
like so
that won't work
"_" is not appearing but I'm using them
I know, but how can I do something similat that would work
you can't. it breaks because it finds {{}
so it doesn't know what to do
in that case
since {player} is also not a PAPI placeholder. but even if it was it wouldn't have worked
Yeah I understand that
i have looked but there dont seem to be one for it
but %skript_% is referencing a skript variable which includes in it's name the name of the player
so i need the player's name there
well if you want to add stuff up you could try using the javascript placeholder
expansion*
how would it work?
you'll have to read up on the javascript expansion @abstract quiver
you do need to have some javascript knowledge
I will have to chek
%vault_eco_balance%
this is probably what you were searching for
but that for myself how do i make it for other players i want all people to see one players balance
/papi parse PlayerName %placeholder%
will parse placeholders for that player
Okay im making this on Holo plugin how can i make it show up on there?
nvm found out how to do with the ParseOther expansion
Hi there I’m using a plug-in and it doesn’t seem to parse placeholders if no one is online. Is there a way to parse placeholders with no one online?
Hey is there any reason as to why the expansion-quests is not working?
please don’t tag random people, someone will help you eventually.
works just fine for me
what version of the expansion you got?
try getting the 2.1.0 version
what's the command you're using?
are you using it ingame?
I'm looking at the code itself and can't seem to find anything wrong with the code
not sure what they have to do with each other?
they're different commands
and they don't need to be fixed. I've checked it and it works. my assumption is that you maybe have a plugin messing up with it or something. idk
its exactly the same my friend
I guess not. it makes the checks it does for the other players for this one as well.
which are to check if the player has played before and if the player has a name
yes? I just told you that I guess you were right.
no. probably not.
@thorn thunder ?
.
not sure. that's why I pinged yugi. so he can help. he's the one that added the checks
you added the player has played before and player name != null checks when using /jsexp parse me and somehow apparently it breaks for him
and he was wondering if they can be removed when using /papi parse me
Oh does hasPlayedBefore return false if they just joined?
I believe it does
Ah, wasnt aware of that behavior, ill make that change asap
not sure why it existed in the first place
The check?
Wait
Is the issue on the older version or the newer one?
One sec lemme get on pc
ah I see
he only tested the /jsexp parse me command. it probably would happen on 1.6.0 with the /jsexp parse <player-name> command. since in 1.6.0 the check was only for that command but after that you made it check when using the me command as well
My bad
Yea
Yes
Do world time placeholders while no one is online?
yes @warm plover
I was using another plug-in for checking time placeholders and they only work when someone is online. The events the plug-in uses run in the server. They told me it should work but to ask the developers
the world time it all depended on the server not players as far as I know
Yeah I don’t really know what this is caused by so I just requested for them to make a %world_time% built in
@mint fable hey got small problem not sure how to use gradient placeholder
%gradient_{#hex1}{#hex2}{percentage:0..100}%
can some one make example
should I remove {}
I am using 2.0 version
there is already gradient
on ecloud
not sure how to use it
well Barry don't know all, this works on 7 out of 8 servers just fine. This is a warning I get at bootup
Hello, today i find little issue. When i download placeholders for server (papi ecloud download Server) and restart server. All gui form deluxe menu stop working at all. And it happends only with this server papi.
Version deluxemenu + papi = lates build
Version 1.17.1 lates build
Paper spigot
Paste bin : https://pastebin.com/81Lpw7eU
On 1.16.5 is all good
Hello everyone! Why is papi doing this? https://pastebin.com/fby4Bkeb
@novel waveuse latest version of papi might fix your problem
what version of the server expansion does it download? make sure its the latest as the ecloud one. it might be downloading an old one
I was donwload from this github https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#server where i find version of expansion
yes yes. the ecloud download command downloads it from the ecloud. but you need to check what version of the expansion you have.
do /papi dump and send the generated link over
hmm. it downloads the latest. that's strange.
this issue i have only 1.17.1
so I'm not sure why it happens but I know how to kinda fix it. you'll have to remove the usage of %server_entities% from all your menus
its just that deluxemenus might be parsing the placeholder async. which is not supported when getting the entities
Hi I have a little problem and I have the game time of the player in my scoreboard with the placeholder% playertime%. But somehow the correct playing time is not displayed to me, something is displayed but what that is I cannot say. Because it says that I have been on the server for 144 minutes although firstly I have been on the server for a longer time and secondly it is not even minutes because after 1 minuite nothing changes there only after what feels like 10 minutes
Is it possible to use wildcards for servernames, like this? %bungee_arena-*%
and have that get player counts for all servers prefixed with %bungee_arena-1, %bungee_arena-2, %bungee_arena-3, etc
no i don't think so, but you can use the math expansion
i think
hmm
or you might have to use js expansion
@thorn canyonyou can use custom placeholders that will add them up for you
My Placeholders does not work i installed everything i need for the plugin Scoreboard-revision and it does not work, and if i type /papi reload this error comes up.
[Sa., 6. Nov. 2021 10:08:44 MEZ INFO] Vinnipapi issued server command: /papi reload
[Sa., 6. Nov. 2021 10:08:44 MEZ INFO] [PlaceholderAPI] Placeholder expansion registration initializing...
[Sa., 6. Nov. 2021 10:08:44 MEZ INFO] [PlaceholderAPI] Fetching available expansion information...
[Sa., 6. Nov. 2021 10:08:44 MEZ ERROR] [PlaceholderAPI] failed to load class files of expansions
Hello, you can download Expansion-Script somehow
because w / papi ecloud doesn't have it
@late cloak is that all?
Does anyone knows how to have more money formats for vault?
Yes
Wdym by money format?
million, billion, trillion bla bla bla
thank youuu
dont know if this is the right place to put this, but how does one put placeholders in item lore?
you'd need a plugin to handle all that. and I'm pretty sure none exist. and for good reason. they'd have to update your item very often to update the stats.
yugi?
Hey there, I am trying to use %statistic_mine_block:CARROTS% but it always shows as 0 even if I mine a carrot
makes sense, thanks for the response ❤️
&7☛ &d%statistic_player_kills%/%statistic_deaths%' I did something like this for K/D, but when I kill 1 man, 20 points come in, is that normal? 1 is not necessary to arrive?

20 what points?
Wow that is cool
You can search spigot from discord
scours GitHub to copy and paste
not os I'm afraid
but I don't believe is that hard to use spigot's api to do something like this
use one of the unnofficial ones
does placeholderAPI only work for 1 plugin at a time?
It works for any plugins at one time. Depends how many different placeholders you use
How do i get more placeholders
sorry for the basic questions
Depends what placeholders you're wanting
hey, i0m having a problem creating a baltop hologram.
the placeholder will cound only online players
%vault_eco_top_player_1% i'm using this
Is there a vault placeholder that checks for permissions
where is the development builds for deluxemenus
@warm flax
ty
the palyer expansion has one %player_has_permission_perm.node%
Sucks it doesn't work offline 😦
yea bukkit Player#hasPermision doesn't allow that
Oh, what's the difference between that and vault ranks in functionality? I'm curious 👀
vault integrates it straight into your permissions plugin
Player#hasPermission uses ur permissions plugin but its very limited due to how bukkit wants you to do it
Oh ok, so why is it that vault can list ranks but LP can't then? O.o
Vault isn't a ranks plugin, its a bridge to your rank/eco/chat plugins
I understand that much, but if it uses LuckPerms to list the ranks, why can't luckperms do that by itself?
for offline players//
You can do it, but like i said its a bridge
Yeah
LuckPerms can list it, but its easier for developers to hook into vault as its one dependency and then luckperms hooks into vault
he's asking why luckperms doesn't allow people to access data about offline players
oh actually the placeholders
You can?!
not with the placeholders
Oh 😔
techno accessing the database sync once every ms would be insane
i mean they could cache
%luckperms_has_permission% doesnt work on offline players?
Nope
cache haundreds of players??
what's the point???
maybe thousands
Lol
Hmm, I wonder what can be done, I really just want to reskin /lp user Username parent info to be player friendly basically
thats true
Wait, what's the objective exactly
he want to check ranks and permission using the luckperms expansion but for offline players
i mean as its a command it aint accessing it every 1ms
It's for a deluxemenu
ah nvm
doesnt matter techno. just adding that to placeholder would be crazy. lucko clearly said it won't be added
i could make a plugin for u
Hold up
A menu that shows jobs. For.. offline players who cannot even view the menu while offline... or ... am I dumb rn
No, for online players to check the jobs of offline players???
view others?
yeah
So the objective is to get player names for job x, job y and so on and list them or the amount of players in jobs
hey, i'm having a problem creating a baltop hologram.
the placeholder will count only online players
%vault_eco_top_player_1% i'm using this placeholder.
tried to parse it and it count only online players
Hi, I have a problem with the plugin PlaceholderAPI plugin I do not want to start when I try to load it manually, it says that the plugin is turned on even though it is not there (There are no expansionów) after starting the plugin server as the first I initialize the start with an error, I read as if the plugin was already loaded when the plugin is alone without other plugins, everything normally flashes about this is the list of my plugins that are on the server (2 are my authorship but do not use the plugin API) this is the first time I encounter such an error, please quickly help
PS: sorry for poor english
i need help displaying a skript variable in the tab reborn, neznamy told me to come here for help
basically i need to parse a variable, call it {var::%uuid of player%} but idk how
i tried using /papi parse me %skript_var::\%uuid of player%\% but it didnt work
have you tried this?https://docs.skunity.com/syntax/search/placeholder
yes but i dont get a single thing
god dammit you seriously cant post screenshots in a support channel?
ok well no thank you
Skript
/papi ecloud download skript
%skript_<variable name>%
how do i do this
%skript_variable::%uuid of player%%
this is such a waste of time
okay so i've followed the steps from https://forums.skunity.com/resources/papi-skript-expansion.250/ which includes downloading the thing and restarting my server
i've parsed the variable using /papi parse %skript_variable::{uuid}%
and it still doesn't show in tab
have you tested the placeholder using /papi parse?
@turbid tide
ugh. you need to parse it for someone
do /papi dump and send the generated link over please
ok. seems like the skript expansion isn't registered at all. can you please restart your server and send the startup log over?
[19:45:47 INFO]: [Skript] Loaded 7 scripts with a total of 11 triggers and 7 commands in 16.86 seconds
[19:45:47 INFO]: [Skript] Finished loading.
[19:45:47 WARN]: [PlaceholderAPI] Loaded class ch.njol.skript.Skript from Skript v2.6 which is not a depend, softdepend or loadbefore of this plugin.
[19:45:47 WARN]: [PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
[19:45:47 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[19:45:47 INFO]: 1 placeholder hooks successfully registered!
ill upload the whole log in a sec
nah this is enough
so you got an outdated expansion. what you need to do is go to plugins/PlaceholderAPI/expansion and delete the skript expansion you got rn. then you need to go here https://github.com/Altruiis/skript-expansion/releases/ and download the expansion from there. after that put what you just downloaded in the expansions folder and then do a /papi reload
👍
https://gyazo.com/da9ae51bc33b76ff963e0eaaee966cab does anyone know why in 1.17 placeholder after reloading unregister itself?
Could anyone help me, ive been trying to update a few plugins on the server and been staring at the error log for too long and im spacing out. It seems like discordSRV is causing an issue when i try to do my papi reload command, I cant seem to find the error spot though
Hello, I'm looking for help with the MATERIAL NAMES of potions. I can't put them in the following placeholder:% statistic_craft_item: <Item Material>%
have you tried checking the logs? maybe an expansion breaks and takes down the entire registration with it
I mean can you share the errors?
I don't know if that's possible with spigot. since there is just one general name for all potions.
idk if minecraft even keeps track of different potions at all
Yeah that what was causing it and I resolved the issue. Cheers for the info tho.
Hm thank’s
hey, i'm having a problem creating a baltop hologram.
the placeholder will count only online players
%vault_eco_top_player_1% i'm using this placeholder.
tried to parse it and it count only online players
[07:53:20 ERROR]: [PlaceholderAPI]
java.lang.NullPointerException: The expansion version is null!
at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:166) ~[PlaceholderAPI-2.10.10.jar:?]```
is this normal?
Is there a way that when I click on an item it sends commands with the name of a player that I post in the chat?
(deluxe menu)
yes. you have to use the plugin called CommandPrompter tho.
use the expansion that is pinned in this channel
/papi parse DonKolia% world_nearbyEntities_200%
it does not work
%world_nearbyEntities_<radius>%
where?
what does it return?
empty
I need to create a Math but everything i do fails it's placeholders from statistics...
%math_22[prc]{server_online}% This works
%math_22[prc]%statistic_pig_one_cm%/100)% - This doesn't work
you forgot to replace the inner %% by {}
./papi parse me %math_22[prc]{statistic_pig_one_cm}/100)%
Fails
fails in what way?
Well there is just a thing that i can't use, but now it works
[20:19:09 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[20:19:09 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_(precision:0/60)%
[20:19:09 WARN]: [PlaceholderAPI] [Math] '(precision:0/60)' is not a valid Math Expression.
precision was changed
I know
How can i Round this number? - %math_({quests_category:killinghostile_completed}/9*100)%
Thank you 🙂
@turbid tide wasn't it :0_?
It was 🙂
Yeah. My bad
how do you get the expansion for factions mcore now?
it doesn't find factions as an expansion even though it was one before
For some reason in deluxmenus, the placeholder for player (%player%) is not working
@thick kindle Think it was built into the plugin or discontinued
well I found it on the website but for some reason it doesn't come up with the command
and no it is not built into factions mcore
but I got it solved anyways by just manually downloading it
Kk
how to create ecloud account? the registration is lock
Send @tender vapor a private message and one of the admins will help.
@austere hawk read this ^
hi there, im trying to use this placeholder provided by the plugin playerkits but its no working, it said that it works through papi, so im here to ask if someone know why ( im not able to post pics here)
sorry, i just saw the error, forget about all and sorry for the troubles, it was a capital letter in the middle of the kits name xd
jsexp works
Papi giving lots of warns when start server (too long message) i have two images but i cant send those
send the errors in paste bins please https://paste.helpch.at
update your server expansion
hi, can i make a JS placeholder that doesnt depend on a player
i guess not because of this
which is a pain
ugh that's offline player
it works for offline players
but discordsrv doesn't pass a player at all ;-;
ah Ic
cringe plugin
I mean you could update the js expansion to work without a player. its not that much work
just an extra check in evaluate when adding the offline player bindings
and removing the null checks
but yeah the other papi placeholders that you parse in javascript will not be parsed unless they support null
👍
I'll make an issue anyways. just in case I have nothing to do for the next hacktober fest. lmao
good idea
man I love my job. just giving myself a pat on the back
Wanting to use null are we? 😈
Anyway, good point. You can probably temporarily use a OfflinePlayer with an impossible name
Assuming there are characters in the username that mojang doesnt allow
god no
absolutely not
i fixed it now anyway
with a plugin
Is it possible to get papi expansions removed from ecloud?
We regularly have users who installed an unofficial expansion for our plugin called IridiumExpansion which wasn't updated for about 9 months and completely breaks when being installed. It's just annoying because apparently, many people believe that it's an official expansion and complain in our support about it. I believe that the expansion in its current, outdated state is absolutely useless.
@wary epoch whats the name of the expansion?
nvm
@wary epoch Do you have one to replace it with?
getting this error when trying to get Javascript expansion to work https://paste.helpch.at/fozerowida.sql
PlaceholderAPI-2.10.10-DEV-132 running on Magma/Paper 1.12.2
the expansion I'm using is Expansion-Javascript-QJS
I figured out this error, but still can't get the JavaScript placeholders to work, only change now running PlaceholderAPI-2.10.10-DEV-133 now
which helped me figure out the error better
[22:14:38] [Server thread/ERROR] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!
There is no time to wait! Ask your question @calm fiber!
does your plugin stp us from placing armour stands
@vivid sparrow please tell im in a bit of hurry
what
cuz i cant place armour stands in my server
"your plugin" this is a server where people ask for help with many plugins, be more precise
none of clip's plugins does that
does your plugin placeholder-api stop us from placing armour stands
Why would it do that? No
ok thanks
lol
Oh, did I delete that part of my message? We hardcoded the placeholders, no extension is required. A lot of people apparently don't know that that's possible
removed it
I don't know what "ping if you're not actively involved in a conversation" is supposed to mean, sorry if it was bad
Thank you
What do you mean with that? :D
I know that it states that it's an unofficial expansion, but as I mentioned, many people just don't read that text, they probably just search "iridium" and install the first expansion. The issue is that IridiumSkyblock 2.6.7 was published on January 7 2021 and is completely incompatible with IridiumSkyblock 3.0.0 - 3.1.6 (every version after 2.6.7). The functionality is integrated in the plugin now.
@wary epoch as an admin set it it will be stayed that way but pretty much it was set as unverified @balmy marten (does this mean the command will not work?)
As this isn't a verified expansion you can only install this expansion manually.
@wary epoch ^
via the ecloud website
Oh, I see, that helps a lot
Ye
the vault and JavaScript expansion throw null errors
show the errors please. in paste bins
https://paste.helpch.at/fozerowida.sql here is one I posted last night
I've seen this quite a lot lately, from what I've understood the problem could come from plugins that mess with the class loader. Such a plugin is ChatControl. Not sure which others can do this.
I don;t use chatcontrol, I use dchat
yeah but there might be other plugins
and if I don't run the latest papi dchat will not work
that mess with the class loader
doesn't need to be a chat plugin
what I can recommend is remove your plugins 50/50 until it stops to figure out which one it is.
ok, all plugins on this server run on another server with no issues, difference is bukkit and paper
vault worked on PlaceholderAPI-2.10.10-DEV-132, I get null error on PlaceholderAPI-2.10.10-DEV-133
@carmine veldt any comment on this? they get the null version error on PAPI 2.10.10-133 (so latest) but not on build 132.
javascripts gets null on both
oh...
can you send the javascript jar
which one stops on 132 then?
pls send your javascript expansion jar
what server ver?
these expansions https://paste.helpch.at/asigopobog.css run fine on Spigot 1.12.2 with PlaceholderAPI-2.10.10-DEV-111, I have tried this same combo on Magma/Paper 1.12.2 and no combo seems to work
vault might of been me delete vault from plugins by mistake reboot server now to test
can u send ur vault jar & vault expansion
I'm not running normal paper, it's magma/paper
can you link that or send me the jar for it please
https://magmafoundation.org/, I wouldn't run paper, but this is how I can tie in all my servers chat
magma allows me to run forge mods
I can make a temp server and pull one mob out at a time to see one of those are my problem, mods can't be removed as easy as plugins without causing issues to the map since they add new blocks
you had no mods
yeah no mods
just papi plugin and javascript expansion
and I got the same null error
issue is magma
I know when I reboot server with someone still connected it may not start back up
guess I will have to not use JavaScript placeholders and vault, I can see is ess works
javascript just allowed chat colors I'm sure I can figure out another way
essentails expansion will not load either, guess I will remove balance from dchat
a lot of the expansions handled by helpchat will break if thats the case. so youll probably have to give up a lot of expansions
I know, I have 4 working and no need to add more yet
I see it as use dchat on all servers is more important then a few placeholders
server version?
1.8.8
welp. deluxemenus doesnt support that anymore
I have to use version 1.10.5 ?
What was the error if not?
yes you have to use version 1.10.5
material: INK_SACK
data: 10
slot: 11
display_name: '%javascript_rankColor_getStatus,10%Gold Rank Color'
lore:
- '&7Changes the color of the plus in %javascript_rankColor_getRank%'
- '&7to gold, turning it into %javascript_rankColor_getRankPreview,&6%&7.'
- '&7'
- '&7Shown in tablist and also when chatting.'
- '&7'
- '&e%javascript_rankColor_getMessage,10%'
hide_attributes: true
hide_enchantments: true
hide_effects: true
hide_unbreakable: true
priority: 1
view_requirement:
requirements:
permission:
type: string equals ignorecase
input: "%luckperms_inherits_group_mvp+%"
output: "yes"
left_click_requirement:
requirements:
hours:
type: '>='
input: '%statistic_hours_played%'
output: '10'
deny_commands:
- '[sound] ITEM_CHORUS_FRUIT_TELEPORT 1 0.1'
right_click_requirement:
requirements:
hours:
type: '>='
input: '%statistic_hours_played%'
output: '10'
deny_commands:
- '[sound] ITEM_CHORUS_FRUIT_TELEPORT 1 0.1'
left_click_commands:
- '[console] lp user %player_name% meta setprefix %javascript_rankColor_getMeta,&6%'
- '[message] &a&lPREFIX &8» &7Changed your prefix to %javascript_rankColor_getRankPreview,&6%&7!'
- '[sound] BLOCK_NOTE_BLOCK_GUITAR'
- '[close]'
right_click_commands:
- '[console] lp user %player_name% meta setprefix %javascript_rankColor_getMeta,&6%'
- '[message] &a&lPREFIX &8» &7Changed your prefix to %javascript_rankColor_getRankPreview,&6%&7!'
- '[sound] BLOCK_NOTE_BLOCK_GUITAR'
- '[close]'```
The menu does not want to open and that puts errors in the console! Do you think it must come from the JavaScript expansion?
what error does it put?
oh yes @austere hawk the error can show up from the javascript expansion as well. if your server is 1.8 then your java version must be 8 right? you'll probably have to downgrade the javascript expansion as well
ok pinger expansion has no errors when I parse this it says offline when it is online %pinger_online_127.0.0.1:25450%
should I try and downgrade pinger on 1.12.2
Can I have javascript for version 1.8.8 please
I believe version 1.6.0 should work.
How did they find version 1.6.0?
On the web site there are no javascript versions
/papi ecloud download javascript 1.6.0 then /papi reload
wtf
yes?
after papi reload
everything broke
😄
even restart server
some of the placeholders are working
but those are not
wtf
@simple nova do /papi dump and send over the generated link please. also a very useful thing could be your full startup log
this might help
ok
it was /papi ecload download quest
now i deleted expansion
everything is fixed
weird
yeah. you had the quest expansion but not the quest plugin
%statistic_player_kills% is that wrong?
bc i getting this error:
Unknown statistic 'player_kills', check https://helpch.at/docs/1.17.1/org/bukkit/Statistic.html
its %statistic_kills%
I believe
wait let me double check
oh nvm. it should be %statistic_player_kills%
bc i getting this error:
Unknown statistic 'kills', check https://helpch.at/docs/1.17.1/org/bukkit/Statistic.html
hmm. that's strange
yea.. same
This server is running Tuinity version git-Tuinity-"4c31ea1" (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 4c31ea1 on HEAD)
You are running the latest version
btw. just so you know. tuinity now comes inside paper. so maybe try latest paper build
I thought it hadn't passed yet? Are they integrated?
ow, thanks for information. Whatever how about player_kills xd
well I'm saying try paper just in case
something is messed up with the server jar
tho I doubt it
le me sec
if it still doesn't work for some reason, test %statistic_PLAYER_KILLS% maybe it doesnt like the lowercase
and make sure you have the latest version of the statistic expansion
i have just installed the expension
now, im waiting the server
okey
This server is running Paper version git-Paper-378 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: cc2ecbc)
You are running the latest version
Previous version: git-Tuinity-"4c31ea1" (MC: 1.17.1)
thats worked
thanks ^^, it must be cause of lowercase
yeah. strange tho. I'm 100% sure that it should make it uppercase
before trying to get the statistics from paper
yeah. the code is there
Hi I need help with placeholderAPI not noticing that the essentials Expansion is not downloaded. I am also using Magma 1.12.2 so idk if that has anything to do with it but i just would like to have my nicknames working in chat
if you read few messages above, you'll see that manga breaks loading for a lot of expansion and I'm afraid there is no fix on our end for that
oh okay. Is there another way around it for nicknames on essentials to work?
you can try the player expansion with the %player_displayname% placeholder
It still just shows percentplayer_displaynamepercent. Is there an expanison for it or no? if not nicknames aren't that big of a deal. 🙂
yeah. /papi ecloud download player then /papi reload
does anyone know where i can download an older version of placeholderapi that supports 1.7?
Spigot page. There is a "version" or "version history" tab
Hi! And how to combine bold text with this placeholder %gradient_message_{#hex1}_{#hex2}_message with colors% or %gradient_percent_{#hex1}_{#hex2}_{percentage:0..100}%?
You cant
Maybe there is a similar placeholder that I do not know about?
havent seen any that supports bold its open src so you can always add it yourself
Okay, thanks
What's wrong with PlaceholderAPI.setPlaceholders (player, text); In text there are several placeholders in% ...%
But nothing happens. Only the placeholder% ...% is output
several placeholders? do you have an example of the text
not sure why this error happens during bootup of Spigot 1.17.1 https://paste.helpch.at/raqinusayu.sql
update the server expansion
thanks, I updated the rest of the expansions, a few show they need update but they are built into the plugin, how do I fix those?
how can i get stsats from offline players like with this for ex %statistic_mob_kills% how can i make that with offline players?
if %essentialsnick% not working what cause it
it worked tho but now it shows the placeholder not the name
Yes there are several in the text
?
thats not a valid essentials placeholder. it should be `%essentials_nickname%
Do you have an example of the text? Or the exact text you're trying to use by chance?
"[%clan_tag%]"
do you have the clan expansion installed on your server?
also what plugin does this clan placeholder come from? can you link
?
This Plugin use PAPI
do /papi parse me %clan_name% while youre on the server and tell me what it says
Is there a placeholder for a player's name in all lowercase letters?
no. not that hard to make with javascript tho.
it should be just one line
BukkitPlayer.getName().toLowerCase();```
literally just this in a js placeholder
hmm don't really know too much about them but ty
here's the wiki for it ^^
works! ty!
👍
%clan_name%
yeah. that means that either that placeholder is not a PlaceholderAPI placeholder, or your expansion is missing or just broken.
you'll have to ask the developer of that plugin to see what's going on
wym
Are you installing through game/console or manually by putting .jar into folder?
hey.. so when i change the group/rank prefix to hex codes in luckperms it looks fine in tab (using bungeetabplus) but in chat it keeps the '&' for some reason, using deluxechat.. tried all different placeholders.. vault, luckperms etc.. all keep the '&'
any ideas? xd
In game
But i thinking i am using a old version of skript. Can that be the problem?
i tried
When you kill 1 person, it should write 1 kill, but it writes 20 kills, what is the reason? https://prnt.sc/1zkd76e I use "d%statistic_player_kills%"
I mean the expansion just gets the statisitics from spigot/minecraft. they're saved in world/stats/player-uuid.json. You probably have a plugin that messes with the statistics or something
and? u cheked the startup log for errors/warnings?
hey folks, im trying to get a command working in skript and its doing my head in. I had everything right up until the point where i realised that luckperms doesnt play nicely with skript. so ive setup placeholderapi and downloaded the luckperms and skript extensions and im still struggling.
can someone please have a quick look at this code and let me know what im doing wrong? Thanks so much
every 10 minutes:
loop all players:
if {play::%loop-player%::time} is greater than or equal to 10 minutes:
if loop-player %player_has_permission_<discord.nolink>% contains "yes":
send "You need to link your account" to loop-player
send "Go to blah blah" to loop-player
else:
stop
why skript 😭
lol i asked the guys over in the skript discord the same question and they said why luckperms and then pointed me to the placeholderapi link
skript aint good
what would you suggest instead that can achieve what im trying to do?
making an actual plugin
i wouldnt even know where to start
Hire a developer to make one for you then. #904591268515029032 #904591269005770762
[06:19:39 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
why does this happen on startup sometimes?
it fixes with a reboot but comes back randomly
remove the brackets between discord.nolink
tried that with no luck. i think its an issue with skript not reading %player_has_permission_discord.nolink%
i thought skquery allowed skript to use placeholderapi variables but i dont think thats the case
ah
Yeah. So I’ve just installed Ersatz which I think is going to solve the issue but I’m giving up for the night. Thanks for the suggestion though
is that the entire error? nothing more?
Hey guys, i need someone to help me, i use %player_first_join_date% as first join date BUT some players even me have bug, where the first join date resets randomly. For me my first played was 9.3.2021 and now its 14.11.2021 - the exact time matches with time that was "disconnect by myself"
Need to mention i use ForceResourcepacks, if player declines it, it kicks them (dont know if it can be doing something with papi or not)
Is it possible that your uuid changed? Certain plugins mess with uuids, an improperly configured bungee network can cause this as well. That's the only possibility I see here. A new uuid would mean a new data entry - makes sense
well not sure this is fixable from PlaceholderAPI either way. The Player expansion just takes the time from spigot itself which takes it from the world/playerdata/<player-uuid>.json file.
as Zeromaniac said, either you have plugins messing with uuids, either you have plugins messing directly with the data file or your uuid changed
Who to find a scoreboard plugins that does not need PlaceHodlerAPI or if you can find version 1.7.10
Hello, it say failed to load class file expansion how do i fix this
send the full error in a paste bin please: https://paste.helpch.at
oh sorry, i already fix it, turn out there is one expansion that is not working(?)
https://pastebin.com/u2ieR1Lh
what's wrong with this?
what version of the math expansion do you have?
actually im just asking questions on behalf of another person
that person downloaded the math placeholder with the /papi ecloud download Math command
and that error appeared
thank you.
Math [1.3.0] sir
what server version and what java version are you using?
also is that the entire error?
Yes, it is.
1.12.2 with java 8
ah. that might explain it. the Math expansion will require java 11 to work properly
i see, so there is no way to fix it right?
you could possibly go down a few versions and use that. but it will be using a different format and could have some bugs
how can I use RelCon expansion? none of the placeholders work
can i have some help?
maybe? just tell us what the problem is. we can't guess
I got a new extended storage devise for my computer and I have set it up and it appears on my files and it works as I have tried installing a game on it but there is an application I'm trying to download on there but it download on my normal storage which is full and cant download it is there any way to make it to download it on the extended storage device?
Ugh. I'm not sure this has anything to do with PlaceholderAPI? This discord server is about minecraft and development. Not sure I can help with that. you can try in #dev-general tho but doubt a lot of people will be able to help
how can I use RelCon expansion? none of the placeholders work
Can someone help me? I'm having these errors when I try to display some information.
[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] Placeholder: %math_([precision:0]{statistic_minecart_one_cm}/100)%
[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] '([precision:0]0/100)' is not a valid Math Expression.
Is there a way to learn a player's name from their UUID with a placeholder?
I dont think so. well its possible but there isn't a placeholder for that
if you know javascript you could use the javsacript expansion to make it
to make a placeholder that does that*
actually. not sure its possible with the js expansion
you might need a custom expansion for that
ok
should be possible, you can use BukkitServer.getPlayer(uuid),
well, that would only work with online player though
oh I see, and I guess there isn't a way to get an UUID from a string within JS ?
or at least, the Java UUID class
Yeah
oh damn. you're right
🙂
gaby any chance you know what it is for quick js? been looking around and I found something about JavaClass.forName but doesn't work. it doesnt exist basically
no clue
I've tried this placeholder: %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%
and it gives red on both player and viewer
why?
I get package me.clip.placeholderapi does not exist when I try to compile my plugin, I'm just trying to hook into PlaceHolderAPI
I added this to my pom.xml
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
and
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.0</version>
<scope>provied</scope>
</dependency>
When I import import me.clip.placeholderapi.PlaceholderAPI; it's blue (the normal color) and its not grayed out.
Don't exactly know how to fix this... pointers?
ty u xd and here %math_0:_{quests_category:mining_completed}/9*100)%%' u can help me plz xd
anyone?
possibly because uve spelt provided wrong
also, did u mean 2.10.10 version? because 2.10.0 is like 2 years out of date
not too sure what to use then, the placeholder wiki said to use 2.10.0
It’s blue though, and it i shift click it (my import) it opens the code in my libraries
that is what is weird, but my guess is that the IDE doesnt read the scope value, so it works, but when compiling it will error on mavens end (just a random guess)
could also be a cache issue thats causing the inconsistency between maven and IDE
also, what wiki are u looking at? because on github its fine, which is the latest wiki
used 2.10.10
I mistook the 'this example only works for 2.10.0 or higher!' for 2.10.0 to be the version I should use
thank you very much!
I've tried this placeholder: %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%
and it gives red on both player and viewer
why?
I have a problem with the variable vault in papi
?help
@elder flax what plugin
Hi, i'm having this problem when i use /papi ecloud download Vault, and then /papi reload. I'm using a magma server.
https://pastebin.com/FpRD6WyS
i think the issue here is magma
other people have reported this issue, all with magma
Thanks
Is it possible to run place holder API with mohist?
yeah but we've noticed a lot of expansions breaking on it
so you can run only a few expansions
It is RelCon expansion, not plugin
I think he means in what plugin are you testing it?
because plugins need to specifically support relational placeholders otherwise they won't be parsed right
I used /papi parserel to test it, and I was using it on TAB
Also I think TAB supports it because owner told me to ask it there
ok. just to make sure. have you read the wiki for the relcon expansion to see how it works?
Yes.
There isnt any afaik
sad
We could add our own api if needed
If there any specific use-case where thats needed?
if you want. but I personally wouldn't use it anyways
ah, nvm then
the guy wanted to get a player's name from their uuid
and to do that I would've needed the UUID class
hmm
can you show me the exact command youve used to test?
I think its possible with some reflection
BukkitServer
provides Server, which has the getOfflinePlayer method
if you reflectively try to get the first argument, you should get the UUID class
/papi parserel PlayerOne PlayerTwo %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%
const a = BukkitServer.getClass().getMethods()
var uuidClass
for (i : a) {
if (i.getName() != "getOfflinePlayer") continue;
uuidClass = i.getParameterTypes()[0]
}
alr
Well that will only return colors. have oyu tried placing text inbetween to see how it works? Also I can't seem to get my minecraft to launch so can't test it myself
/papi parserel PlayerOne PlayerTwo %rel_relcon_player_group.default_&aasdasd%%rel_relcon_viewer_group.default_&casdasd%
so finally got minecraft to run.
what this will do is check if PlayerOne has permission group.default and it will show &aasdasd if they do have it and then check if PlayerTwo has permission group.default and it will show &casdasd if they do have it
is that what youre trying to do?
Actually I just want every player to see their name green and red for others. I don't know why this thing require permission
So I entered a random permission which is everyone has
oh
I don't think you can use the relcon expansion for that
you might need a custom expansion for that as I don't think there is one that does what you need or can do what you need
😦
yeah. the problem is that this expansion checks for permissions. not something else. if it would let to check for name for example, we could do that but it doesn't
okay
So it didn't let me use : but switched to of and it tells me that the value is not iterable
printing a I get [Ljava.lang.reflect.Method;@21e06d3a
its not an array
Heyo! Im trying to parse 2 placeholders into one, i only dont know how. I am trying to get the world time of the world that the player is in with %world_time24_<world>*, only the <world> differs between players and i dont know how i can make it take the %player_world% value
hello. you don't have to do that at all. the player expansion has world time already. %player_world_time_12% %player_world_time_24% and I'm pretty sure the world expansion just tells you to use these instead. it doesn't even work anymore.
that indeed works! i dont know why i didnt see them. Thanks!
I am just trying to run like 4 in total but one of them is not working at all on mohist
Its the core one too :(
btw. just so you know for the future, not all expansion support placeholders in placeholders. those that do are usually %placeholder_{in_placeholder}%
so basically { instead of % for the inner placeholders
yeah. am afraid there is no fix from our side. mohist messes with the class loaded
Alright I will go over there Thanks :)
Hey guys so im trying out PAPI for the first time and i've run into this issue i cant figure out how to solve
I have a scoreboard dummy objective called sidebarcountdown that holds a number
when i parse this for myself with sidebarcountdown = 120
%changeoutput_equals_{objective_score_sidebarcountdown}_-1_Waiting..._{formatter_number_time_{objective_score_sidebarcountdown}}%
It outputs {formatter
I expected it to output 2m
when i parse this for myself with sidebarcountdown = 120
%formatter_number_time_{objective_score_sidebarcountdown}%
Its outputs 2m as expected
and if i replace {objective_score_sidebarcountdown} in the main placeholder with 120 literally, it works just fine
Is there a limit on how much you can nest placeholders? How can i make this work?
unfortunately you can't parse nested placeholders within nested placeholders
so your method won't work
though you could use the JavaScript expansion to do that
/papi ecloud download Javascript
/papi reload
go in /plugins/PlaceholderAPI/ and open javascript_placeholders.yml, add
objective:
file: objective.js
in it
then go in /plugins/PlaceholderAPI/javascripts/ and create a file called objective.js
open that file and put this in it:
function objective() {
var obj = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%objective_score_sidebarcountdown%")
return obj == -1 ? "Waiting..." : PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%formatter_number_time_"+obj+"%")
}
objective()
/papi reload
and then you can use %javascript_objective%
@finite bluff
file called objective.js not tokens.js
👍
oh wow you wrote it for me
Thank you so much :D
That is an array
guys
how to unregister my expansion when plugin is disabled
i see no unregister method
(api)
or does it do it auto?
I mean your plugin should only be disabled when the server stops anyways. And yeah I believe it auto unregisters. there's no unregister method that's for sure
actually. there might be some but you're not meant to use it
yeye but in some cases it can disable randomly
(simply when using a plugin manager)
yeah. people should not use those.
you should not bother fixing your plugin for people that use those
Hello,
I get an error message with PAPI: https://pastebin.com/G84ke8Pm
I am in 1.12.2, I have the latest version of PAPI (I tried 2.10.9) & the latest version of SaberFaction.
Do you have an idea?
Hey, what does this mean? Running on 1.17.1
try to redownload the Player and Mvdw expansions
/papi ecloud download Server
/papi ecloud download Mvdw
/papi reload
if it keeps happening, check in your Expansions folder in your PlaceholderAPI folder if you don't have the expansion files 2 times
you said you're using SaverFactions right? well it seems like you've got the expansion for Factions by MassiveCraft, which doesn't work since the plugin isn't installed, try to go to your Expansions folder in your PlaceholderAPI folder and delete the factions expansion, and see if it happens again
Resolve ! Thanks 🙂