#placeholder-api
150650 messages · Page 66 of 151
ok. Let me know if you fix it too.
what world_time returns?
help pls
add {fast} before the placeholder
I already did it.
Do you have protocollib
me?
Yes
Which protocol are you talking about?
Thefuck
There was an error while translating. Sorry.
l have a protocollib
Yeh idk what plugins you are using so cant really help you
Its probably not placeholderapi but just that hologram plugin
After linking the vault to placeholderapi, I wrote variables in holographicDisplays (database).
it returns world time in HH:MM but i want it in ticks
Placeholderapi just works then?
yes
As mentioned above, it is linked to holographicDisplays, but the ranking is not updated.
When money is give to a player in the money ranking, it disappears from the holographic display.
your host is blocking outgoing requests
so your unable to download expansions through ecloud command
just download them from the ecloud and install in /plugins/PlaceholderAPI/expansions
for the other 2 placeholders you require the expansion aswell
It did work before with my host
Where can i find the ecloud
Its just the ingame command right
^^^
get a better plugin
SuperiorSkyblock has built in placeholders so i cant get those from the ecloud site
Also i used the ecloud and it still doesnt work for the vault placeholders
help plz
you have vault installed correct?
Yes ;;
All my placeholders are broken..?
https://paste.helpch.at/nikaxazipe
define broken?
you did?
I had fixed that issue a long time ago by removing a plugin that was breaking my placeholders
and i didnt get any help i just started removing plugins
binary search is usually your best bet lol
Yep
what was the problem plugin then
TownyMission/TownyQueue
hope you reported it to them so they could fix it
that fair, still worth letting them know
cant fix a bug if your unaware its there.
Exactly, thanks for the reminder
Anyway, I've gotta go and grab a ethernet cable, my WiFi has been randomly disconnecting
can I use math placeholder inside of progress placeholder? like this %progress_bar_{math_2*(5+{vault_eco_balance}+1)+1}_c:&a|_p:&e|_r:&c|_l0:100_m:1000_fullbar:&aNice!%
no. you can't have placeholder inside placeholder inside placeholder
javascript maybe to do the math?
good idea, thanks
👍
Help me please
use a better leaderboard plugin
Do you not know how to fix errors?
what leaderboard plugin you using?
because from what youve been saying its more then likely a problem with the leaderboard plugin
Holographic Displays
is in use
no whats the leaderboard plugin
thats just for displays
also holographic extentions?
I don't know the details because I'm out right now, but maybe it is.
But is it related to updating the money ranking?
well by default you cant use papi placeholders in holographic displays
The problem is that whenever money is paid to a player displayed in the holographic ranking, the player nickname disappears and the money ranking is not updated in real time.
Hello people I do think this is not the place to ask for this but can any1 help me out on this? Where can i find Citizens placeholders? Like %npc_ID_health% something like that. (I cannot ask on their chat since they do not allow me there)
also it requires protocollib so you might have to update that to make it work correctly
tho holographic extensions hasnt been updated in awhile so it could be that
I am currently using the island rankings well.
https://www.spigotmc.org/resources/holographic-placeholders-holoextension.64535/ this might be the best option but its still in alpha so might be buggy
citizens dont have placeholders afaik
protocollib is currently in use.
Citizens no
Superrior skyblocky2 use
i wasnt answering you
Damn do you know any working healthbar or health indicator that works with citizens?
have you tried any?
also i dont think that citizens npcs have health
Are there no developers here? The error needs to be fixed quickly.
Your giving very little detail
^
Hello can you help me?
the people answering are volenteering their time they dont have to help you
^ if you cant provide information we cant not provide support
they asked you multiple times for things which you decided not to answer
I am not good at English, so it is difficult to understand. Are you saying you can't help me?
I cant help you without context or enough information with your issue
I attached the vault to the placeholder and used the eco placeholder for the hologramdisplays. The ranking appears on the hologram, but the ranking does not change, and when money is give to a user in the ranking, an error occurs that the nickname disappears.
Do you know how to fix it?
which placeholders
You enable leaderboard or whatever its called in the placeholderapi config?
I have to go to work right now, so is it okay to leave a message in DM?
From what i can tell Superior Skyblock is handling the hologram which means its a superior skyblock issue and you should report it to the dev
No sorry
In terms of activation, I did everything I could, but it may not be enough, so can you tell me the whole thing?
did you do what i asked
In my placeholder api I am trying to use the vault extension but cant get it to work and get the same error every time? can someone help me with this or am i in the wrong place
ok give me second have to run the command
[Server thread/ERROR]: [PlaceholderAPI] Failed to load expansion class VaultExpansion (Is a dependency missing
Do you actually have Vault installed?
yes
as a expansion in the api
there is another error ive seen online trying to fix that i have seen poeple talk about and it is this one
java.lang.NoClassDefFoundError: net/milkbowl/vault/economy/Economy
I mean the actual Vault.jar plugin installed on the server
no do I need to do that?
Yes
is there a way to format the exp level ?
say i have 200000 exp its ugly and make the width bigger on the scoreboard is there a way to get it formated like 200.4k here is an image https://imgur.com/a/k5BxZI3
@opaque spire
@opaque spire Try using the math expansion and divide by 1000
0.01k EXP not good
cant formatter expansion do it?
No, I think that just puts ','
So like 1000 turns into 1,000
Why not use javascript with a simple statement that if the xp >= 1000, then divide by 1000 and add 'k', otherwise leave it?
Is there an expansion for in game current time ?
I believe the world or the server expansions have placeholders for that
ah heree @wild karma %player_world_time_12% %player_world_time_24%
thanks
Is it ok if I ask for help here cause my server doesn't want to start, it just stops loading plugins and doesn't continue
@unreal spoke also #general-plugins
https://prnt.sc/1vqdb8x
SuperiorSkyblock has built in placeholders so i cant get those from the ecloud site
Also i used the ecloud and it still doesnt work for the vault placeholders
https://prnt.sc/1vqdfiy
@wide reef since you thought you knew what it was yesterday
could you try to help me further
@austere hawk how I haven’t a clue how to use the Java script I’m tryna make it auto convert k, m, b, t, all on its own
Like how vault formats money
That is possible with a few simple comparison checks. I am learning javascript myself as i go, perhaps i could try making this for you to get some more hands on experience. Basically a win-win
What scoreboard plugin are you working with?
yes
I attached the vault to the placeholder and used the eco placeholder for the hologramdisplays. The ranking appears on the hologram, but the ranking does not change, and when money is give to a user in the ranking, an error occurs that the nickname disappears.
Tab premium
are you running it on the server or the bungee server?
also neznamy has a discord server which might be a better place to ask about this aswell since it might not just be a papi issue
also do you have MVdWPlaceholderAPI installed at the same time?
during the startup of the server when it loads superior skyblock it will tell you which api it will use for placeholders, can you check if its loading with mvdw or papi.
as for your vault issues you will have to download the expansion from here: https://api.extendedclip.com/expansions/vault/
if your unable to download through ingame command.
its also possible that superior skyblock has changed their placeholders and just havent updated it to tell you
I did tried HealthBar and they do have health
and the health is?
Can you get an output of something in caps with some expansion or something?
Like I want to get for example prefix of player in caps
Why not just change the prefix to capitals then?
Someone asked this before, look: #general-plugins message
Some of them display 0 others just dont display and i cant toggle it for each npc :(
Can someone help please, my vault placeholder doesn't work this one %vault_eco_balance_formatted%
in scoreboard
I have latest PAPI
what are you using this placeholder for, scoreboard, tab, hologram, etc?
also try /papi parse me %vault_eco_balance_formatted%
what scoreboard plugin?
UltraScoreboards
I did /papi parse me %vault_eco_balance_formatted% this command and got %vault_eco_balance_formatted% in chat
whats the result of /papi list?
do /papi list ingame and tell me what it says
one moment
Graves, iaplayerstat, img, mmocore, mmoitems, playtime, sleepmost, uperms, uregions
you dont have the vault expansion installed
what does /papi ecloud download vault say?
Successfully downloaded expansion Vault [1.7.0] to file and reload papi
ofc I reloaded papi
I have reloaded entire server 2 times
and the result of /papi reload is what exactly?
look at console when you run the comman
if the expansion is failing to download then go to https://api.extendedclip.com/expansions/vault/ and click Download Latest and put the vault jar file in /plugins/placeholderapi/expansions
what version of vault do you have installed?
latest
1.7.3
yup
1.17.1?
yup
look at /plugins/PlaceholderAPI/expansions and see if the vault expansion is there
and when you do /papi reload does it show up in /papi list
Did /papi reload error console
the full error
you dont have towny installed but you have the towny expansion.
tho its not related to vault

remove the towny expansion or install towny
thatll fix that
do you have papi 2.10.10 installed?
When I download the script from ecloud, an error pops up, why is this?
what error?
?paste
[00:40:04 ERROR]: [PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory
[00:40:04 WARN]: [PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
delete your javascript expansion from /plugins/PlaceholderAPI/expansions and upload the latest version from https://api.extendedclip.com/expansions/javascript/
latest I did /papi reload https://pastebin.com/mpvev1kv
vault working but this warning was that
Is there a way to run placeholder api on a bungeecord Server?
nope
you cant run placeholderapi on bungee servers but you can on the game servers (the ones that run spigot,paper,etc)
Does this also works than, if i have a bungeecord server?
i dont believe that thats from vault
yes
bungee is just a bridge between servers
Okay, thank you!
[00:49:25 ERROR]: [PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory
/papi info javascript
Buf if i have BungeeTabListPlus in the plugins folder in bungeecord and placeholder api in the normal spigot folder, this does'nt work, does it?
nope
if you want a tablist i would suggest you make one that runs on each server instead of just on bungee
bungee tab lists that show all players on a bungee network are cluttered most of the time.
a good tab plugin if your replacing the old one is TAB by NEZNAMY
Anyone who know what this is please explain https://pastebin.com/NZk21s7H
No
/papi info server
whats the result of thatt
what does /papi info javascript say
also do /papi reload after you installed the latest version of javascript expansion
There is no expansion loaded with the identifier: javascript
did you download the latest version of the javascript expansion and upload it to your server?
Status: Registered
Author: Clip
Version: 2.5.0
yes
did you do /papi reload?
yes
/papi ecloud download server
your running an out of date version of the server expansion
latest is 2.6.0
no problem
have a good day
you too
I went to the given address, downloaded it, and put it in plugin>papi>expansions.
did you delete the old one
restart your server
I already did.
If you do ecloud download javascript, Expansion-skript is created in plugin>papi>expansion again.
PAPI-Expansioon-Javascript-flop2xB.jar
is this correct?
if i seak for that plugin, it shows my an error
its not on spigot
it was removed by the spigot mods
download it from the github page
Okay thanks for your answer
/papi register PAPI-Expansion-Javascript_flop2xB.jar
Failed to register expansion from PAPI-Expansion-Javascript_flop2xB.jar
?paste
whats the full error in console?
[01:04:12 ERROR]: [PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory
[01:04:12 WARN]: [PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
[01:04:12 INFO]: [PlaceholderAPI] Successfully registered expansion: vault
[01:04:12 ERROR]: [PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory
[01:05:23 ERROR]: [PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory
upload a screenshot of /plugins/PlaceholderAPI/expansions
the folder
also do /papi list
Screenshot can't be uploaded Is it possible dm?
upload it to imgur
There is no such thing in Korea, so I don't know how to do it.
delete Expansion-javascript.jar
If you delete it, it will reappear when you download ecloud.
then dont download it from ingame
What should I do after deleting it?
/papi reload
[01:25:22 INFO]: [PlaceholderAPI] Successfully registered expansion: vault
[01:25:22 ERROR]: [PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory
Even if you delete it and do not download ecloud, it is created again in the file and appears in the bucket like this.
you can blame skript for that
I didn't understand what you were saying. Isn't there a way?
disable skript
rename skript.jar in /plugins to skript.jar.dis
then restart your server
then delete Expansions-javascript.jar and do /papi reload
Does the plugin support Luck perms?
So, are you saying to rename Expansion.skript.jar to skript.jar.dis and delete PAPI-Expansion-Javascript_flop2xB.jar in plugins > papi > expansions?
PAPI-Expansion-Javascript_flop2xB.jar < this?
Expansion-Javascript.jar
If you do this, you cannot use the script.
Well if you cant tell something is redownloading the Expansion-Javascript.jar and my guess is skript is doing it
delete the Expansion-Javascript.jar from /placeholderapi/expansions
ok
[01:41:29 ERROR]: [PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory
it something else thats downloading it
disable half your plugins
upload your latest.log
I didn't understand. That error popped up in the bucket when I turned on the server.
?paste
Can't upload here.
upload the content to https://paste.helpch.at/
,
Dose anyone know how to make the server run the command without /papi parse %player_name% %javascript% ??
e.g if player holding a Diamon_sword. The server will run the commnad but you have to type /papi parse myname %javascript_myjavascriptname% and it will run the command
How to link papi and skript?
Getting this error on start up
https://pastebin.com/8LyGNQrS
ty
hello good i need help with placeholder api it won't let me add the expansion vault
Why won't it? What does it say?
/papi ecloud download Vault
It tells me that there are no registered expansions
@silver minnow it doesn't work for me
Do you have the actual Vault plugin installed?
/papi reload
@fervent spire if I have the current one
@silver minnow @dkim19375 it doesn't work for me
Is that a yes or no to having Vault plugin installed?
when I put an expansion list I don't get any
Yes
When you do the command /papi ecloud download Vault what does it say?
It tells me to reload and I give it and it does not load the expansion
./papi dump
Can you see the expansion for vault in the expansions folder?
what would that command be for?
yes i see her
okay I'll send it to you
Generated: October 13, 2021 2:54:06 AM UTC
PlaceholderAPI: 2.10.10
Expansions Registered:
marriagemaster [Author: [GeorgH93], Version: 2.5-Release]
localtime [Author: aBooDyy, Version: 1.2]
Expansions Directory:
Expansion-vault.jar
Expansion-localtime.jar
Server Info: 1.12.2-R0.1-SNAPSHOT/dce6a22-DEV (MC: 1.12.2)
Plugin Info:
DeluxeHub [Version: 3.3.10]
MarriageMaster [Version: 2.5-Release]
PlaceholderAPI [Version: 2.10.10]
Vault [Version: 1.7.3-b131]
that's what I get
Stop the server, delete the Expansion-vault.jar from the expansions folder. Start the server again, then do /papi ecloud download Vault /papi reload
I already did it and nothing happens
What does it say when you run those commands, surely something would happen.
seems like you have it installed whats the exact issue have you tried the placeholders?
can you try /papi parse me %vault_eco_balance%
is the problem the deluxehub plugin?
Did you try this command?
if it detects it
That doesn't answer the question. Did you try it, and if so, what does it say?
Where can I send you some pictures?
when I enter the papi list command I get that there are no expansions registered.
?paste
@oblique heron ignore that command if the placeholder its all good
I don't understand what to do
el plugin placeholder api cuando pongo
el comando /papi ecloud download vault
Sorry I dont speak spanish
show me what /papi parse me %vault_eco_balance% displays
?paste
use this ^
tells me that there are no expansions registered
Generated: October 13, 2021 3:38:47 AM UTC
PlaceholderAPI: 2.10.10
Expansions Registered:
marriagemaster [Author: [GeorgH93], Version: 2.5-Release]
Expansions Directory:
Expansion-vault.jar
Server Info: 1.12.2-R0.1-SNAPSHOT/dce6a22-DEV (MC: 1.12.2)
Plugin Info:
MarriageMaster [Version: 2.5-Release]
PlaceholderAPI [Version: 2.10.10]
Vault [Version: 1.7.3-b131]
says
Expansion-vault.jar```
manually download it here https://api.extendedclip.com/expansions/vault/
I downloaded it and now what do I do ?
upload it to the expansions folder
inside placeholderapi
make sure you remove the old one
ok now what do I do?
restart your server
I have already restarted it
I only get the marriagemaster one.
Generated: October 13, 2021 3:53:14 AM UTC
PlaceholderAPI: 2.10.10
Expansions Registered:
marriagemaster [Author: [GeorgH93], Version: 2.5-Release]
Expansions Directory:
PAPI-Expansion-Vault_o3XmLDu.jar
Server Info: 1.12.2-R0.1-SNAPSHOT/dce6a22-DEV (MC: 1.12.2)
Plugin Info:
MarriageMaster [Version: 2.5-Release]
PlaceholderAPI [Version: 2.10.10]
Vault [Version: 1.7.3-b131]
which folder did you put that in?
in expansions
Okay confirm all steps you did:
- Deleted Old Expansion and tried to reinstall via command /papi ecloud download vault & /papi reload
- Delete any current expansion reinstall via ecloud website and RESTARTED your server
- Update Vault to the latest version
@oblique heron ^
Does it influence me that I am using a magma server?
Whats a magma server?
is a server with plugins and mod at the same time.
I am not sure but did you try to install the latest version of vault
and did you go through all those commands
I did all that and nothing
Magma is a bukkit/forge hybrid that modifies the base bytecode to "fix" stuff
yes
His Vault expansion file name looks wrong
I just added vault expansion on test server and it's different
then it is because of the name?
had him install it from https://api.extendedclip.com/expansions/vault/
I downloaded it from there
Restart your server then paste a FULL startup log
And how do I do that?
this is the name of the file PAPI-Expansion-Vault_o3XmLDu.jar that I downloaded
Restart your server, then go to logs/latest.log and copy/paste the full contents
?paste
ok I reset it and send it to you
send it here
Can you do it again, the link doesn't work for me.
any ideas ?
Is that the full log file? Because it doesn't look like the full one.
@umbral sigil hey you managed to solve the problem?
Yes plugins update
??
they updated the plugin
Okey thanks
To the latest version download
How do I update it?
Google search
the same version appears to me
Is 2.10.10?
@umbral sigil can you send me the link pls?
i'm at work right now
something different must format chat because in ess is <> instead of []
How to link papi and skript?
good afternoon I use a spigot 1.16.5 server and the same thing happens to me the placeholderapi does not register the vault.
I am yesterday's person just in case
How to make guis for multiple players in DeluxeMenus? For example /profile <name>?
U can open your profile but u can open other profiles as well
Have you got the vault plugin?
And an economy plugin?
I got it
var player = BukkitPlayer;
var server = args[0];
function getPlayers() {
var players = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "bungee_" + server + "%");
if (players == 1) return players + " Player";
return players + " Players";
}
getPlayers();``` something like this maybe
someone can give skript parse to skript25 dev
even changing the format in essentials does not affect me so it must be from placejolderapi
no, chat is formatting different plugin than essxchat/papi (papi cant even do it)
I linked skript and papi, but if I use the skript variable in the simple score plugin, it is not recognized. Help me
Firstly, don't cross post.
What happens when you try to do /papi parse me <the skript placeholder>
<the skript placeholder> What should I put here?
Well obviously the skript placeholder you are trying to use
/papi parse me <{Stat::level::%player%}>
If you type it will appear the same
<{Stat::level::%player%}>
/papi parse me %skript_{Stat::level::%player%}%
is that right?
When you type it, it appears like this:
<none>player%}%
{Stat::level::%player%} Needs the be replaced with the actual Skript variable name.
For example?
The name you set the variable.
i don't understand
EX: %skript_test% would be the variable {test}
Can you tell me how to create a variable?
No, because I don't use Skript and never will.
But when I look at how to use it, it says that {Stat::level::%player%} can be used like this, right?
Idk, I don't use Skript and never have used it. Try and see otherwise ask the dev of it.
Weren't the developers here?
Idk.
Sorry to be annoying but I forget how to use the bot to find placeholders, what's the one for distance walked?
Hello I've got a question, how do I use the killStats api
I've installed killStats and Papi, In my code I used:
String kills = "%killstats_kills%";
kills = PlaceholderAPI.setPlaceholders(p, kills);
String deaths = "%killstats_deaths%";
deaths = PlaceholderAPI.setPlaceholders(p, deaths);```
Then I used the string in a scoreboard but then it doesn't show the scoreboard & gives me an error
(I've downloaded killStats using /papi ecloud download killStats)
wat
if you want solid line just use "&m "
😳
Hello! I am unable to upgrade from 2.10.9 to 2.10.10 (newest version).
Did a clean install. Downloaded all the placeholders i needed, did a restart and still nothing.
Based on the update note, this cant be normal? What am I doing wrong?
This worked just fine on version 2.10.9.
Feel free to tag me if you reply.
Looks like this in featherboard: https://i.imgur.com/EqPK8Jt.png
do these placeholders work in the parse command? /papi parse me %blah_blahblah%
well yes u change the placeholder to whichever u wanna test
which is?
That works Blotz. Should I just change it from placeholderapi_towny_town to towny_town ?
^^
so you should be using %towny_town% instead of all the {placeholderapi... bulshit
Ah of course. Thank you two for great support.
That worked like a charm. Thank you again ❤️
no problem
Hi im new on creating a server is 1.16.5 i change between custom enchants plugins a the new adds some values i never seen before. Now the plugin works well but shows messages like %groupcolor% %successrate% etc, this is the screeshot of the item, if someone can help i really appreciate 🙂 https://imgur.com/a/IcX56PX
Is it intended that papi won't parse a placeholder if it's preceded by an ampersands (&)?
i'd upload a screenshot but i don't have permissions
use imgur ^
@strong hemlock you useing Advanced Enchants?
no?
Can someone help me with Bungeecord placeholders, Is there any bungeecount placeholder?
whats the placeholder for players exp? in number format ie: 230,000 exp. I cant find one or get it to work anywhere
can i make placeholders that do not requier a player to parse?
im trying to use %player_exp% but it gives a weird decimal format. I used %formatter_number_format_player_exp% as you described but it just displays %formatter_number_format_player_exp% do i need to parse anything to use %formatter_number_format_{yourPlaceholder}%?
It still gives a decimal. Player has 1,005 exp but placeholder comes back at 0.09 Is there even a placeholder for whole number total exp? you solve this im sending you coffee money 😄
Nbt tags don't work
'1':
display_name: ' '
material: PAPER
nbt_int: CustomModelData:10110
slot: 1
click_commands:
Hey there, does %essnetials_world_time% auto update when no one is online?
@warm plover like world time? yes you did miss spell the placeholder btw its essentials
is it possible to have a placeholder take only first item of a list returned by other placeholder? like:
{some_placeholder_which_takes_string_here>_%placeholder_returning_a_list%}
(specifically talking about making %quests_player_current_objectives_<quest>% work with oldest quest player has)
is there a way to specify the amount of deciamals in a the math placeholder. i know you can do it in the settings but i want it per equation
Does anyone know how to do javascript like, give a diamond to player when player break the block without type /papi parse %player_name% %javascript_test%
Not exactly, but close to what you want. I'm not sure though if you should really do this via javascript if you have many players
thank you
Btw let me know if you can find out if/how one can use javascript for events.
Idk about that tbh
Js expansion is not meant to do that
Can you technically do it though?
You probably can but idk if you should, Silver
There's tones of plugins that could do that
That's what i said above basically. I can't imagine a js looping non stop to run checks constantly to be healthy but then again, not sure if you can even do that
That's also very true
Sadly, very often when looking for small plugins that do maybe 2 or 3 things are rare, usually you end up with getting a huge plugin and disable 90% of it because the rest is not what u need xD
A good opportunity to learn java xD
Shouldnt be too hard; get player, get block, if block = x material then do x otherwise abort mission - or am i wrong
If you boil it down to the basics
Block break event i think?
||yeah that's the one https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockBreakEvent.html||
Holy crap, i knew something about java ahaha
For you guys thats probably baby stuff but i cant java for my friggin life, so having known that is a huge thing for me xD
I had the same reaction when I started x)
I started all thanks to Blitz lol
I just wanted to get a list of players, then I did it with PAPI JS, then I wanted more and did it in Java, and continued with more projects x)
I've always been interested in java, it just seems so undoable like you stand in front of this massive wall as rookie and you think 'maybe i should just get outta here instead'
there are some pretty good websites explaining the basics in details
and you can also check other plugins' code on GitHub to help a bit
Idek where to start. 2 years ago i actually bought one of them weird online courses and never got past the explanation of objects
😂
tbh I didn't buy anything, I only checked w3Schools to understand how to set up the thing x) ||https://www.w3schools.com/java/java_intro.asp|| and then checked Spigot's wiki to check what dependencies I had to use and how to actually create the plugin
Lucky you. I mean, i never touched any code language ever so no wonder my brain blew up at first. Now that i have a few basics in javascript, it's a bit better since well, you get a feeling for the way you need to think. I'm still struggling with my all-time enemy: arrays
x)
I hate arrays so much. Soooo much, i can't even put it into words
what's wrong with them?
you get an array, maybe called args, you take the item at position x in the array with args[x] and check for the length of the array with args.length
how ? x)
I did some exercises the other day and it had me check 5 different arrays in one go, one being empty, for which i had to return 0 instead, return first, return last, return every 2nd, so like the whole battery of possible outcomes in one task
Took me 3 hours to get it right and 2 aspirin for my headache
¯_(ツ)_/¯
To you yes, no doubt. For me, that was a trip to hell.
rip
In the end i did it, so i was happy about that ofc but then the next exercise killed me and i haven't done javascript for like a week now lul
Mayyyybe you can explain that one to me :P
Oof yea you're right lol
Feel free to chat @austere hawk @junior musk, just not in this channel
We moved to dms, sorry
No problem
is there a placeholder to show a player name?
?player
?help
hi, i'm searching for someone who explains how to send the ip address (not always the same, because it's my ip address) with the DiscordSVR plugin and they told me to ask here if there is a plugin.
Hi, wdym by 'send the ip address with DiscordSRV'? Like you need placeholder for IP address?
yes
where do i have to put
where do you want it
and then to show on DiscordSVR?
if discordsrv support placeholderapi just put it in message where you want
ok thanks
hi, i have this error with the guild plugin on my 1.17.1 paper spigot server
#spigot-linking please
Heya,
how does the "server" expansion retrieve the server name?
It just says "A minecraft server" in the actual java file.
I can't find the config that bukkit provides the server name.
Yes, I have tripple checked server properties
iirc it's from PAPI's config.yml
Ahh! Thank you so much! Why didnt I think of that iwi
Hi guys
I'm having this error that when i get 1.8.2 dev version the placeholder api doesnt work
I can't use 1.8.1 because it dont work for 1.17
(for deluxetags)
https://imgur.com/a/LL1xNsO hi, i use a plugin to custom enchants, uses the placeholders on the image link but i dont know how to use em
delete the expansion
in 1.8.1 tags dont work
it says internal occurred error bla bla bla
don't use 1.8.1
use 1.8.2
and delete the deluxetags expansion
from plugins/PlaceholderAPI/expansions
and then download it again?
which one is to display the tag u have
%deluxetags_tag%
@turbid tide dms
%math_100_[precision:2]% why this doesnt work
@visual yacht you sure?
kk
when they show [] in placeholders it usually imply to saying you can replace it and no need to include []
headsup for the future tense
Helo, does anyone knows why custom placeholders aint working? I have multiple servers and this happened at the same time
how can i do in javascript to transform a number into simplified? i.e. instead of having 12000000 I would like to have 12M
DeluxeChat 1.17.1 @final shadow
?
how can i do in javascript to transform a number into simplified? i.e. instead of having 12000000 I would like to have 12M
like this but not in vault ^^ thousands: k trillions: T quadrillions: Q billions: B millions: M
like this but with another placeholder and not a number :p
solved in #general-plugins-2
hi, i want to put an "-" to the placeholder if it's empty
for example if i'm in a plot in plotsquared, it shows the owner of the plot, but if i'm on the road, the placeholder is like empty
is there a placeholder for what a worlds weather is?
thank you
i have another question
how can i use javascript placeholder for scoreboard?
wdym? the placeholder should work everywhere
everywhere where PAPI is supported*
i mean what is "yourplaceholderidentifier" meaning in %javascript_<yourplaceholderidentifier>%?
%javascript_filename% without JS
well you make the placeholders and declare them in javascript_placeholders.
😳
oh no, i got an error
ReferenceError: "MrEveriX" is not defined in <eval> at line number 1```
can we see your code?
ofc
var output;
placeholder == true ? output = placeholder : output = "-";```
nvm
i forgot to reload papi
but now, it's showing "-" when i'm in a plot too :/
well
parse the placeholder
see if it returns
true/false
or maybe a name
instead of true/false
it's working
i accidently worked with null instead of ""
but anyway, thank you for helping
Hey
I run into a small issue, I want to use ChangeOutput in FeatherBoard.
The issue is that FeatherBoard uses {} and ChangeOutput asks to use {} for inside placeholders
Is there any solution for this?
&f{placeholderapi_changeoutput_equals_%superior_island_top_level_position%_&f_Nincs_#%superior_island_top_level_position%}
All arguments can be replaced with other placeholders, wrapped in {}
Iirc, featherboard does not rely on mvdw placeholders anymore. When i updated to 1.17 and latest featherboard, oddly, my placeholders all broke due to the {}, i had to replace them all with % and now it's fine. Just saying
at which version?
5.0.3b. There was an update on oct 10th to ver 5.0.4, haven't tested that one yet
See https://i.imgur.com/UPQm5Vv.png using % and works el perfecto for me at least
Can someone help me why I get this when installing the vault expansion?
"[10:29:33] [Server thread/ERROR] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!"
do u have the vault plugin installed? and an economy plugin that hooks into vault?
i have vault and essentials x
I have both plugins in their latest version, my server is version 1.12.2, I don't know if that will have something to do with it
my assumption is that the problem is with the version again. seen this happen quite a bit for people. Someone said it might have to do with the system or something but don't remember any fix or anything
When I try running the command "/papi parse me %statistic_join_game%"
It says "Unknown statistic 'join_game', check https://helpch.at/docs/1.17.1/org/bukkit/Statistic.html for more info" but when I try to go there, it says "Nope Page Not Found"
yup known bug. This is where you should go if you're on 1.17: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
Okay thanks
But the join game stat is gone? I can only find the LEAVE_GAME one
Or I just can't read
what's it supposed to show?
if its supposed to show when you joined, I don't believe that was ever a thing
I believe it should show how many times you joined
I remember it working (quite) some time ago
oh
there is one for how many unique players have joined a server but don't remember any for how many times a player has joined
?paste
im gonna guess what blitz said
@exotic lily can u try this for me? if blitz is correct, then this should fix the issue for you
Yes, it is finally solved, thanks for the help, I would like to know what version you gave me
its just one that i created now to fix the issue. but seems as tho it works, i will now create a PR to the expansion on github, and hopefully will be available to everyone else through ecloud soon
Thank you very much, I appreciate your work
[PlaceholderAPI] Failed to load expansion class MathExpansion (Is a dependency missing?)
is there an error to go with that?
does latest PAPI works with java 8?
yes
what java version you got? make sure you're on java 11 or newer as I believe that expansion only supports that
Yes
i am on 16
mr blotz he must be on 16/17 because 1.17 support 16 and higher only
yes
there is an alternative to display players from 2 servers combined?
Math expansion
dosent work
The placeholder 'VotingPlugin_Total_AllTime' does not give a numerical value. Make sure that the placeholder returns a number that is not formatted
did you downloaded the expansion? did u realoded the papi?
what placehodler do you use? what /papi parse me %placeholder% returns?
what placeholder do you use
like %math_hello% or %math_1+1%
My error is with ajleaderboards
how do you know it doesnt work then
i have the error
what error, can you send screen & stracktrace of error (basically error in console/latest.log)
hiya, every once and a while my server will un-register my placeholders for venturechat, vault and such. Just wondering if I could get some assistance with that!
the paste is here. https://paste.helpch.at/uxixijasun.md
Is there a placeholder to get the owner of a worldguard region? I've tried parsing this %worldguard_region_owner% it's only good if your standing in the region something like %worldguard_region_<region>_owner% is what I'm after
i imagine this isnt the fault of papi. but im going to post here in hopes of some help anyway.
Im using mycommand to store playerdata for boss kills. When i use papi parse on a player with no value i get NoData or just the correct numerical value. when i try it again on some other users i get An internal error occurred while attempting to perform this command
for example this is a players data file:
HansGruberKill: 1
TotalKills: 1```
this is another playerd data file
```f8bafa58-d180-4199-89b1-ba01de5fd43e:
MerlinKill: 15
TotalKills: 15```
the output of this command: ```/papi parse <uuid> %mycommand_playerdata_TotalKills%```for the latter player is ```15``` and the other is ```An internal error occurred while attempting to perform this command```
this is consoles output
Hello a few days ago I installed the animated scoreboard but they recommended to me they used the PlaceholderAPI to obtain extra commands and I did so but every time I try to modify something in the animated scoreboard and then restart my server so that the modified work does not respond it is as if it will be in a loading loop, uninstall the plugin and the problem is fixed but I would like to continue using this one, thanks for the help in advance
** 19.10 05:16:47 [Server] Server thread / INFO [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Placeholder expansion registration initializing ... ** ** Full registration: ** https://paste.shockbyte.com/uceboloqalonuqarezon
what is the different between this 2 placeholder? i tried both and they give me the same result
%pinger_gameversion_testplugins.com:25565%
%pinger_version_testplugins.com:25565%
no difference at all. its the same for count and players and the same for max and maxplayer and a few others
just every placeholder has 2 options for some reason
oh ok thanks for the answer
for the javascript placeholder script, is there some BukkitPlayer equivalent for the player that receives the message / placeholder, instead of the player that gets parsed along with the placeholder? (like where it'd always return my username)
or a placeholder / something in deluxechat that does the same
So im having a HUGE issue rn and i have no clue what im doing wrong
my %luckperms_prefix% in deluxe chat is showing as nothing?
it doesnt show the placeholder as if i didnt have it installed in placeholder api, it just shows an empty space where the placeholder should be
idk if anyone can help?
How do I use placeholders like %bungee_<server.name>% on mine bungeecord server? I want it to display the number of players on the main server, but nothing works. Do I need to install PlaceholderAPI on bungeecord server? It is not installed in anyway .
have you downloaded expansion and reloaded papi? /papi ecloud download Bungee, /papi reload
are you using placeholder without the brackets? (<>)
what/papi parse me %bungee_servername% returns?
any error?
do you have vault installed?
i think lp placeholders are not vault dependant
What does it show when you do /papi parse me %luckperms_prefix%
Quick question about formatters — how do you run a formatter on another placeholder?
{formatter_text_substring_0:7_{player_first_join_date}}
So that I can turn 01/31/21 13:45 into 01/31/21?
formatter only formats integer does it not?
don't think you can take a placeholder and change text around. that sounds like a job for the Javascript expansion. If you know some javascript that's your only option I believe
Agreed, just looked at the expansion and I don't see a way to do this with it.
cool thx! yeah I know some JS, but haven't tried it in MC yet, just in the browser/web dev stuff
that's fine. its the same.
only difference is that you get a few default variables that you can use and also you can access the spigot api if you for some reason want to do that.
/papi ecloud download javascript then /papi reload to install the expansion
ah. one thing before you do that.
it requires java 15 or newer
if you can't update and you're on 14 or lower
you need to install an older version
/papi ecloud download javascript 1.6.0 then /papi reload for java 14 or lower
and now if you navigate to plugins/PlaceholderAPI you should find a javascript_placeholders.yml file. that's where you declare new placeholders you want to make.
you can read more about hat here: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
also about how to make the code and where to put it
and how to call it.
i'm on java16 so cool
btw. a heads up. it uses the nashorn enjine. so ecmascript 5.1 or something like that
function joinDate(){
var datewithTime = '%player_first_join_date%'
if (datewithTime.length > 8)
return datewithTime.slice(0,8);
}joinDate();```
Don't hit me.
Thank god it doesn't shorten itself by removing zeros so the length is always 8 xDDDDD
I was looking into that but w3 failed me or im blind
or change the default time format from papi config if you don't need the extra stuff anywhere else
return '%player_first_join_date%'.split(' ')[0];
Basically. Split at space, include 0 after?
I like to try things so they make sense, what were to happen if you changed the 0 to lets say 3
split() returns an array and you use [0] to access the first element
['01/31/21', '13:45']
Good to know, just glad mine works. First thing that happened to me here was that i had the file on desktop, copied to server and still had the desktop one open... 'why do i always get the same errorrrrrrr?!'
I hate myself
If i want to download Placeholder API from Spigot i got this error
SpigotMC - High Performance Minecraft - Error
Your IP address has been banned.
What can I do than?
Okay, thank you
Now, if I do /papi reload, after I do /papi ecloud download luckperms, it gave my that error:
https://pastebin.com/MATbuBRi
What can I do now?
it doesn't find the luckperms plugin. so maybe install it?
Now it works, thank you
For creating a PAPI expansion, the class that extends PlaceholderExpansion is loaded using a class loader ?
because I need to inject a dependency into the class
without using a static reference from my main class.
Is it an internal expansion or an external one?
internal
the same plugin is an expansion also
hello, how to replace two chars in one formatter placeholder?
Like in
{#HHEEXX}A{#HHEEXX}B
I want to replace { for #
and delete }
Hi guys, I am making a Chat Format Plugin. How can my plugin read papi placeholders?
Example of config.yml
format: %nicknamepapi% %rankez% >> message
Does maybe PAPI read them automatically and I do not have to do anything?
I have read that, but I do want players to chose their placeholders, like maybe %essentials_nickname%, so I do not know what they will chose. What do I do?
Hi, I was wondering why the Math-expansion wasn't working when I transferred my exact files from my laptop for localhosting, to a professional platform like Ramshard and the error log below appears. Tried searching around in this chat for any resolved issues but they didn't seem to help my situation.
Overall issue is 'dependency missing' when using Math-expansion on Ramshard, but completely works when running on my laptop.
I haven't spoken to Ramshard support yet since I wanted to see if this was a plugin-side issue first.
Server: 1.17.1 paper-341
Math-expansion: 1.2.5
PlaceholderAPI: 2.10.10
How would I do so if a placeholder gives a value greater to or equal a color code will be given, I tried this but it doesn't seem to work:
if ("%BLP_level%" < "5") perm = "&a"
if ("%BLP_level%" < "10") perm = "&2"
perm```
it works when i do ==
but not when i do <=
so specific values work but not greater to or equal
if (parseInt("%BLP_LEVEL") >= 10) perm = "whatever-color";```
tysm!<3
that depends on the expansion and the plugin. For your example (essentials), you need to download an external expansion from the ecloud. commands to download: /papi ecloud download Essentials then /papi reload. for other plugins you might not need to download anything as it might be built inside the plugin itself. can't think of a good example rn.
anybody's ping placeholder not working?
Hello
does PlotSquared placeholders not work
Im trying to show them in deluxemenus
and they donot have an ecloud download command
the placeholders on the wiki do not work
check vault placeholders
@magic rock why vault?
@austere hawk ^
okay ty
also
do any of yk
if i can use luck perms and have certian perms only apply in certain worlds
not usnig a bungeecord server
@fervent spire
Add world=<world name> to the end of the command, when adding permissions and/or ranks
In the editor you can do it easily just add it to the context field or use https://luckperms.net/wiki/Bulk-Editing
The bulkediting, will allow you to change heaps of them with the one command.
Depending on what you want to change, and how you want to change it
IF you haven't found out why yet, I might have an answer. This is only if you're on 1.17 or newer tho. If you server is on 1.17 or newer, then all you have to do is update the player expansion: /papi ecloud download player then /papi reload
make sure you're using the latest plot squared version. also there is no ecloud download because they're built inside the plot squared plugin itself now I believe
also. here's their official list: https://github.com/IntellectualSites/PlotSquared-Documentation/wiki/Placeholders
of placeholders. they might've not updated our wiki
hello eveytime i try to download the math expansion it says this in the console
[16:48:31 ERROR]: [PlaceholderAPI] Failed to load expansion class MathExpansion (Is a dependency missing?)
is that the only thing it says? it should probably be like a bigger error
@arctic loom can you look at this when you got some time? ^
can i contact the guy who made the expansion
?help
Hello I have an error on my console which means that I cannot load vault on placeholderapi```
.... [19:16:10 ERROR]: [PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!
update to the latest version of vault
how do i contact the owner of an expansion
andre is the owner of the math expansion, and hes just said he doesnt know
can u send a startup log please? i have a fix for the issue, but just want to gather more information as to why this occurs
I don't understand what you would like
oups
but this problem does not cause it to me that on vault its does it to me on plain else (sorry for my anglish i'm french)
?startuplog
Hi, not sure how to 'bump' my issue I posted previously without sounding impolite, but I was wondering about the Math-expansion issue similar to Yoshi's.
My previous post.
#placeholder-api message
That would be me...
lmao
I honestly don't quite get the error.... Maybe some java incompatabilities between the expansion jar and Caffeine (The caching utility)?
Maybe it would help if I shade the dependency into my own package?
Right now I only include it which worked from my testings...
Andre, if you don't mind shedding some light on my similar issue as well?
My error seems to result from clip.placeholderapi missing when I'm using it on Ramshard, a hosting platform. Though the same file/configs works on my laptop with no issues.
Hello, I am writing javascript placeholder (I am quite a beginner in this regard)
and my question is how exactly is javascript_data used? Whether it is used automatically when the script is running, is it possible to access it for writing / reading.
would not want to break plugin 😄
The fact is that when writing regular javascript, I used the yml.js module, but I don't know exactly how it will work within the server ...
Did you use their "1-Click Plugin Installer"?
My guess is, that they are the cause of this issue by offering either a old version of the plugin or (even worse) a modified version.
If you installed it manually then I sadly don't know...
What is a 1-click plugin installer?
Idk?
The host you mentioned it on their plans page
Like how did you install the plugins?
Ah, then no. I transferred all my files that were portforwarded on my computer directly into the server files via FTP
hm...
Only other guess I have here is some Java issues... Like incompatible Java versions or something...
Meaning Ramshard's issue
maybe.
I can't tell what the actual cause here is
But if it works fine on your laptop could the cause be on the hosting
Right, I thought so too unless I wasn't aware of something with the expansion.
When you mentioned incompatible Java versions, what versions would those be so I can bring it up with Ramshard support?
Math expansion itself should work on all versions starting from Java 8
PAPI shouldn't be different
Incompatible could also mean that they may use a different distribution of Java which may lack some features or have different variants of it.
I'm not an expert in this, so what I say here could be wrong, so take it with a grain of salt
Heard and thank you.
i tried math expansion on a test server and it worked so im not too sure why its not working on mine, but for now i can do without
thanks anyways , sorry andre i didnt know u were the creator lol
Why isn't something like PAPI built right into Spigot/Paper because in languages like C++, you always have similar placeholder macros available
No, Spigot/Paper don't include PAPI internally. You need to add it.
That's why I'm asking
It's not added because it's not a normal Minecraft function.
Now I see
should? Pretty sure you compiled it to java 11 for some reason
unless I'm misremembering
ok nvm. might be going insane
I remember something about 11+ as well
Hello,
This JavaScript placeholder works, but im wondering if its possible to remove the decimals? Like when 2 humans are online in the hubs then it will return 2.0
function hubCount() {
return Math.round(parseInt(%bungee_hub1%)+(%bungee_hub2%));
}
hubCount();
add a .toFixed() at the end
Np
Was in formatter
Shhhhh
ah
Hello
so
nvm
I installed vault expansion and %vault_eco_top_balance_formatted_1% doesn't work
it just says 0
and %vault_eco_top_player_1% is just empty message
is this the right channel?
the top placeholders were removed from the vault expansion. they are being moved to the essentials expansion
i have ssentials expansion too
you can read in pinned messages why but short answer is they were very bad for performance
the release doesn't have them yet. there's a development build if you check pinned messages
you can take it from there
go to plugins/PlaceholderAPI/expansions and delete the Expansion-Essentials from there
and put the one you just downloaded from pinned messages
and do a /papi reload
the available top placeholders are all listed there
in pinned messages
what placeholder did you test?
%essentials_baltop_balance_fixed_1%