#placeholder-api
150650 messages · Page 22 of 151
maybe you're not overriding
im in class :wheeze:
Because if the player is null
It returns ""
I think almost all expansions check for player first and return null or ""
it's their expansion
Oh
yeah
Okay. Code after class
not overriding is my initial thought, but code later for sure 👍
i mean, when i actually pass in a player it works just fine :/
Yeah
hey can u update papi hooks on KoTH v1.5.1?
its not up to papi to update expansions, but rather the authors of the plugin/expansion themselves
project is abandoned last 2 years
I don't know how to explain this but how do I make it that a random number generated in a javacsript can be used somewhere else
var min = 1;
var max = 5;
function randomInteger() {
if (args.length == 2) {
min = args[0];
max = args[1];
}
var random = Math.random() * (max - min);
random += min;
return Math.floor(random);
}
randomInteger();
this generates the random number between 1 and 5 and I want to use that number somehow in a message in chat.
use rng expansion 🙂
if u need 1 to 5 then use %rng_1,5%
dont forget to download the expansion if u havent already
/papi reload```
Alright but... how do I use that same generated number in a message?
/papi parse me %rng_1,5% & %rng_1,5% = both different numbers
and what I want is to have the first one generate a number and then display that number in chat (cause i'm using it for exp gain)
put the placeholder in whatever plugin ur using to send the message?
You need to store it somewhere, take a look at js Data @dense trail
Could add that to rng @warm topaz %rng_last%
Yeah for now i'll just skip it then... or find a other way
I don't know anything of javascript, I just adjust code to my likings
Mkay
i dont understand that why %kp-pvp_player_kills% dosent work in hologrmas i watched this video https://youtu.be/juooznpPseE but didint help
so how can i help kp-pvp things to work
becaus i want holograms that show how meny deatsh, kills, and all that
but theese dont work
%kp-pvp_player_kills%
%kp-pvp_player_deaths%
%kp-pvp_player_coins%
%kp-pvp_player_streak%
%kp-pvp_player_is_on_kitpvp%
%kp-pvp_players_count_total%
%kp-pvp_player_kit%
%kp-pvp_player_level%
%kp-pvp_player_xp%
/hd setline Kitpvp 1 &b&lKills %kp-pvp_player_kills%
what is wrong with that
dosent work
look the picture
can u do /papi parse me %your_placeholder_here%
its says
well its automaticly instailed
so i dont know how could i do that
and this is the link
/papi parse me %kp-pvp_player_kills%
it says %kp-pvp_player_kills%
Of corse
wait
i mayby have difrent let me look
um
i had wrong papi
sory
lol
wasnt there a placeholder that showed the blocks/sec of a player?
not talking about the walkspeed, but their speed at a given time
nvm its an expansion which somehow breaks other placeholders for some weird reason
Hi, I get some errors when loading javascript placeholders: https://i.gyazo.com/5326968eafe9d4ebec630d5ee323f3ad.png How can I solve it? Thanks
Those are just debugs
yeah. Thienbao should rly make it not be on by default and add an option in javascript_placeholders or something
@rare lily ^ idea for you
make it have a debug option in javascript_placeholders instead of showing all those messages by default
told ya they will get annyoing when you have tens of javascripts
heyhey, quick question: How do i use a placeholder inside a placeholder? currently working with our own coded plugin and a tablist plugin. That Tablist Plugin supports placeholders. Since we want to get the placeholder from that specific player on the tablist, we use %saocore_playerlvlother_playername%, but how could i use another placeholder inside of it? we tried %saocoreplayerlvlother%player_name%% but that seems to break the whole Placeholder entirely
there was a method like PlaceholderAPI.setBracketPlaceholders(), idk if it still exists or not
the bracket placeholders did work for a bit until we restarted the server. we did %saocore_playerlvlother_{player_name}%, which worked for a bit
Nevermind, figured it out. accidentally used player instead of player_name in the placeholder
Is there any reason to why my Karma Overload Expansion did not get verified on the ecloud website?
Probabaly never asked to have it verified?
Do you have a link to the source?
The source being the expansion or the plugin which the expansion is for?
I mean both would be preferred. I just have to look through the code myself to make sure it's safe.
I hope there isn't anything wrong with either, as I don't have that much time to program since I started university
I'll check it when I'm at my PC. Might be tomorrow.
is the source code available anywhere?
because of %
%math_{server-online}-1[precision:0]%
oh
server_online as well
not -
I am trying to figure out placeholders for featherboard for vote party anyone got any idea?
ok
@turbid tide i mean, that's part of your fault for not specify the engine type 👀
@rare lily,
To get the script understand
Time to downgrade the is expansion then xD
I'm getting this error when using the %server_uptime% tag and I'm not entirely sure why. I'm using Paper-231 (MC: 1.16.3).
[03:08:36 WARN]: Unexpected exception while parsing console command "papi parse FireControl1847 %server_online% / %server_max_players% currently online | Online for %server_uptime%"
Caused by: java.lang.NoSuchMethodError: 'java.lang.String me.clip.placeholderapi.PlaceholderAPIPlugin.getUptime()'
@charred mist,
I am running 2.10.9
redownload the Server expansion with
/papi ecloud download Server
then reload PlaceholderAPI with /papi reload
Thanks for the quick reply. Unfortunately I have tried this to no avail. I have also cleared the ecloud cache and refreshed, then re-downloaded, and it did not work
It is version 2.3.1
[03:22:48 INFO]: Expansion: Server
Author: clip
Verified: _
Latest Version: 2.3.1
Released: 2d 39h 28s ago
Release Notes: Fixes %server_uptime%. Thanks to MrGraycat for the fix.
(ironic, seeing as it didn't fix the issue for me)
yeah lol
can you check your Expansions folder in your PlaceholderAPI folder?
maybe there are 2 server-expansion files?
Ohhh you know what, I do see two of them
Does anyone know a placeholder I can use that will get the color of my vault rank but not the actual name?
Ah-ha! That fixed the issue right up. Thanks a ton!
👍
Does anyone know a placeholder I can use that will get the color of my vault rank but not the actual name?
@lone prairie I think %vault_prefixcolor% or %cault_rankcolor%works
%vault_prefix_color%
ok because I tried using that and it still returned the entire prefix. The prefixes are determined by luck perms
yea i assumed %vault_prefix_color% would only return the color but for some reason it gives the entire prefix
thanks for trying to help
I may try to create a placeholder /fix it with my poor java knowledge later
Oooo ok
any idea why this happens:
http://images.virtusdevelops.eu/shareX/a13ewos6.png
Hold on a second.. i just realized something
It is actually not required for the javascript expansion with file as ".js"
ugh no idea.
It can be file ".txt", or any raw file with scripting content
oh
Cuz it evaluate the content not the file itself
makes sense
🤣 🤣
Dont you still need a way to download the js expansion?
It automatically clears out any content with ".js"
Dont you still need a way to download the js expansion?
@vivid sparrow /papi ecloud download
Ah
Btw, i think it was because of me that they noticed ._.
I keep saying that I will use .js for testing hangman on their discord, that's why
who noticed what?
The team, of course
Also, I am not in that discord currently
Second thought.. i'm not adding module dependency in this expansion
Might be too dangerous
How would I go along the ways of formatting the autosell placeholder with timeleft so it doesnt show minutes but it formats as in 2m 59s rather than rounding up to minutes obv javascript papi expansion
Statistic version?
PlaceholderAPI-2.10.9
Plan-5.1-build-770
no the Statistic Expansion version
Plan-5.1-build-770 @turbid tide
thats what the user thats having issues said to me
is this possible ?
@vast anchor I don't know for sure but I also don't recommend that !!!!
It will break all your boolean placeholders
jesus christ what are you thinking? xD
just let it yes/no or true/false or just translate it
that will change the return for every placeholder that used to return yes/no
Let me see what is the best I could think of from editing statistic-expansion
thien ur good with js arnt ya
Yeah
aww shame
he broke the expansion
Liar
smh damn big scruff up
he made the debug mode always be on
How would I go along converting one of autosells placeholders instead of formatting to minutes to format to like 2m 59s
he's like Hitler but even Hitler cared about Germany
That's your fault also 👀
%autosell_time_multiplier_timeleft% parses the same as %autosell_time_multiplier_minsleft%
How would I go along converting one of autosells placeholders instead of formatting to minutes to format to like 2m 59s
@mental night It only returns minutes?
then you can't
well I mean you have 2 minutes
how do you convert 2 minutes to 2 minutes and 20 seconds?
you need to know the seconds not the minutes
ah
Then why does
%autosell_time_multiplier_timeleft% parses the same as %autosell_time_multiplier_minsleft%
parse the same
%autosell_time_multiplier_timeleft% is this returning minutes also?
yeh
🤷
and i assume it shouldnt
Update 1.6.1 in js-expansion is also gonna be a ride
There're some instances where the debug message are a must to be seen
It's better to stack things
im pretty new to using this plugin, and plugins in general, but ive installed the player expansion and its working, however when i try use %playername% in a command set to clickable sign or npc it returns something like %playername% is not a player. also idk if %player% is a thing, but ive used it in the past on an item i made and it still works, but when i try to recreate that item, it no longer works. any idea whats going on?
?player
why not use the ingame command phoenix
/lp group <group> meta setprefix <prefix>
he asked a question but then deleted it
well yes but I mean thats how it shows up in the web editor
the problem however is that the %vault_prefix_color% placeholder does the exact same thing as %vault_prefix% and grabs the whole prefix rather than just the color
hmm, yeah. i had that installed. i added a command to a clickable sign with another plugin that says it supports papi. if i check the command info after using the %player_name% placeholder, it returns my name, but when actually executing the command, it says %player_name% is not a player. so im guessing this is the sign plugin issue?
okay, it seems that luckperms doesnt recognize the placeholder.
idk anymore. thanks for the advice tho!
did u do /papi reload
yeah i made sure it worked using the parse me %player_name% command and it returns my name
mhm
if /papi parse me %placeohlder% works then its not papi
its the plugin that doesn't support it
figured luckperms did, ill go check out that documentation again. thanks!
so i added the command to a citizen npc and it works fine. just not on the sign so i guess that narrows it down to the serversign plugin.
thanks for the help :P
withjava String joinText = "%player_name% &ajoined the server! They are rank &f%vault_rank%"; joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText); event.setJoinMessage(withPlaceholdersSet); } (example thats on wiki), what would the value of joinText be?
wdym the value?
if I replaced withPlaceholdersSet with joinText
then it would send a join message with placeholders being parsed?
then what is withPlaceholdersSet?
k thx!
wait what wiki is that on?
¯_(ツ)_/¯
I think it was meant to be ```java
String joinText = "%player_name% &ajoined the server! They are rank &f%vault_rank%";
/*
* We parse the placeholders using "setPlaceholders"
* This would turn %vault_rank% into the name of the Group, that the
* joining player has.
*/
String withPlaceholdersSet= PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);
event.setJoinMessage(withPlaceholdersSet);
I suggest to create a placeholder which shows the Server Total balance
If that's what I think it is, that's a server crash waiting to happen.
🙂
lol
I'll consider it once the baltop API goes live in Essentials.
it does it in batches tho right? like pages with /baltop 2 , 3 etc
It actually does it all at once but just async
It'll perform even better when the changes go live.
interesting
I'm using luckperms and statistics extension and I have problem with displayed time being incorrect
download placeholderapi dev build
👍
Is there a placeholder for playtime?
what does EssentialsX use?
for /whois
or if they dont use papi, what code do they use?
papi? for /whois? its their own code
what does the command show?
ip, uuid
hmm
what else was it
[17:16:55 INFO]: ====== WhoIs: NAME ======
[17:16:55 INFO]: - Nick: NICKNAME
[17:16:55 INFO]: - UUID: 1c1dad11-aa3c-333c-8c32-1ba8d43d9476
[17:16:55 INFO]: - Health: 20/20
[17:16:55 INFO]: - Hunger: 20/20 (+4.8 saturation)
[17:16:55 INFO]: - Exp: 6 (Level 0)
[17:16:55 INFO]: - Location: (world, 14,443, 72, -13,135)
[17:16:55 INFO]: - Playtime: 1 day 14 hours 44 minutes
[17:16:55 INFO]: - Coins: 4,194.67⛂
[17:16:55 INFO]: - IP Address: /xx.xxx.xx.xx
[17:16:55 INFO]: - Gamemode: survival
[17:16:55 INFO]: - God mode: false
[17:16:55 INFO]: - OP: false
[17:16:55 INFO]: - Fly mode: true (not flying)
[17:16:55 INFO]: - Speed: 0.2
[17:16:55 INFO]: - AFK: false
[17:16:55 INFO]: - Jail: false
[17:16:55 INFO]: - Muted: false``` Its all information they got stored
I guess
some its just player methods
yeah most of it its just player methods I guess
and I think they cache the information when a player leave
because I'm pretty sure after a server restart if the player doesn't rejoin, the command doesn't find the player anymore
It should attempt to pull the player information if it matches a UUID of the player to a file.
both would prob work if thats the case
No it'll attempt to pull the uuid from the name.
Wait, does 1.12 and below supports old version statistic-expansion only currently?
Or it's changed?
I'm pretty sure the latest version works across all.
I think Gaby did a lot of work on that.
guys can u help meu out here
is there a ways to disable a certain placeholder or not?
yes, don't use it
yes, don't use it
the thing is im using luck perms and what ever rank i have when i type in chat is shows luckperms rank in gray than luckperms rank prefix and then my user name
and i want so thath the gray rak dosent show up
remove the placeholder which shows that gray rank from your chat plugin's chat format
just delete the placeholder from your chat format
well then im using papi wrong
i # the essentials chat so papi could take over
#format: '{clans_name}{prison_rank_tag_prestiges}{prison_rank_tag_default} {DISPLAYNAME}: {MESSAGE}'
how can i put the placeholders working correctly?
you need to go to config.yml and set enable-suffix-prefix to false
where ?
good evening I currently have a problem with an API
what is thou problem
I do "/ papi ecloud download state" but the plugins downloads the API well but does not take it into account I tested on 2 different servers but it does not work.
but does not take it into account I tested on 2 different servers but it does not work.
?
are u trying to use this over bungeecord?
no
wdym by that then
🤔
does anyone know how to hook into placeholderapi? ive been trying to and have followed the wiki but it isnt working
nevermind
xD
🤔
@tame light have you also reloaded after downloading the expansion ?/papi ecloud download ExpansionName/papi reload
^
what do the #'s in placeholders mean?
Can someone tell me if its possible to do a time since/ count up placeholder
so i dont understand what is going on everytime i close the server for a restart to install or test new configs and plugins it brings up this error at the end to close plugins and i think its courseing problems does anybody know why
it looks like the outpost papi hook is throwing errors
at net.prosavage.outpost.hook.impl.PlaceholderAPIHook.getAuthor
👍
Is there a way to find out what placeholders are listed from a hook via a command?
yea i think so
/papi ecloud placeholders <expansion>
but I don't think it's possible to get the ones from an expansion not on the ecloud
actually, it's not even possible to get the ones from the ecloud because it's manually defined by the author in the placeholders section of the expansion's page
Author has gone bye bye too
if you got the expansion/plugin, I can maybe try to check =)
I have the sauce
Just have a guy working on it right now and he's like figuring out how the old author did it, wanted to see if I could get a list for him to check and see if the old ones work
oki
Would that even be a do-able thing though?
Have placeholderapi be able to list those directly hooked expansions or no?
idk
I don't think so
except if PlaceholderAPI adds a way for the authors to define manually all placeholders in the plugin
That would be do-able via the hook in directly system as is right? Just add some more code for them to implement but make it optional
So what's the topic
In the channel name
It's basically a revamped and rethought version of the old TreasureHunt plugin for CB 1.5
1.4*
It's not so much what I want them to do, we understand that part it's more or less their names since the older dev just hasn't told me their names
So that plugin already has placeholders?
The new dev is just having trouble tracking them down in the code, was just trying to see if there was a way PAPI itself would list them out ofr me
And yeah it has 1 which I know works
And there are supposed to be 2 more but the old dev has cucked me
Could I help you then?
Just send the src or jar in pm
I'll try to find the placeholders I guess :/
Might not need to just asked the dev if he removed it, seems like he's just gonna rebuild it all. 😂
Thanks for the help though. If it's okay and we need help is it fine if I DM you then? 🙂
I can send the src in the mean time if so
Hello
i have a issue with Mysql expansion
query: SELECT WINS FROM BedWars WHERE NAME = '%player%'
it show me "0" but the value from database is "5"
if i use my minecraft name instead of %player% it working fine
Because %player% is not a placeholder
Have you ran the two commands
in default Mysql config from /plugins/PlaceholderAPI/expansions/Mysql
appear %player%
the player expansion is installed
for /papi parse me %player_name% it working
🙂
what do the #'s in placeholders mean?
if its what i think u mean, it represents a number i guess.
what placeholder are u talking about?
anything from vaults permissions
then yea replace the # with a number
what does the number do?
well it depends on which placeholder exactly, for the top placeholders then itll represent the player at that position of the leaderboard. or with the balance commas/formatted placeholders itll represent how many decimal places are being shown
ait
note these placeholders arnt active check pinned messages
When using
%vault_eco_top_balance_formatted_1%
and
%vault_eco_top_player_1% it brings up nothing ?
because theose placeholders were removed
Oh, what can I use then ?
read the latest pinned messages
message*
nothing yet.
they are working on adding it to essentials
bruh
It was creating extreme and useless lag.
Hello, i am using PAPI and Animated Scoreboard - when i try any effect from the animations extension (I did /papi ecloud download Animations and /papi reload) it just doesnt work. I tried inside the '
quotes and outside, it doesnt work.
any help would be appreciated.
Hello,
I wish to make a ranking of the 3 people with the most money on my server via the plugin HolographicDisplay, vault and AEconomy.
With an addon of HolographicDisplay, I was able to get a PlaceHolderAPI support, but then I was wondering how vault PlaceHolders work (my money plugin is Vault compatible).
That is to say that it is written among others on the wiki :
%vault_eco_top_balance_#%
%vault_eco_top_player_#%
Which one should I use? And if I understand correctly, should I replace the # with the number of the best player I want to get? (the top 1, or top 2...?)
Thank you in advance for your help,
Yours sincerely,
Spinogl
Firstly, you need to replace the # with the number - correct.
About which placeholder, vault-eco-top-balance-# or if you want it with commas vault-eco-top-balance-commas-# or formatted vault-eco-top-balance-formatted-#
Ohh, why was it deleted?
Anyway, it's a bit of a shame to delete it and leave it on the github :/
ugh I mean you can still use it if you use an older version of the Vault expansion
But as a result, there is no way to make a top 3 for example of the people with the most money ? :/
Ahhh okay, and you would have this version of the extension? :/
And if not, from what I thought I understood at the time (because I'm French), now it's possible to make this top only via essentialsX?
not yet
it will be
I think you need to do /papi ecloud download Vault x and replace x with the version but I don't know what the version is
baltop placeholders haven't been removed yet
just disabled by default
you can enable them in your PlaceholderAPI config
Ok, thank you very much, it seems to be working!
hey, i've given myself the permission placeholderapi.* but i'll always get "You do not have permission to do this!" when i try to use any papi command
what can be the issue?
didn't know that
didn't know either, I found it while searching for the version where they would have removed the placeholder 😅
hey, i've given myself the permission placeholderapi.* but i'll always get "You do not have permission to do this!" when i try to use any papi command
what can be the issue?
what's your permissions plugin?
luckperms
do /lp user <player> permission check placeholderapi.*
did you add the permission through the web editor?
yes
if yes, make sure you saved and applied the changes
did you press the save button at the top right?
i'll send you the link via dm
it should theoretically work, right?
Hello, i am using PAPI and Animated Scoreboard - when i try any effect from the animations extension (I did /papi ecloud download Animations and /papi reload) it just doesnt work. I tried inside the '
@left veldt Can someone answer my questions? I tried in quotes and not.
Hallo, I'm using PAPI with Animated Scorboard. Unfortunately the heroes placeholders don't work. I cannot register heroes. Downloading the file works fine, but then after I reload PAPI Heroes isn't listed as an active one.
@left veldt Can someone answer my questions? I tried in quotes and not.
@left veldt send a screenshot
?imgur
Hallo, I'm using PAPI with Animated Scorboard. Unfortunately the heroes placeholders don't work. I cannot register heroes. Downloading the file works fine, but then after I reload PAPI Heroes isn't listed as an active one.
@fervent laurel are the placeholders integrated into the Heroes plugin?
@junior musk You need to download them from the PAPI ecloud. They are not hard-coded. So it is written in the Placeholders wiki 🙂 The download works but then it's not there
do you get any errors in the console when doing /papi reload?

dw, he asked me in dm

if you want the details, he was using a PAPI placeholder which wasn't working, and he tried to parse it in TAB who failed and wrote <PlaceholderAPI ERROR> instead of the output
@junior musk When I try it with /papi register Expansion-heroes.jar then I get the message: Failed to register expansion from Expansion-hero.jar. In the Log File is nothing
nothing in the console?
@junior musk I did it again and now there is something in the console: [PlaceholderAPI] heroes is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
@junior musk It sounds that it doesn't work anymore
you need to contact the dev of the plugin
to update it
or if its open source you can update it yourself or ask someone to do it for you
it uses a PlaceholderHook which has been deprecated for years now but in one of the latest PAPI updates it got removed
@turbid tide @junior musk Thank you very much. I will ask in the Hero Discord Channel if someone can update this.
👍
Hello, i am using PAPI and Animated Scoreboard - when i try any effect from the animations extension (I did /papi ecloud download Animations and /papi reload) it just doesnt work. I tried inside the
Have you also tried/papi parse me %placeholder%? to see if the placeholder actually works
Thanks for the tip! Didnt know that command existed.
👍
How do I parse placeholders outside of an event?
PlaceholderAPI.setPlaceholders() ?
The same way as always
This might be a dumb question... but how do I create an object for that?
or do I not need to?
I'm confuseddddddddddddd
no need
object for parsing the placeholders? you just do String string = PlaceholderAPI.setPlaceholders(player/null, oldString);
or you just send the message and parse it wile sending
or however you want to do it
thx
Can someone tell me how to do the count up / time since placeholder please
ugh can you explain again please? I can't rly tell what you want
the opposite of server_countdown
there is one on the wiki
Have you also tried
/papi parse me %placeholder%? to see if the placeholder actually works
@turbid tide they work :), forgot to add%animation_(effect)%....
@left veldt,
Is the latest version on Spigot or is there an updated version somewhere?
of PAPI? there is a dev build https://ci.extendedclip.com/job/PlaceholderAPI/
thank you
Hey, does anybody know a solution to this? (https://pastebin.com/DCMBKJtV). So i wanna create custom rewards for jobsreborn with deluxemenus and i think i might have an issue with view requirements?
in placeholderapi chat?
well I mean the requirement is about JR placeholders
Is there anyway I can make placeholder permissions like If a player has this permission it will disply &e[✅ ] if he dont it will display [❌] ! Is that possible? How?
Javascript
Can you give me an example?
19.10 21:07:48 [Server] INFO ^ in <eval> at line number 21 at column number 0```
// and use the placeholder you want, i'm using this one
var haspermission = "%player_has_permission_fawe.permpack.basic%";
// create a function with the name you want
function permission() {
// if the haspermission variable that we created before return yes (true boolean)
// the js placeholder will return what we set in the return down
if (haspermission === "yes") {
return "&aA";
}
// if the haspermission varibale wasnt true it will return what we set down
if (haspermission === "no") {
return "&aB";
}
// by this we are calling the function to run
permission();``` Can someone help me? What am I doing wrong?
Hi, I can't get registered the World Expansion. I'm in 1.16.3
// and use the placeholder you want, i'm using this one var haspermission = "%player_has_permission_fawe.permpack.basic%"; // create a function with the name you want function permission() { // if the haspermission variable that we created before return yes (true boolean) // the js placeholder will return what we set in the return down if (haspermission === "yes") { return "&aA"; } // if the haspermission varibale wasnt true it will return what we set down if (haspermission === "no") { return "&aB"; } // by this we are calling the function to run permission();``` Can someone help me? What am I doing wrong?
@twin sluice I think you forgot to close the permission function, you missed one }
Yes
Hi, I can't get registered the World Expansion. I'm in 1.16.3
@potent dawn can you elaborate more on this?
I download the expansion “World” and when I reload PAPI it says “0 expansions where registered”
Errors in console?
Currently I’m not in my pc but it showed something about a class cannot be loaded
Test it and you’ll see
Just papi and spigot 1.16.3
I can't know what your errors is if you don't give me the error
Also, it seems to load normally for me
When I get to my PC I’ll send the logs
What is not working? You can send an imgur link so anyone can help
Or post the error code
=paste
Hello,
I've been trying to use PlaceholderAPI for the first time with a supported plugin (DiscordSRV). However, it's been more difficult than I anticipated.
I've tried to use a placeholder to get the world time of a world on my server, called "Endrman". However, it's not working as expected. Does anyone have a troubleshooting guide or a way to solve this?
Thanks in advance,
Andrew
I did papi ecloud download world, but after papi reload, it said "No expansions are registered".
When I go into the filesystem, I can see that the world expansion .jar file is downloaded.
Should I remove the .jar currently there, and replace it with the manual download?
Is papi reload not enough?
You can try, but I recommend server restart
Ok, thanks for the help! I'll report back here on whether it works or not.
Does the naming of the expansion matter?
Weird
are you sure the world name is correctly
maybe try not using capital letters
I'll try that, but I'm not sure if that's the issue since the error says something about outdated expansions.
[21-10-2020 12:03:13] expansion class WorldExpansion is outdated
2.10.9
ah latest
I had the same bug. Cannot register the expansion World
I hope this is just me being stupid and missing something obvious that is easy to fix, rather than an actual bug...
can you send me what you have in the discrodsRV config?
Sure thing.
# Discord canned responses
# These are triggers (commands in a way) that will trigger a "canned response" to be sent as a reply to them
# You should probably change these from their defaults or add your own
#
# Syntax is {"TRIGGER": "RESPONSE", "TRIGGER": "RESPONSE", ...}
# If you do not want any canned responses, set this to just {}
# PlaceholderAPI placeholders are supported for the values
#
DiscordCannedResponses: {"!time": "Current in-game time: `%world_time_Endrman%`"}```
This'll do?
yea
{world_time_Endrman}"}
try this
are you sure the worldname is exactly the same ?
Yes, the world name is exactly Endrman.
Also, I thought all PlaceholderAPI placeholders have to be surrounded with %percent_signs%?
I got this error while using the expansion world:
21.10 11:29:32 [Server] Server thread/ERROR [PlaceholderAPI] expansion class WorldExpansion is outdated:
21.10 11:29:32 [Server] INFO Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/permission/Permission
do I need vault?
You don't use vault ?
wut
Yup, same here
Download vault it's always good to have
what's vault?
for economy etc
I'll install it rn
we don't want an economy...
permission plugin
It's like a hook
yup
and API
Most of the server needs them
Is it really that necessary? We'd prefer to keep clear of things like Vault or Essentials.
Vault is a Permissions, Chat, & Economy API to give plugins easy hooks into these systems without needing to hook or depend on each individual plugin themselves
so... no way to do this without Vault?
that's annoying, didn't see anything about dependencies
Also, I thought all PlaceholderAPI placeholders have to be surrounded with
%percent_signs%?
@mint wolf By default yes you do but some plugin developer want to use their own option.
Does Vault come with a bunch of annoying features enabled, like Essentials?
its literally an API
it just helps plugins hook into each other
it doesn't add its own features
Ok, that's way better than Essentials then, thank goodness
I've had nightmares with Essentials
bruv why
well its not meant to be a plugin that add features. Essentials does exactly what it says xD adds essentials features to the server.
easy to use
Now it works, thanks xD
(Forgot to install Vault)
that's annoying, didn't see anything about dependencies
@mint wolf PAPI doesn't need vault by itself to work but some expansions do. That's not under PAPI's control at all.
expansion makers
Hi 🙂 For deluxeMenu, is it possible to create variables custom with PlaceHolderAPI ?
For example I create the variable "name" that displays Twister on a .yml file
And later I place the variable "name" in several .yml and it displays Twister in game.
javascript placeholders
you have a examples ?
1 sec. I'll give you link to the wiki
sorry ^^
now worries
var is for every type
javascript is nothing like kotlin 
it is don't you see? it has the var keyword xD
after several attempts the message is still there,
Do you have a solution ? thx
Failed to load due to a [NoClassDefFoundError], attempted to use com/massivecraft/factions/RelationParticipator```
This generally happens when you have an expansion but not the plugin that goes with it. Remove the expansion from the expansions folder and you'll be good to go.
I have the factionsuuid plugin it's not this extension ?
Прошу прощения, но ваш плагин выдает мне следующую ошыбку в консоль:
[01:53:56] [pool-44-thread-1/WARN]: java.lang.NullPointerException
[01:53:56] [pool-87-thread-1/WARN]: java.lang.NullPointerException
Есть вариант как исправить? Нашел, что именно PlaceholderAPI вызывает это. Искал методом тыка. Повторяется каждую секунду.
Anyone have issues with Vault Placeholders right now
I'm also about to push update on javascript expansion alias too
Which means %javascript_tictactoe% and %javascript_ttt% in one script
And adding support to script folder organization
Doesnt it already support folders?
I don't think so, from the look of the code
It is looking for a path inside "javascripts"
is there server total uptime placeholder ? (like it will keep the data of the previous online times of the server and add them together)
don't think so
oh , ty anyways 😄
Do we have a general uptime placeholder?
as in just the time since server has started? then yes. its %server_uptime%
actually I meant that 😄 (PlaceholderAPI is the best)
Alrighty yeah, just wanted to make sure we had one cause if we didn't, I would add it.
is there a way to add PlaceholderExpansions using Java Code ?
I believe thats to create expansions correct ?
While I was asking on how to install expansions from ECloud (like use /papi ecloud download) but in java code
well, it will be useless & I don't want it to be added (cuz ik u guys make decisions nicely) but I was only asking if that thing exists
No, it doesn't, afaik.
I see
Mainly because I don't see why it would need to?
creating a custom furnace like hypixel skyblock (idk if they have this but hypixel has alot of custom things so I just assumed)
How does PlaceholderAPI have anything to do with Hypixel, Skyblock, or furnaces?
sorry but Idk how to explain it 😓
& sometimes confusing xD
Oh for sure.
wait
there should be a placeholderAPI extension
for your Kill Death Ratio
am i right or am i wrong?
math expansion
please elaborate
then use the statistic expansion to divide the kills / deaths placeholder
%math_{statistic_player_kills}/{statistic_deaths}% something like that
something like, or that
i shouldnt have to spoonfeed exactly
ok
thank you
@warm topaz
it just says %math_{statistic_player_kills}/{statistic_deaths}%
download the expansions
statistic
thanks
what plugin, what placeholder, etc etc
the reason no one answered is cause you gave no information
sure
how are you using it
The first one of the list on the side
%ajpk_stats_top_name_<number>%
did you replace <number> with the number
try /papi parse me %ajpk_stats_top_name_1%
Ok wait
When i do that %ajpk_stats_top_name_1%
That is repeated in the Chat
Not replaced
Is that right?
no that means its not working
i dont think so. it appears to be an internal placeholder
No that does not work
I would reach out the the author of the plugin probably and ask him why the placeholders aren't working then
do you have errors in your console?
then yea id ask him at his discord
do any placeholderapi placeholders work
for the parkour plugin it sounds like the issue is something he will need to fix, which is why i would say you should ask him for help there
as for playtime
and /papi parse me %playtime_player% returns what?
you have the playtime expansion plugin?
Yes
I can redownload it when you want but
I have a german server
(i am german too)
what is your placeholder api version
Oh wait
is it updated
updating might help
2.10.6 isn't supported anymore.
https://paste.helpch.at/heqedebito.bash help please?
@tropic dew,
any help on this would be appreciated. papi is up to date, the expansion is and voteparty?
also %player_name% does not work when doing /parse me
have you downloaded the actual expansion for Player?
also for voteparty you don't need an expansion
its built inside the plugin now
go to plugins/PlaceholderAPI/expansions and make sure you don't have a voteparty expansion jar in there
also make sure you have the Player expansion jar in there
@little berry ^
I downloaded the version from ecloud not the ingame command, and I do not not have a papi voteplugin expansion installed
wait but when does that error show? when you do /papi parse me %player_name% ??
in console?
ye
on server boot
could you restart the server and send a full server startup log?
can u send a /papi dump aswell please
as for the voteparty error, leave a message in #voteparty
any updates on papi 3?
😮
ill take that as a no
Soon™️
Yeah it's being worked on in the background, we're not near any sort of release if that's what you're after
yup, thanks Blitzzzz my error - the papi bump confirmed that I am blind - lol
I did have the voteparty expansion loaded, just did the parse me and worked fine- thanks for the help, appreciated
you probably have 2 Bungee expansions in plugins/PlaceholderAPI/expansions
Anyone know why all the statistics placeholders are returning 0
@bronze pewter what do you mean by that
you can use /papi ecloud download <expansion> then /papi reload
so
whenever i stop my server
all my placeholders get reset
and dont work
its super annoying
i'm having issues with the player placeholders regarding experience. if i use player_exp it formats it weird so 10k exp come out like 0.38
if i use total exp it doesn't remove exp from the scoreboard whenever a player withdraws exp
%player_exp_to_level%
This displays as like 30 levels
i am using advanced enchantments so i want people to know how much exp they have
%Mines_test_name%
@austere hawk plugin?
i am using advanced enchantments so i want people to know how much exp they have
@urban cove player_exp shows how much xp you have more than the level you are at. player_exp_to_level shows how much you need until you level up. You need to use%player_total_exp%
Hello! When my server is stopping the papi gives me this error: https://paste.helpch.at/eyikayikub.md
@wide dagger,
what version of tab are you running
2.10.9
that’s outdated i’d recommend updating
i think last time i checked 2.8.8 is out or at least 2.8.7
np
Hey, I'm trying to use a placeholder that returns a value such as 1000.0 within a click/view requirement for a DeluxeMenus button.
When I use simply just the placeholder, it returns an error about the %, which means I have to put it in "" (seemingly making it a string, and not carrying out the check)
Any alternatives / solutions?
Thanks 😄
requirements:
hasmoney:
type: has money
amount: "%placeholder%"```
for has money you need a placeholder that returns an integer. not a float or a dobule.
also yeah I don't think you can use placeholders in the has money type.
also yeah I don't think you can use placeholders in the has money type.
wut?
BlitzZ, are you drunk? x)
you can use placeholders in all requirements
also, yes you have to use the placeholder in "" so it doesn't break the format
and the string is parsed as an integer in the code, so it's not an issue
but idk if it only works with integers, I remember using %vault_eco_balance% and it worked just fine
oh wut
that wasn't a thing before
you apparently have to use placeholder: "%placeholder%" now instead of amount:....
My fault, used commands instead of requirement in the first line 😝
"left_click_commands:"
@urban cove player_exp shows how much xp you have more than the level you are at. player_exp_to_level shows how much you need until you level up. You need to use
%player_total_exp%
@turbid tide I was using that. When ever players withdraw exp though that number doesn’t go down. Even worse when they add exp back after that it goes up more. It doesn’t stay accurate with current exp.
@urban cove,
@turbid tide I was using that. When ever players withdraw exp though that number doesn’t go down. Even worse when they add exp back after that it goes up more. It doesn’t stay accurate with current exp.
@urban cove oh I wonder if total_exp is the score stuff
oh yeah seems like I was wrong
that shows the total xp has had since his last death
idk if there is a placeholder that does that then
@tranquil sapphire
Plugins (33): CoreProtect, WorldEdit, ColoredSigns, Skript, Essentials, GroupManager, PlaceholderAPI, PacketListenerApi, InvSK, SkQuery, Quarsk, Lockette, MapManager, BannerBoard, ProtocolLib, WorldGuard, Skellett, MultiWorld, VoxelSniper, WildSkript, EssentialsChat, SkExtras, Vault, MarSK, EssentialsSpawn, Lores, AnimatedFrames, HolographicDisplays, TriggerReactor, CMI, skRayFall, HolographicExtension, Mines```
What mines plugin are you using?
give link to the plugin
because Mines is a very generic plugin name
also please specify what does not work mean?
Lol
That's a lot of sk plugins/scripts
Anyway, Multiworld 
And who put both ess and cmi at the same time
anyone knows how to change timezone id in LocalTime plugin?
PAPI isn't available for Sponge 7? I wan't to use PAPI for my 1.12.2 sponge server (sponge 7)
Not yet, but it's panned
oh alright great
Here I am again needing help. Why is that javascripts work with some plugins and doesn't with others?
Or better yet how do I make plugins depend on papi?
check the wiki for how to add PAPI support in your plugins.
So if a plugin doesn't support papi there's nothing I can do?
nope. Only ask the dev of it to add support or if its OpenSource add it yourself
I just made a javascript %javascript_servername% and it's useless 😦
well did you make the javascript right 🤷♂️
nah Sellinq. He did make it right
its just that the plugins he tries to use it in
do not support PAPI
zh
ah
devs needa start upping their game and allow papi on all resources it make my life amazing
@vivid sparrow u know if there is a javadoc for papi? I can't find it
@hollow aurora,
Hello i have problem with placeholder
ok
sec
/papi parse me %statistic_seconds_played%
gives always 0
used these before
/papi ecloud download statistic
/papi reload
Server version and PAPI version?
Server version 1.16.3
PlaceholderAPI 2.10.9
also Statistic expansion version~?
/papi info Statistic I think its the command to see
2.0.0
try using the dev build of papi https://ci.extendedclip.com/job/PlaceholderAPI/110/ from here
oh delete one
Or download both and download it again using /papi ecloud download Statistic
/papi reload
Still getting 0
try deleting them from the expansion folder, restarting then doing those commands. if that doesn't work try the dev build of PAPI
How do I go about creating a simple modulo calculation in a palceholder javascript?
I'm trying
%math_{votingplugin_total_alltime}-(({votingplugin_total_alltime}/15[precision:0])*15)%
But it's not working and is giving me 0 always
Alright I figured it out with some duct tape a glue
Which glue?
someone knows if i can change the LocalTime plugin hour?:(
someone knows if i can change the LocalTime plugin hour?:(
@jade junco you can specify a timezone can't you?
Hi, I have a problem after restarting the server I can take the set without waiting time
what set exactly?
Otherwise, maybe cooldown.data.yml, if it already has a weight of 17mb, it suddenly doesn't save anything.
I have such a problem DeluxMenu
@jade junco you can specify a timezone can't you?
@turbid tide nop, i put the comand %localtime_timezone_<TimeZoneID>%, i need the id of Chile continental 389, so i put %localtime_timezone_<389>%, but nothing change
nothing change:c
hmm oh yeah I forgot
the LocalTime expansion is broken I think
oh how did I forget that? I was running in the same issue a couple weeks ago
I guess, because there is no way to change the id
%statistic_MINE_BLOCK_COAL% Any idea why this isn't working
isn't it %statistic_mine_block:coal_ore% ?
so, Do you know any plugin to set the time?
to get the time? Nope. I know you can also use %server_time% but that will return the time in the country that the server is hosted in.
Nice one, thanks
to get the time? Nope. I know you can also use
%server_time%but that will return the time in the country that the server is hosted in.
@turbid tide need a download?
👍
Someone from deluxemenus will help me
if you ask your question maybe?
oh
you're using Javascript cooldown?
I recommend you try the plugin MasterCooldown
=pl MasterCooldown
instead
Have you also tried the latest version of JavaScript? If yes then I recommend you look into that plugin
I need to find some time to rewrite that plugin 
??
he was talking about a plugin and not expansion
smh
thought you're talking about the javascript plugin xD

:smash:
anybody know how to display the item in the player's hand using deluxe menus
Why cooldown data.yml my maximum file size is 17kb?
Blitz bruh
@austere hawk %player_item_in_hand%
material: placeholder-%player_item_in_hand% iirc
alright lemme try that, ty
np lmk if it dont work
it worked, but it doesnt show the enchants and lore corresponding
if you want to show the lore you need to use the javascript lore placeholder
from the community scripts
but there is no easy way to show your enchants
alright, alright, I know what's the next PAPI expansion I have to do... x)

