#placeholder-api
150650 messages · Page 97 of 151
yeee
looks like it might be because you're joining too quickly? seems related to ViaVersion @real skiff
does it happen every time you join
yes it happens everytime when ppl joining
also there are some warnings about soft depends of vault, multiverse, essentials
is it fixable?
Those can be ignored.
They are just telling you that some plugin, in this case expansions actually, are hooking into other plugins without declaring that in plugin.yml
ty!
That would be quite impossible since expansions can just be removed and added at any time, but the plugin.yml file can't be edited. But if you do hate them that much, there are a few simple solutions to stop them from showing. One of them would be to open the PlaceholderAPI jar with a zip explorer like WinRAR and edit the plugin.yml yourself. You will have to do this for every update of PlaceholderAPI however.
ViaVersion uses adventure, more specifically the bukkit-platform from adventure
oic
and there ight be some conflicts with the one PAPI shades in
Idk for sure
It seems it also has the same problem with ChestShop's shaded and relocated bukkit-platform
ye
Maybe a broken version of ViaVersion? Try reinstalling
so its not papi's issue?
Doesn't look like it. It has the same issue with other plugins that relocate the same library
alr ty again! ill ask in viaversion/chestshop
First of all, just try a fresh install
then you can try in ViaVersion
tried multiple times already, same result coming
Umm. @junior musk. Question. Have you tested the expansion? You seem to be storing deaths and kills at this path: <uuid>.<type>.<world> But, when the placeholder %perworld_<type>_in_<world>% is used, the world you're actually parsing to the getValue method is type_world since you're only removing the in_ part from <type>_in_<world>.
😂
DW. We've all done this before. Especially me for DeluxeMenus 🤣
fixed
im 100% sure i removed viaversion
but no idea why its still showing in error
plugin list
I wonder if it's related to the via version expansion maybe? Do you have that installed? If you do try removing it. If not, make sure you've actually restarted after removing ViaVersion.
Why is deluxemenues placeholders not auto updating?
Is there a placeholder for max server capacity?
%server_max%
Is there a way I can get this text in multiple lines?
%checkitem_getinfo:0_loreequals:%
At the moment the lines are like |, but I'd like to use it in deluxemenus as a new line
I'm thinking maybe using JavaScript I can replace | as a new line though I don't know if you can even do that
Make sure update: true is on your item
It is
No idea then
is it not supported on some papies>
No idea
javascript it out
but can you replace to a new line char?
for what specifically
a message spanning multiple lines?
I'm willing to add a loreequals:1 to get a specific line maybe
but not atm, prob later tonight
I don't know if placeholders can even return multiple lines like that so 🤷♂️
might be up to where you use the placeholder if it supports it or not, no clue
That'd be helpful, but wouldn't work in my case sadly
mb, didn't read everything lol
all good lol
can soemone link me the expanstion that formats player exp
i've found it here https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#player-exp-points but how do i add it to my server
follow the steps at the top
"how to use"
I’ve tried adding the JavaScript to papi doesn’t show up when I do /papi ecloud download JavaScript and there’s no download option for the script itself on that website
okay so iv'e added everythung but the %javascript_exp_points% is returning nothing
Did you correctly setup the script? https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#how-to-use
with the correct info given here https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#player-exp-points
Guys need help
How to link %cmi_baltop_name_[1-10]% and betonquest_HalloweenEvent:point.spooky_points.amount
In BetonQuest, I have the number of pumpkins collected counted.
And I want to make sure I have a top of 10 players.
Hi, unsure if this is placeholder related or essentials related but with the essentials baltop placeholder, the output from 1 is actually the 2nd person. The 1st person isn't showing
what if you use 0
Oh 0 fixed it, thanks 😄
is there a placeholder that checks if you're a near a block?
for example lava
or within the radius of
No @austere hawk
is there a placeholder for hungergames?
Failed to find an expansion named: javascript ??
hi, placeholder cannot contain space and dash, right?
my javascript placeholder isnt working
function checkRank(){
switch(rank){
case "default":
return "&c¡Buy now using /buy!";
case "blowfish":
return "&f戈";
case "shark":
return "&få±±";
case "dolphin":
return "&fåœ";
case "orca":
return "&f廿";
case "whale":
return "&fæ°´";
case "blue-whale":
return "&fç”°";
case "owner":
return "&f㊗";
case "admin":
return "&fâ•";
case "mod":
return "&f⬛";
case "helper":
return "&f⤴";
case "builder":
return "&fâž¿";
case "youtuber":
return "&fâž°";
default:
return "&cNone";
}
}
checkRank();```
my js file ^
file: example.js
my javascript_placeholders.yml
it returns %javascript_example% ingame
can anybody help me?
slot modifier does not work with checkitem_remove.
removes the element from the slot closest to 0 but not the slot modification, eg slot:9.
%checkitem_remove_amt:1,slot:8%
ya it'll just remove the first matching item, you can make an issue on github but no guarantees
Also, it's inslot:8 not slot so it might work? but probably not @delicate haven
Thank you very much, in the wiki there is no such information.
I think this is it.
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#checkitem
Sorry, my english is not good 😅
That error is caused by trying to use the PlayerStats expansion without the latest version of the PlayerStats plugin present. If you download that, it'll work!
https://www.spigotmc.org/resources/playerstats.102347/
e
Hello wondering if it is possible to create custom placeholder through papi
yes? of course check out our wiki
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2 (2).jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
... 1 more
Caused by: java.lang.ClassNotFoundException: com.artemis.the.gr8.lib.kyori.adventure.text.TextComponent
at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:? at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2 (2).jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]```
can someone explain this?
server version?
yeah(?) purpur to be exact
hmm thats weird, that lib should be in Paper (Purpur), maybe it was relocated
i dont understand though, it was working well before the restart
iirc Purpur is using an older version of the Adventure lib
oh wait. I think it might have to do something with an expansion
I deleted the recent one that I added and now its fixed when I restarted.
sorry for the trouble
oh
then maybe it's that expansion using an outdated version of Adventure
which one was it?
i think it was playerstats
well I downloaded ^ this cus I thought I needed it for a plugin that doesnt show specific works. I guess not. it was shown on the tab complete though so I thought it was fine to do it
The PlayerStats expansion needs the latest version of the PlayerStats plugin to work, that's why it gave an error. If you download that, it'll work!
https://www.spigotmc.org/resources/playerstats.102347/
Ah. I thought it came in default with mc or something, didnt know it needed a plugin. Thanks!
The statistics themselves are vanilla Minecraft, but the PlayerStats plugin allows you to see statistics of everyone on your server (so you can use it to see the top 3 stone miners on your server, for example)
Oooh this would be nice to have. Thank you again 😄
No worries, glad I could help 😄
Solution found
%string_replacecharacters%
test: '1': |- hello a
Apparently this works 
It works when parsing, just.. slightly flawed
It has a space on the new line
I'll try with lore in a sec
where are you using it now
It's the config for the string expansion in papis config.yml
new feature, insanely powerful
Anyways, I'm using this because %checkitem_getinfo:0_loreequals:% parses lore as | for new lines
And with what I'm doing, I can REPLICATE items lore in slots and add my OWN lore to whereever
No matter how many lines it has
ye, but how do you convert that to an actual new line
instead of just \n (which it does anyway)
idk why \n wouldn't work
it's weird
{
"item-lore": {
"||": "\u00a7r\n\u00a7r"
}
}
it's just \n
ah. new line works in dm.
now that makes sense
noice
which expansions need for player level data
By running this command /papi parse me %server_time_d-L% I receive 12-10 in chat, as expected. But If i ran it 3 days ago would it be 09-10 or 9-10?
9
ok thanks :)
is there a way to use PAPI placeholders to achieve a math Division/ result?
Basically I am trying to display Kills/Deaths ration, and I have 2 placeholders, 1 for kills and one for Deaths. I would like to display on an hologram only the final math result so Kills/Deaths
You can use the math expansion for that
an example? seems from Docs that can be used only for a single placeholder
%math_2:_{player_kills}/{player_deaths}%
changed that a few times, good now for 2 decimal points
Using string replace, can I have a replacement for if the placeholder results in
'' caused a papi error, ' ' didn't work, '&r' didn't work
wym string replace
%string_replacecharacters%
item-lore: '|': \n
It was that ^, we talked about it yesterday
this is for something else though using that expansion
thank you very much
what's your papi config @warm plover
It's under
'Dull Sword': '&61'
'': '&60'
item-value:
'Dull Sword': '&61'```
Basically, the end goal is to just have an automated selling system that uses the players item name
(its for a sell GUI that mirrors your inventory)
changeoutput was an idea I had but I can't use it sadly for this
the config ig wouldn't really work for it
%string_replacecharacters_item-value-display_{checkitem_getinfo:1_nameequals:}%⛃
so basically I'd have 3 placeholders in one
Maybe nested could do it? seems a little overly complicated tho
i mean, javascript
that also
ohhh i see it replaces multiple at once
i mean, what are you trying to replace? because '' is nothing
now thinking about it
You're trying to use character replace more as a phrase replace
so basically that would only work for vanilla items
or "change this string to that"
but if I wanted it for items with a name
I'd need to request a new feature for the string expansion
for a replacement like changeoutputs else_output
what
okay so
when parsing %checkitem_getinfo:1_nameequals:% on a vanilla item
it parses as
because it has no name
but in my server, all of the items have a custom name
not a space tho
so, any item that doesn't have a value to it, with a custom name, I would need to replace that to 0
ya, you're trying to replace all instances of '' (nothing) to something else
which makes no sense
the other one is replacing all instances of Dull Sword to &61
no... it would not
there is infinite amount of nothing in a string
you can't replace nothing
You're trying to check "if string EQUALS nothing"
but yeah I don't need that anyway
what I really need, which I realize now, is a the equivalent of else:<output-if-not-matched> in ChangeOutput in Strings replace placeholder
so that if it finds no matches to replace, it replaces to something else
ya, there is no config one for equals
essentially what you need
i mean, if you wanna use js it's easy
Could I use js to replace something in %string_replacecharacters_item-value-display_{checkitem_getinfo:1_nameequals:}%
just so I can keep the list of valued items
yeah now that I think about it I would probably have to do that anyway
yeah, if I can figure it out it'll be easy
var itemName = "%checkitem_getinfo:1_nameequals:%"
switch(itemName){
case "Dull Sword":
"&61"
break
default:
"&60"
}
that prob works
i edited it, try again now
ohh alright
possible cause
Seems to always show &60
does it equal Dull Sword or contain it
try this @warm plover
no colors?
&f
ah
had to add §f haha
yeah it's working now! tysm
Is there a way to make it read the args?var itemName = "%checkitem_getinfo:args[0]_nameequals:%"
Because its supposed to read from every slot, not just 1
try var itemName = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%"+"checkitem_getinfo:"+args[0]+"_nameequals:"+"%")
try now
absolute legend, it's working
noice
thank you so so much
yep, i'm off to get some grub
alright, tysm again haha
that's just a warning caused by spigot's library loading system, it is harmless
Hi,
I want to have a leadborders in hologram but Holograms-Displays don't show me the placeholders...
Do you have solution ?
I use this plugin : https://www.spigotmc.org/resources/playtimes-check-players-playtime-server-uptime.58858/
And the last version of Holograms-Displays dev build 234
check placeholder format in hd changelog
its smth like {papi: placeholder} not %placeholder%
Exemple for my plugin ?
is there a total experience earned alltime placeholder?
No. It resets when you die.
Thanks Blitz
But what useful statistics should I add to a leaderboard
I already have the common ones
Not sure. I personally just used to have votes, pvp stats (kills, deaths) and that's about it. You shouldn't just force 100 leaderboards. Just make leaderboards for the useful stuff that people might care about.
Hey, im using placeholder api 2.11.2 on version 1.19.2 and every time i restart my server the scoreboard that i have setup requires me to run /papi reload for the placeholders to load, but its only the placeholders i downloaded using /papi ecloud download
how do i get the exp placerholder to return 5,584,930 instead of 5584930
yo is there a blocks traveled placeholder?, maybe %statistic_walk_one_cm%, but is that blocks?
try it
/papi parse me <placeholder>
walk 2 blocks
and if it is actually CM, use math to multiply it by 100
%math_0:_{statistic_walk_one_cm}*100%
does walking include sprinting as well?
sprint, crouch, climb, boat, horse, whatever
Someone please help me with the click requirements
Private message me I have questions
?help
people have been answering you for a while, that error is not an issue
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0```
%statistic_mine_block:DIAMOND_ORE%
doesn't work
i mine diamond ores
doesnt update
@warm topaz i risk to get muted/banned for tagging but i must
Hi legend, will you ever think of adding unlimited amount of elseif:<something> to your ChangeOutput papi expansion
I want an equals version of the replaceCharacters in the string expansion
well, I don't want it really, but
yakno
what about notequals?
it's extremely needed
i mean ok we can use else: for that
but i am sure i needed notequals once and couldn't make it the other way
i forgot what i was working on...
i use changeoutput more than avg mc server maker
i even "backported" it for java8 xd
should be able to just switch the ifmatch and the else for a not equals
i will read this later as currently my brain hurts but literally because of overuse of ChangeOutput
~~1. %deluxetags_tag%
2. {deluxetags_tag}
2 is what the wiki tells me to use for chat formatting but doesn't work! 1 works then I test in /placeholderapi parse me %deluxetags_identifier% but doesnt work in chat formatting.
Please let me know how to fix so that tags can display in chat!
Thank you!!
p.s. using essentials for the chat formatting 🙂~~
found info on server that might help! thank you 🙂
i recommend you test ChatControl for papi support in chat formatting
I followed -> #bot-commands message
And is now working perfectly. Thank you anyhow!
the wiki also has that info just fyi https://wiki.helpch.at/clips-plugins/deluxetags#almost-any-other-chat-including-essentialsx-chat
does papi work on bungee?
no
btw how to fix this? https://pastebin.com/6b6NTLBu
com.ordwen.odailyquests.quests.player.PlayerQuests.getTotalAchievedQuests()
Contact the dev of your dailyquests plugin @final tapir
Ok
whats the expansion where you input something, it checks it in a file, like the price of an item, and returns the output, which would be the price
hello
how can i check placeholder?
String towny = placeholderapi.getplaceholder(Towny); or idk
Does anyone know why it says I don't have enough tokens if I have 10,000 on my account
Hi, can anyone tell me why the "/papi reload" command doesn't work? (Plugin: PlaceHoldersAPI)
Do not double post.... remove your message this also isnt the correct channel...
Do not DOUBLE post READ RULES
Sorry
Hi, I'm glad I'm a new minecraft configurator, could someone teach me the format or the mathematical function to make the hearts of the players appear in percentage in the nametag? I have already downloaded math from the ecloud, thx
Isn't it something like config?
does the javascript expansion work on 1.19?
ye
https://imgur.com/a/pnStIZL hi im getting this when start my server its from placeholder api
Exception in thread "Craft Scheduler Thread - 7"
[13:10:14 WARN]: org.apache.commons.lang.UnhandledException: Plugin DeluxeMenus v1.13.3-Release generated an exception while executing task 2318
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalArgumentException: No enum constant me.ilucah.advancedarmor.armor.BoostType.
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at me.ilucah.advancedarmor.armor.BoostType.valueOf(BoostType.java:3)
at me.ilucah.advancedarmor.placeholders.Placeholders.onRequest(Placeholders.java:76)
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160)
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
at com.extendedclip.deluxemenus.menu.MenuHolder.setPlaceholders(MenuHolder.java:97)
at com.extendedclip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:591)
at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$1(Menu.java:262)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
does anyone know what the problem is
there's a problem with one of your advancedarmor placeholders
it probably expects a value and you didn't provide one
How or were can I put a placeholder to show in tab in witch faction you are from?
@warm topaz
can you help?
@brittle swallow lets not ping staff
Use a plugin like "Tab" and take the faction name placeholder
When parsing %parseother_{mycommand_playerdata_tpa}_{javascript_tpa}% it brings my tps down to 16 for a split second, lagging everything out
%mycommand_playerdata_tpa% is a variable string my MyCommand
Javascript TPA is a javascript function that just compares values
I replaced javascript tpa with player gamemode and it still lags out
hmm ok I found the exact issue, parsing parseother with an empty mycommand variable lags out the server
where to download latest papi JS expansion?
like the latest latest some dev build
i have heard that there is exploit in it so i want to find the most latest one (sorry if i shouldn't write this here)
please tag me whoever reply me
Why does /jsexpansion reload no longer work?
Hello
there is no placeholder that returns a value of true or false
from another place holder
is there any placeholder to view the number of players in a region in worldguard?
nope
Any help with this?
How do I turn my item using this command: https://paste.helpch.at/uniwurulur.php
and has these nbt tags: https://paste.helpch.at/evuturahic.rb
into something with these nbt tags like this format: https://paste.helpch.at/edobusigum.rb
Anyone know why String isn't finding the String expansion on the ecloud?
(grabbed it manually, just curious)
Hello! I have just updated the PlayerStats expansion and added version checks in there with proper feedback, to hopefully reduce the amount of people coming in here with a NoClassDefFoundError. Could someone look at my expansion to get it verified again?
Link to source code:
https://github.com/Artemis-the-gr8/PlayerStatsExpansion
I want my placeholder to return a Component, can this be done?
you can return a string, then the plugin receiving it parses it
is the closest you can get
Thanks
%changeoutput_equals_input:{luckperms_has_permission_kit.vip.emperador}_matcher:yes_ifmatch:§a§r%playerkits_cooldown_Emperador%_else:§4§rBloqueado%
it's okay?
hello i using placeholder api
and char colorizer
but its shows &
when i join
e.setJoinMessage(PlaceholderAPI.setPlaceholders(player, colorize("&8(&a+&8) %vault_prefix%%player_name% &7sunucuya katıldı.")));
hey
did i make it
right ?
String plenary ="&6Star &r %funnyguilds_g-tag% &e %player_name%";
PlaceholderAPI.setPlaceholders(target, plenary);
i want to set a rank before nickname using placholderapi and funnyguilds
is there a way to check if some placeholder is empty using ChangeOutput?
What? ChangeOutput changes results
For example if a variable is empty you can make it change to a text
I'd remove the config part of the papi config and try to reload
Hmm, tried it on my Skyblock and same issue. Lemme test it on paper
Same issue on paper
what if you tried adding
configs:
example: '/plugins/PlaceholderAPI/configs/example.yml'
to your config
@plush dove
Is there a way to return json component in JavaScript expansion?
I need to return
{"translate":"Pog"}
well it's just a string that it returns, but should be possible to return it in a json format
can't see why not
Nope, same error
That is how you resolve placeholders in a string, yes.
is there a placeholder that checks a player's first join date?
@austere hawk you can try %player_first_join_date%
How to convert time into seconds (for example I have 1h 30m 45s), I need this for making progress bar
var time = "%playtime_time%";
var weeks = parseInt(time.match("(?:\\d*(?=w))"));
var days = parseInt(time.match("(?:\\d*(?=d))"));
var hours = parseInt(time.match("(?:\\d*(?=h))"));
var minutes = parseInt(time.match("(?:\\d*(?=m))"));
var seconds = parseInt(time.match("(?:\\d*(?=s))"));
var total = 0;
if(!isNaN(weeks))
total += weeks*604800;
if(!isNaN(days))
total += days*86400;
if(!isNaN(hours))
total += hours*3600;
if(!isNaN(minutes))
total += minutes*60;
if(!isNaN(seconds))
total += seconds;
total.toFixed();
you can use js, I made this script in the past
more info about js expansion 
javascript extension is not installed!!! Please help
but
You have to manually download it
ty adam
Could someone look at my expansion update to verify it again?
Is there someway to check the response of a placeholder and set the value to something else?
yes, using JS expansion
?
Hey there
Any reason why the statistics placeholder no longer updates?
/papi parse me %statistic_mine_block:WHEAT,CARROTS,POTATOES,BEETROOTS,MELON,PUMPKIN,SUGAR_CANE,BAMBOO%
Been using this placeholder and for some reason it no longer tracks the amount of the specified crops I've destroyed.
Doesn't matter if i'm opped or not.
Anyone?
Hey ! Is there a placeholder for server planning?
Server planning...?
Is there a way i can spoof players onto my server using math?
players++;
??
is there a way to put placeholders inside a placeholder which is inside a placeholder?
%javascript_numberSuffix_{math_2_{gemseconomy_balance_dollars-asc}+{gemseconomy_balance_wallex-asc}}%
I need to create this placeholder but it doesn't work
net.minecraft.network.protocol.login.PacketLoginInStart@4aa27f3b[
a=marssxii
b=Optional.empty
c=Optional[79264ec5-ed3e-4953-b625-037460a56ad5]
]
[Fri 21:55:38 INFO Server/LoginListener] UUID of player marssxii is 79264ec5-ed3e-4953-b625-037460a56ad5
[Fri 21:55:38 WARN] java.lang.NullPointerException: Cannot invoke "org.bukkit.entity.Player.getInventory()" because "p" is null
[Fri 21:55:38 WARN] at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.onPlaceholderRequest(CheckItemExpansion.java:628)
[Fri 21:55:38 WARN] at PlaceholderAPI-2.11.2(1).jar//me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:35)
[Fri 21:55:38 WARN] at PlaceholderAPI-2.11.2(1).jar//me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119)
[Fri 21:55:38 WARN] at PlaceholderAPI-2.11.2(1).jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71)
[Fri 21:55:38 WARN] at PlaceholderAPI-2.11.2(1).jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99)
[Fri 21:55:38 WARN] at ExtraContexts.jar//me.lucko.extracontexts.calculators.PlaceholderApiCalculator.calculate(PlaceholderApiCalculator.java:27)
[Fri 21:55:38 WARN] at ExtraContexts.jar//me.lucko.extracontexts.calculators.PlaceholderApiCalculator.calculate(PlaceholderApiCalculator.java:12)
[Fri 21:55:38 WARN] at me.lucko.luckperms.common.context.manager.ContextManager.calculate(ContextManager.java:144)
[Fri 21:55:38 WARN] at me.lucko.luckperms.common.context.manager.QueryOptionsCache.supply(QueryOptionsCache.java:54)
[Fri 21:55:38 WARN] at me.lucko.luckperms.common.context.manager.QueryOptionsCache.supply(QueryOptionsCache.java:42)
[Fri 21:55:38 WARN] at me.lucko.luckperms.common.cache.ExpiringCache.get(ExpiringCache.java:64)
``` There is more to the error but i cant send files here
I'm not sure what i can do to fix this
I'm using papi 2.11.2
From what I see it might have to do with checkitem but i dont know how to fix the issue
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544)
at org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:2033)
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108)
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45)
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201)
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1473)
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446)
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397)
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173)
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305)
at java.base/java.lang.Thread.run(Thread.java:833)```
^ didnt fix issue
hey guys, any help with this?
you can only have one { } placeholder
Can someone verify my expansion please?
hi guys
I cant see vault, baltop settings in placeholderapi config
Im using essentials and vault
Done 👍
Thank you! 😄
Hi! Is there any way to fix this problem?
is there like a placeholder or some way that i can make (maybe custom javascript papi placeholder?) that %date_next_day% will output date which is +1 day of current day
For example if today is 23-10-2022, the %date_next_day% will output 24-10-2022
Of course, it is important that if today is (for example) 31-08-2022, the %date_next_day% will output 01-09-2022 (so it will not actually do 31+1 but it will go to next month, just like it should)
if this type of placeholder already exists please let me know and feel free to tag me
var date = new Date();
date.setDate(date.getDate() + 1);
return date.getDate() + '-' + (date.getMonth() + 1) + '-' + date.getFullYear();```
Try this javascript @placid light
Thank you a lot, i will just now test it
by the way do you know what is the latest version of JS papi expansion? i have heard that someone said we need to urgently update (maybe a week ago i read this somewhere on discord) our JS papi expansion because previous one has some big exploit
Latest @placid light
i will download latest from eCloud, i hope that's the one
ok this works
now i justn eed to wait until 31st of October and not forget to test it then and test if output is 01-11-2022
however thanks a lot
Np
It will return 1 not 01 though, I will send you a version that adds the 0 later
i probably need to check if date has only 1 number and if yes i return '0' + date.getDate() + <...> (and if not i return same without '0')
not that big of a problem rather than testing this
The other thing is that i can't understand how it will return +1 for month
like i can't understand the script actually xd the return line specifically, why it doesn't return always month+1 (?)
it seems like it will always return month + 1, that's why i don't understand it, but it doesn't actually (but why)
literally looks like a magic trick lol
btw just a note if anyone ever needs this,
you need to change let to var otherwise some error will throw saying that you didn't put ; at the end of the line (eval:3:5, idk really)
getMonth returns a value between 0 and 11
ok i forgot that....
so what will it return if date is 31st of October
will it return 1-11-2022?
because then month need to be +2
or does the 31+1 adds +1 for month and goes to 1 (date)?
ok nvm anything i wrote
because today is 23rd date, i added +7 to it and did the output and, it said 1-11-2022
so it works
very nice
@vivid sparrow can i donate you!
All good
Good evening, sot having a problem with the Checkitem extension.
I can't get the value of a specific NBT, it gives me all the NBTs in the item.
This is the placeholder
%checkitem_getinfo:mainhand_nbtstrings:MMOITEMS_ITEM_ID%
hold the item in hand and type /data get entity [your name] SelectedItem then send here the nbt
Why when I put the plugin and it loads but nothing comes out on the right?
Hello, I would like to know if I can show the %playtime_player% on the vanilla tab
I can display the hearts a player has on the tab but I don't know how to display the %playtime_player% value on there
I was wondering is there was an expansion that let me parse specific placeholders from other players
lets say %PlayerName_{%external_plugin_placeholder%}
I was considering otherplayer but they dont seem to have an option for external plugin parses
?help
use a plugin called tab
called otherparse
o
saw your edit
whats the plugin? wym
no its fine, theres one expansion called otherplayer and the one you meant which is parseother, they are not the same but the one you mentioned is exactly what I needed thx <3
np 🙂
Not within deluxemenus but placeholderAPI yes
So i got this error in PlaceHodler api Any idea? https://pastebin.com/VTmdCu1B
Hello, i really need help, when i tried to show how much potion of heal in inventory of player on scoreboard, the scoreboard crashed and hide , i have last version of PAPI,
I write that on scoreboard : {placeholderapi_checkitem_amount_potiontype:instant_heal} ( on featherboard so i write placeholderapi in front )
Has anyone gotten this error?
I have internet connection but I cant join my own server or anything
Other plugins wont "find updates"
My node says there is no issue on their end so im looking at every error to see what could be causing this
We can mak custom placeholder by placeholder API ?
Can you help me plz if you have any video or you can tell me step plz
Do you know how to code?
Java
Umm littie bit
You need to know how to code in order to make a custom expansion
Do you have any video ? To make it
Oo if you have video then can you give me or you have code of hypixel Skyblock gems or gold that is used to buy ranks and other stuff
You can use vault like normal money sort of eco or find another plugin and use there placeholders
Umm but I am thinking to make hypixel skyblock gems for my server
Hello, i really need help, when i tried to show how much potion of heal in inventory of player on scoreboard, the scoreboard crashed and hide , i have last version of PAPI,
I write that on scoreboard : {placeholderapi_checkitem_amount_potiontype:instant_heal} ( on featherboard so i write placeholderapi in front )
can someone help me please
@austere hawk
Hello!
Can anyone help me out on how to reset a placeholder completely... Like the value stored till now...
what placeholder
Like how to reset the values stored till date of statistics placeholders
statistics are the stored in the world/playerdata folder, u can delete them from there
Ohki Thanks!
How do I fully reset a leaderboard? I use ajleaderboards
what is the placeholder for the leaderboard @modern spire
Hello, i am using this expansion https://api.extendedclip.com/expansions/vanish-placeholders/ and it works just fine, returns 'true' and 'false' is there a way to edit those to something else?
thx
is there a placeholder where I can get the time between to times with dates
nvm I think I found the solution
https://www.spigotmc.org/threads/how-do-i-compare-the-time-difference-between-two-dates.456703/
that's how you would do it in java
hm
Hello, is there a way to edit %server_uptime% format? Just to remove the seconds?
hi, I have PlaceholderAPI expansions that won't update is there a place to download them manually please?
thanks
I have multiple leaderboards, kills, balance (vault), and kills
i want to countdown every day
At work so can’t help much
If the leaderboard is based on a statistic placeholder all of them are stored in the stats folder in the world save
so I just delete stats folder?
Vault balance would be stored wherever your economy plugin stores them
Yes but that deletes all stats for all players just FYI
yea im doing a full server restart lol (bedsides ranks)
I would delete the player data folder too, that contains inventories and locations and what not
If you haven’t
Always back up though don’t go blaming me
😂
When trying to parse a placeholder from the Javascript expansion, I get an error, and this in the console 😦
https://paste.helpch.at/vafijotexo.rb
Paper 1.18.2 Java 17
is there anyway to delete all placeholder data?
which placeholders?
just any
each placeholder is different
well mainly ones from pvplevels
how?
you using mysql?
then its prob a .db file or something
ohh
idk how minehut works do you got access to files?
like deleting a file
yes
tried that
make sure to stop the server first
I did
ok well I have pvplevels running into ajleaderboards
use the cmds
ya go into the world folder
k
go to the world in which you want to reset you stats and achievements under the saves folder, and within that world folder open the stats folder and delete the file there (it should be a bunch of gibberish, which is your player UUID).
is hasn't reset on my hologram
your server offline?
no
stop it first
the folder now only has my uuid in it tho
np
thers placeholderapi bungeecord?
no
okay im upload plugin in hub server and serverONE
but not work in scoreboard tab and hologram
Hello
I am using placeholderapi player hook
And i have a bungeecord network
So the problem is i am using znpcs in lines so i added %player_online%
And in my server no one online
But it is showing
yes
@fervent spire can you solve it sir
Since you randomly pinged me. No.
can i change the colour code of placeholders somehow?
if i add a colour code to the front it does not change it
@runic fox does the plugin already have a set color?
I mean
placeholder
or is it white
It can also be forced to be white
ya true
If you cant change the color by adding a code before, then the placeholder returns a value with a color
^ Sorry, is this error because of my script or something? 😦
can anyone help me with the gradients api?
%gradient_message_{#24CAEA}_{#00395}_messagewithcolors%&lCoreSurvival &7(%online%)
why would this message not be working
@sharp jay could you please help me?
?help
Hello
I am using player online placeholder
I have 0 players on my server
But it is saying yes players
Is it somehow possible to send a placeholder from the subservers to the proxy so that you can use it on the proxy? If yes, could someone help me?
ye it does
its just pitch black
how to download javascript 1.8.0?
Hello everyone. Can you please give a sample of checking a certain item in the player's inventory
I read the wiki and don't quite understand what modifiers means (I didn't understand which team is responsible for checking the item in the inventory)
Hi i have a question
its not possible do with an placeholder this
%img_%prymacore_clan%%
no
Does anyone know how to make the playtime in the statistics work toghther?
Right now I have 3days and 95hours of playtime
so if i had 1 day and 1 hour of playime
it wouldnt say 1 day 25 hours
It’s so confusing ^ I’ve been trying to do this…
actually use formatter
lol
%formatter_number_time_secs_{statistic_time_played:seconds}% idk the statistic placeholder
@drowsy jackal
thats confusing haha
check the wiki for more info
okiee
ill tell you if i need extra help
lemme take a look
@mint fable I cannot find anything
Oh sorry my bad
wym
does this not work?
/papi parse me %formatter_number_time_secs_{statistic_time_played:seconds}%
It dosen't work :/
or possibly %formatter_number_time_secs_{statistic_seconds_played}%
looks like it changed on the wiki %formatter_number_time_fromSecs_<number>%
yeah, its still not working
sorry for all of this
thanks for the help btw ❤️
very weird
do you think i have to use a plugin
well since formatter isn't working for some reason you could try math expansion
oh god
/papi parse me %math_0:_{statistic_seconds_played}/86400% days
OH
That worked
How can I put the hours aswell?
I want it to be (days)d (hours)h
that is really good
well, if you want it to be just one placeholder you'll need to use javascript or something
but if you can add more math placeholders, then just do that
divide by the amount of seconds in a day/week/hour
also, just realized you'll need js either way
var seconds = parseInt("%statistic_seconds_played%")
var total = 0
var out = ""
var weeks = " weeks "
var days = " days "
var hours = " hours "
var minutes = " minutes "
var seconds = " seconds"
if(seconds>=604800){
out += seconds/604800 +weeks
seconds = seconds%604800
}if(seconds>=86400){
out += seconds/86400 + days
seconds = seconds%86400
}if(seconds>=3600){
out += seconds/3600 + hours
seconds = seconds%3600
}if(seconds>=60){
out += seconds/60 + minutes
seconds = seconds%60
}
out += seconds/60 + minutes
out
this is the script i sent earlier, not tested
hm
cant we use the same sort of math expression
but opposite
where hrs go into days
but it displays that
well you have to subtract the weeks from the days
because otherwise you're gonna get the same effect
1 week 7 days
I have no absolute clue on how to work the math in this
I am big dum in math
try this, the wiki has information on how to make a script and use it
I'm confused
where do I go sorry haha
😅
I am on the wiki
%math_0:_{statistic_seconds_played}/3600% hours
wait
i think i did it
this is no longer the option
it's no different than %statistic_hours_played%
oh
use the javascript I sent and test it
oh okay
I dont see the javascripts folder in place holder api
You can't use /papi ecloud ATM so you have to get it manually from the ecloud
sorry for all the questions
but how can I get it manually?
from the ecloud
from the one barry sent
How to display a player's group without color codes as a placeholder?
How to display server hostname
And also how to display how many players are there in the server
gradients dont work, ive tried everything and it still just refuses to show any sort of gradient
%gradient_message_{#ff008c}_{#8f70ff}_messagehere%
on decent holograms all it shows is %gradeient_message[UnderscoreX3]messagehere%
yeah its downloaded
tried V1.0 and V2.0 both do jack.
Anyone know why im getting this error when trying to download the essentials expansion?
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials```
nvm i think i figured it out lmao
Hello it doing this error when i send a message in the chat:https://paste.gg/p/anonymous/14e725222e764860afcdcb16fd8a5731
When an unofficial 1.16 gradient expansion works better than the 1.18.2 possibly 1.19.2 'official' gradient expansion lmfao laughably bad gradient expansion
no?
literally talking about how bad the 'official' gradient expansion is 2 days of working with it only to find out im wasting my time and just downloaded some 1.16 expansion for PAPI and it works wonders
"official"? There's no official expansion. It is made by community members. You don't have to be a PAPI developer to make expansions and post them on the ecloud.
any knowledge of "no route to host" errors occurring recently?
also that aint papi related
Thanks for the info
are there any expansions for stripping formatting (ampersand or section char)
Hello, I have a guestion regarding String Expansion. I see that you can have multiple sets of replacements like bellow:
string: replacements: big-numbers: '0': Ⴀ '1': Ⴁ '2': Ⴂ '3': Ⴃ '4': Ⴄ '5': Ⴅ '6': Ⴆ '7': Ⴇ '8': Ⴈ '9': Ⴉ '$': Ⴊ '.': Ⴐ ',': Ⴐ small-numbers: '0': ₀ '1': ₁ '2': ₂ '3': ₃ '4': ₄ '5': ₅ '6': ₆ '7': ₇ '8': ₈ '9': ₉
Is it possible to have multiple sets of the vault?
vault: formatting: thousands: Ⴋ trillions: Ⴌ quadrillions: Ⴍ billions: Ⴎ millions: Ⴏ
The problem I have is that I have 2 menus with 2 different positions of the same placeholder.
First menu works perfect.
The problem is with the 2nd menu, because you see, when I put the placeholder, the numbers are positioned where I want, but the problem comes with the "formatting" because it keeps the position of the first menu.
I'm using unicode that are replaced with custom textures '
Looking from other perspective at this, is it possible to move the text UP or DOWN somehow like you use negative spacing to move the text right or left? Not from default.json (using ascent:)
you could use javascript to make custom formats
Here is a script I've made
var num = Number(args[0]);
function formatNum(num){
var suffixes = ['', 'k', 'm', 'b', 't', 'qd', 'qn', 's', 'sp', 'o', 'n', 'd', 'ud', 'dd', 'td'];
var decimals = 2;
for(i=0;i<suffixes.length;i++){
if(num>=1000){
num = (num/1000);
} else {
return num.toFixed(decimals)+suffixes[i];
}
}
return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}
formatNum(num);
im using a bungeecord plugin to store data for every player in a map. is it possible to add placeholderapi into the plugin on bungee, and create a separate expansion for the spigot servers to get data from said bungee? would this have any major performance impacts?
or should i just add mysql support and slap the plugin onto every spigot server? i would still like to know how to do the above though.
And how does this work? I've created a .js file using this but nothing seems to have changed.
I don't understand how to work with it at all or how to intergrate it with the vault balance placeholder
var num = "%vault_eco_balance%"
hmm.. perhaps this is better suited for #development then, right? ill send it there. sorri
Is there a placeholder that shows if a player has accepted the resource pack? I have checked the wiki but just before i make my own i thought i might as well check
No, you would have to use PlayerResourcePackStatusEvent
Can anyone help me with sumn? So I recently just reinstalled all of my plugins but now my placeholders won't work
I keep getting these errors https://paste.gg/p/anonymous/0c516181adbd4d99bece1a9c67d141a3
Argh i always forget to remove the ping
found the problem. I forgot to install vault
Hi
Ask placeholder PlayerList
%playerlist_online,perm,yes,amount,prueba.1+prueba.2+prueba.3+prueba.4%
Example:
UnLocked: 4/12
hey, what do i have to do to be able to use PAPI on my scoreboard?
.
it is enough to register PAPI in my plugin?
Yes
?help
does PAPI support Adventure API components?
no
?ecloudblock
@burnt sluice ^^^
ok
thanks
install 1 expancion and served me then install another and served me but the first one stopped serving me
install 1 expancion and served me then install another and served me but the first one stopped serving me
Gonna warn you please do not ping me nor double post as the bot told you
What do you mean serving
doesn´t work
I tried to set variables with IA like this, but I guess that's not correct
board.updateLines(
PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &c&lScoreboard-r &4<"),
PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%"),
PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &fNie posiadasz jeszcze swojej wyspy"),
PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &fwpisz &c/is create <nazwa>&f, aby"),
PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &fstworzyć wyspe"),
PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%"),
PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%"),
PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &fPLAYZERIA.NET")
)
Thats a thing?!?
yes
some hosts, mostly free ones I believe, block external connection due to security reasons
Ah, yeah i use oracle cloud for my free servers nowadays, so i have havent experienced stuff like that
what was the placeholder that count permissions ?
for example i write the perms in the placeholder and it counts how many of them i got and return an number
@simple nova
y ?
Pff the message was deleted
no
hi i have error idk what i can do
[18:50:39 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[18:50:39 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_{deluxemenus_meta_Counter_INTEGER_1}*10%
[18:50:39 WARN]: [PlaceholderAPI] [math] Cause: '{deluxemenus_meta_Counter_INTEGER_1}*10' is not a valid Math Expression.
[18:50:39 ERROR]: [DeluxeMenus] Error in requirement javascript syntax - %math_0_{deluxemenus_meta_Counter_INTEGER_1}*10% <= %vault_eco_balance_formatted%
[18:50:40 ERROR]: [DeluxeMenus] Error in requirement javascript syntax - %math_0_{deluxemenus_meta_Counter_INTEGER_1}*10% <= %vault_eco_balance_formatted%
i accidentally installed too many expansions and when i do /papi reload nothing happens and it says i have 1 placeholder hook active. https://paste.helpch.at/araxazuxek
i got some issue, when i gave myself more than 1000 dkcoins, i can't buy anything, its telling that i not enough coins to buy... helppppp
Hi! How do i set motd, with the player name? I have tried but, there is something i'm doing wrong 😅
do you have those plugins from those extensions ?
Hello when i install the vault-expan... and i do /papi reload i get this https://paste.helpch.at/erufegubis.rb
hellol
is it ok to post a pic of what I got in here
I am new to trying to setup a Minecraft server
Hi i am trying to set up a leaderboard for parkcore. Im using ajparkcore and holographic display plugins, The parkcore plugin has a placeholder and i am wanting to know if i can use it, ive been trying to i just dont know how idk if i need to set it up
Help me plz: https://paste.helpch.at/adaxovazar.rb
Failed to update expansions: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest
delete the quests expansion @hybrid leaf
still same error
but i got newest ver of expansion from ecloud page
i deleted quests expansion but i need it so what can i do?
Can anyone please make me a snippet of onPlaceholderRequest which takes 2 perimeters in the placeholder, like %placeholder_perimeter1_perimeter2%
@sharp pine the string argument of the onRequest method will give you anything that's after the identifier %identifier_<this>%. Is your job to split at _ or whatever else you want to do with the input
Please help
is it possible with the javascript expansion to create a placeholder that returns a specific text?
lmao thanks 🥲
How would I make a plugin that adds a new placeholder called %player_enderdragon_kills%? I want the placeholder to show how many times a player has killed the ender dragon and I would like to use it with a leaderboard plugin so that it displays the top 10 ender dragon kills for each top player.
there's no statistic for ender dragon kills afaik, so you would have to store them on your own
Ok thanks for clarifying, how would I store them on my own? Any examples would be great
nah bro i just got too excited 🙏
use a placeholder that returns the time in seconds?
it literally says 14m 16s/30*100 is not valid
i get this when i want to download Quests expansion
Failed to update expansions: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest
If thats the newest version of the expansion, you are probably using and old version of the plugin
how do i check for a water bottle with checkitem expansion?
%checkitem_amount_mat:water_pot,strict%
i ve tried water_bottle water_pot water_potion and nothing works
there's no water bottle material, it is a potion with no effect
then how do i check for the potion with no effect :d
@mint fable
i cant send pics here 🤨
its {id:"minecraft:potion", tag: {Potion: "minecraft:water"}, {Count: 1b}
%checkitem_amount_mat:potion,potiontype:water,strict% ye i found it thank u :d
[18:43:24 ERROR]: Could not load 'plugins/PlaceholderAPI-2.11.1.jar' in folder 'plugins'
Someone know why my placeholder dont start?
PlaceholderAPI have dependencies?
if i install last version i have same error:
[18:43:24 ERROR]: Could not load 'plugins/PlaceholderAPI-2.11.1.jar' in folder 'plugins'
The full error would be helpful
sorry
[18:43:24 ERROR]: Could not load 'plugins/PlaceholderAPI-2.11.1.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/google/gson/Gson
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at java.base/java.lang.Thread.run(Thread.java:833) [?:?]
sorry
Caused by: java.lang.NoClassDefFoundError: com/google/gson/Gson
at me.clip.placeholderapi.expansion.manager.CloudExpansionManager.‹clinit›(CloudExpansionManager.java:64) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPIPlugin.‹init›(PlaceholderAPIPlugin.java:76) ~[?:?]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?]
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?]
at java.base/java.lang.Class.newInstance(Class.java:645) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.‹init›(PluginClassLoader.java:76) ~[gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
... 6 more
Update to 1.8.8
there is no possibility of running on 1.8?
No
.
Do I install Placeholderapi on my proxy or backend servers or both?
K thanks
Hello when i install the vault-expan... and i do /papi reload i get this https://paste.helpch.at/erufegubis.rb
\
anyone know how i can show cd in deluxemenu?
Example:
player can take 1 free diamond in dm and than i give 24h permission, after than permission will disappear player can take again diamond.
how can i show how much time is left before the perm disappears?
hi
Hello, is it possible to transform placeholder output like "30m 20s" to just seconds like "1820"?
you can use javascript and use this script I made for the playtime placeholder
var time = "%playtime_time%";
var weeks = parseInt(time.match("(?:\\d*(?=w))"));
var days = parseInt(time.match("(?:\\d*(?=d))"));
var hours = parseInt(time.match("(?:\\d*(?=h))"));
var minutes = parseInt(time.match("(?:\\d*(?=m))"));
var seconds = parseInt(time.match("(?:\\d*(?=s))"));
var total = 0;
if(!isNaN(weeks))
total += weeks*604800;
if(!isNaN(days))
total += days*86400;
if(!isNaN(hours))
total += hours*3600;
if(!isNaN(minutes))
total += minutes*60;
if(!isNaN(seconds))
total += seconds;
total.toFixed();
@velvet ingot 
Not sure if I'm late to the party, but there is a statistic for this! It's kill_entity ender_dragon if I recall correctly. And you could use the PlayerStats expansion to get this number for specific players
I will try, thank u!
Hi, I'm trying to use PAPI inside my plugins, however it throw me this error:
java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.PlaceholderAPIPlugin.getInstance()" is null
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:72) ~[MultiCommands.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[MultiCommands.jar:?]
And here's my code:
joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);
did you add PlaceholderAPI in your softdepend/depend in your plugin.yml ?
yep
[15:14:39 INFO]: [UltraRegions] Enabling UltraRegions v1.6.9
[15:14:40 WARN]: [UltraRegions] Loaded class me.clip.placeholderapi.expansion.PlaceholderExpansion from PlaceholderAPI v2.11.2 which is not a depend or softdepend of this plugin.
[15:14:40 INFO]: [UltraRegions] Loading Plugin...
[15:14:41 INFO]: Preparing start region for dimension minecraft:greymane
[15:14:41 INFO]: Time elapsed: 239 ms
[15:14:41 INFO]: [UltraRegions] Successfully loaded in 1179 ms
[15:14:41 INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.11.2
[15:14:42 INFO]: [PlaceholderAPI] Fetching available expansion information...
[15:14:42 INFO]: [PlaceholderAPI] Successfully registered expansion: uregions [1.0.0]
[15:14:42 INFO]: [UltraRegions] Hooked into PlaceholderAPI
[15:14:42 INFO]: [MultiCommands] Enabling MultiCommands v0.86.1
[15:14:42 INFO]: ---------------+ MultiCommands v0.86.1 +----------------
[15:14:42 INFO]:
[15:14:42 INFO]: Enabling commands:
[15:14:42 INFO]:
PAPI is been loaded before MultiCommands (my plugin)
that's dumb
I don't have any others error except these
don't I have to do something to enable the hook from my plugin to PAPI maybe?
I don't think so 👀
Jsut checked again, PAPI is not built inside my jar too
PlaceholderAPI class that I use in my plugin comes from papi plugin jar
yep
