#placeholder-api
1 messages · Page 150 of 1
For which extension?
I am using Economy Bank's %economybank_balance%, but for what I will use it, I need to remove the commas in the output. (while it still being a placeholder that I can use on other plugins)
I'm not sure about what you can do to that particular placeholder since it is hardcoded into the plugin with only that format, you might be able to chain placeholders? not sure
you can use the JS expansion to change the output of any placeholders but you'll need to have some JavaScript knowledge
I thought of that, and even tried downloading the "Formatter" placeholder. But, it kept on messing up with papi due to it being buggy/outdated.
what PAPI version do you use?
then go to plugins/PlaceholderAPI/expansions and delete the Formatter expansions from there
Yes. I did that.
also that expansion won't help you at all
it only adds , if you want
it can't remove them
Oh...
and the error is because you use Java 15. It only supports up to Java 8
I do not have any JavaScript knowledge unfortunately.
I can make a quick one if you want but idk if the js expansion will even work for you
just recompile the plugin with a differnent DecimalFormat, duh
I can PR a new placeholder then
my hero ❤️
in a few hours @amber compass and I'll send you a jar personally just in case the dev doesn't decide to accept my PR
Ok.
Thanks <3
ah i see i see
if you want you're free to do it yourself lmao
i don't have too much experience with papi extensions
oooh JDA fun
I mean
I can give you the code rn
1 sec
in a paste bin
oh wait I could just add it to github
lmao
no need to download, compile all that but still someone will need to compile
for Alchemies
I'll just do it in a few hours
or maybe I'll finally go take a piss and add it after lmao
lemme see what I can do
oh god this guy isn't using gralde or maven
he's using eclipse... and im not sure how to build this project
dw I'll do it later. I think. I've allready added the code
its just 3 lines
if (identifier.equals("balance")) {
Double bal = pl.getMoneyDatabaseInterface().getBalance(player);
return int(bal)
}```
maybe I should name it balance_fixed instead
I'd keep the old one and use decimalformat too instead of casting to int
also how can you build it?
yeah dw that code is broken in many ways lmao
int() bal is what I have to use and also I need to parse it to string
I just made 2 new placeholders and left the old one just renamed it
yeah I told you its broken
and I didn't yet
I just PRed it
I'll build it later
if I can
I have eclipse installed
so I'll figure it out
oh ew
similar to the epic games launcher, I have a firm policy of never allowing eclipse on my computer
that's all they have
wtf
that I played on it
egl sucks dick
morally im against them
every time a new game comes out and it's only on egl, I hate them 200% more
the problem is that it exists
Fortnite, Rocket League, Batman Arkham series
only steam should exist
the exclusivity is the problem
that’s what it has been like for at least a decade and it’s been fine
i'd be vibin if games were on both platforms and there was competititon
but when a game is only on egl, that's when I get mad
then epic came along with their shitty ass launcher and is making me go to 2 places, steam and epic, to play stupid games
unacceptable
fuck epic
woah this is in placeholderapi
lmao
ugh you know you can download the games and then launch them from steam right?
yes but I still have to give them my money and I do not support such bullshit
yes but hours aren’t tracked and u cant use steam mods, workshop, or anything
epic games launcher is so damn primitive compared to steam
it’s so bad
well Starmism I figured out you can just import the project in IJ. Now its time to figure out how to build it lmaooo
wait whattttt
and turns out I don't actually have eclipse installed
i opened it in IJ, but everything is an error since I don't have any dependencies
I think Ill have to manually gradle this bad boy
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
either that or use those things that I forgot how they are called
that i used before gradle lmao
maven? lol
might as well shade with gradle while im getting them lol
I already paste it there, what's next?
What version of PAPI, MC server, GemsEconomy, and extension?
do /papi info Vault and tell me the version
and also the version of your gemseconomy plugin
damn okay smart guy
I mean they are all there ....
k then lmao
[17:23:43 INFO]: Placeholder expansion info for: vault
Status: Registered
Author: clip
Version: 1.6.0
Requires plugin: Vault
GemsEconomy 4.9.2
ok do /papi info GemsEconomy as well please
papi info GemsEconomy
[17:24:46 INFO]: [MyCmd] This command have ADD_PERMISSIONS type
[17:24:46 INFO]: Placeholder expansion info for: gemseconomy
Status: Registered
Author: Xanium
Version: 1.6
Requires plugin: GemsEconomy
do /papi ecloud download Vault then /papi reload also make sure you have the Vault plugin installed.
[17:30:23 INFO]: Successfully downloaded expansion Vault [1.7.0] to file: Expansion-vault.jar
Make sure to type /papi reload to enable your new expansion!
[17:30:23 INFO]: [PlaceholderAPI] Fetching available expansion information...
papi reload
[17:30:28 INFO]: [MyCmd] This command have ADD_PERMISSIONS type
[17:30:28 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[17:30:28 INFO]: [PlaceholderAPI] Fetching available expansion information...
[17:30:28 INFO]: [PlaceholderAPI] Successfully registered expansion: gemseconomy
[17:30:28 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms
[17:30:28 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[17:30:28 INFO]: [PlaceholderAPI] Successfully registered expansion: server
[17:30:28 INFO]: [PlaceholderAPI] Successfully registered expansion: vault
[17:30:28 INFO]: [PlaceholderAPI] Successfully registered expansion: worldguard
[17:30:28 INFO]: 6 placeholder hooks successfully registered!
and if you do /papi info Vault now is the version 1.7.0 ?
[17:31:40 INFO]: Placeholder expansion info for: vault
Status: Registered
Author: clip
Version: 1.7.0
Requires plugin: Vault
yes it do
btw @errant iron can you check the code for me? I think I might have messed up the casting to int from double
And you still get the error?
[17:31:59 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.10.9 generated an exception while executing task 1621
java.lang.NullPointerException: null
at me.xanium.gemseconomy.vault.GEVaultHook.getBalance(GEVaultHook.java:100) ~[?:?]
at com.extendedclip.papi.expansion.vault.VaultEcoHook.getBalance(VaultEcoHook.java:223) ~[?:?]
at com.extendedclip.papi.expansion.vault.BalTopTask.run(BalTopTask.java:52) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Paper-564]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.5.jar:git-Paper-564]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Paper-564]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_281]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_281]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_281]
Yes :c
are you trying to use the %vault_eco_balance_top...% placeholder?
@hasty spear the problem is that you didn't set any default currency in GemsEconomy I think
set a default currency and you should be fine
I haved done that before, it's really strange.
if that doesn't work then you'll have to contact the developer of the plugin GemsEconomy
and show him the error
he might help some more
But i seen that there's a new placeholder version, it's not working good yet?
add me back, jar is finished!
does anyone know how to do a separator newline for the playerlist_online placeholder? trying to list all online players on separate lines.
I'm 100% sure you can use javascript to add a newline
Though where are you listing this? in chat?
no in the scoreboard on the right.
You can try AutoRankUp I think its called. I know it might sound like a rankup plugin but it actually just executes commands when requirements are met. and I think it supports PAPI placeholders as requirements
is there any placeholder for players?
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
Have you asked your question?
Hi! I get an error every time I stop my server.
https://pastebin.com/M6HuLm95
Paper 1.16.5
What EssentialsX / papi versions are you running?
latest of both
Hey, I updated the PAPI extension for "Skript" plugin. I just changed the Build Patch and that was enough to make it work. I think it will come in handy for a lot of people, so I would like the update to be officially added to eCloud. The original author of the extension is "F8te". I can send the .jar file in a private message or here.
I got an error everytime I run ANY ecloud download command the error stating that it Failed to find an expansion named: %name%
That looks like my current error https://paste.helpch.at/hatecugise.php
Still i cant fix it
Contact the developer of GemsEconomy
Unfortunantly I can't send PM on spigot :c, but why his console problem looks almost similary than my problem?
The problem steps from a method in his hook. Only he can fix it.
If you don't use the baltop placeholders, disable it in the papi config and it'll go away.
i like poop
Cool
Hello! I am trying to make a placeholder that will return a number which tells the player how many players are left in my minigames. I tryed to just return the variable, which doesn't work because it needs to return a string, and i've tryed to change it to allow me to return an int, which caused an issue with papi.
public String onRequest(OfflinePlayer player, String identifier){
// %example_placeholder1%
if(identifier.equals("playersleft")){
return "Left:";
}
// We return null if an invalid placeholder (f.e. %example_placeholder3%)
// was provided
return null;
}
#development for coding help @sand gulch
Thanks!
is there a placeholder, that will check the player's monthly and weekly statistics from other placeholders? like parseother
leaderheads might be able to do this
yeah but I don't think he wants leaderboards
can i have some help with placeholder api and holographic displays please?
You need HolographicDisplay, HolograhpicExtension and ProtocolLib for placeholders to work in HD
i have these installed but i want to use multiverse to display how many ppl are in the world
with hd
%server_online_WORLD%
just change WORLD to the world name you want to display the amount of players online inj
does the world name need to be in all caps?
/papi ecloud download Server then /papi reload
👍
My placeholder expansion doesn't work. When i do /papi parse me %playtime_time% i get an internal error.
https://pastebin.com/6VJFL6PW
what about other player placeholderS? /papi parse MasterDev %player_name% also try /papi parse me %player_time%
oh wait. I've just reread the error. xD PLAY_ONE_TICK What expansion is that playtime ? It doesn't seem to be on the ecloud but its listed on the wiki.
where did you get it from?
or does it come with the plugin?
what's your server version? The plugin might not check correctly for the server version
the {player} part is not working when i change it to my ign it is fine
its %player_name% and you have to do /papi ecloud download Player then /papi reload
Hi everyone, i have a PVP arena server, and i have an error when one player in particular (not the others) try to join the arena :
" **[AnimatedScoreboard] PlaceholderAPI caused an error while parsing line "&6&lClé(s) cosmétique(s) &r&f: &e%ultracosmetics_keys%" for ReminiCriquet. This is not an issue with AnimatedScoreboard and should instead be fixed by the maintainer of the placeholder pack you are trying to use. **"
Do you know where it could come from ?
thanks a lot for your help (can you please @ me if someone answer ? 🙂 )
@fierce narwhal Does it show any other error? And are you using MySQL or flatfile storage? I presume the error is a null pointer exception and I presume it is because that player doesn't have an entry in your storage system for some reason, since there's no null check in the code
@errant iron thank you for your answer,
I also have this in the console :
.... [16:37:05 ERROR]: Could not pass event PlayerChangedWorldEvent to UltraCosmetics v2.5.10
java.lang.NullPointerException: null
And i'm using a MySQL storage
Exactly what I thought lol. Can you look at your SQL table and see if that player has a row? Or do whatever you need to do to generate one for them since obviously they don't have one
i'll check it when i can, thank you for your help ! 🙂
please help me i use placeholder math but my command doesnt work how to fix ? (%math_[0]:[1]_{server_online_Survival}+{server_online_SurvivalTheEnd}+{server_online_SurvivalNether}%)
it should just be %math_0:_{server_online_1}+{server_online_2}% I think
hello, how I can use placeholders in my FastBord scoreboard pls?
using the api
do you have a doc to use the api pls?
Is there a placeholder for "Display users online"? When I go into vanish mode the placeholder players_online still shows me as a player.
If you use essx, they have a safe online.
%essentials_safe_online% i think
Hello, can someone tell me why the placeholder %player_name% doesn't work ? I have it in VoteParty plugin
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
wow ty
Hi. I cannot figure this out on my own. Can I easily use placeholders from other expansions in my own expansion? For example:
String Nickname = "%player_name%";
Thank you
umm you shouldn't even be using plugman in the first place
^
I use plugman for /plugman lookup lol
hey
So I am trying to add something on a scoreboard, when somebody does /heal I want a timer on the scoreboard until their next heal (when the cooldown I have set is over)
anybody know if this is possible
essentially just want their cooldown to be displayed on the scoreboard, im using scoreboard-revision by HelloItsRhien and it supports placeholderapi but I cannot find a placeholder for this sort of thing
because there doesn't exist one. Unless you have a custom heal plugin?
well you'll first of all need a plugin to add the cooldown to the heal command so you'd probably just need a fully custom /heal command that also adds a cooldown and also gives you a placeholder
I set a cooldown in the essentials config( i believe 4800 ticks), are you saying I should make a new plugin in order to create the placeholder
If so, do you have any information that could potentially help me, I am not very skilled in this department
Ohh. Dind't know essentials has a cooldown thing for /heal
well there is no placeholder to dispaly that cooldown I'm afraid
Ive seen servers with what I want before, do you think they made their own plugin
and placeholder
probably. but essentials doesn't have a placeholder for it.
Yeah, gotcha. Appreciate the info!
You could probably use #816184747024711693 / #816184744797929522 and ask someone to add 1 to the essentials expansion. I think both the plugin and the expansion are OS
Alrighty
Is PAPI3 gonna be released this year?
nah bro, the 3 stands for the year 3000
nah we discovered it then
released in the early 1000's
not a lot of minecraft servers for it back then
Maybe, Maybe not. No one knows I'm afraid.
unless some do and I don't xD Which is most likely the case
☹️
H
hello, if im in lobby servers, but i want to show how many players are in our lets say survival server, is there a placeholder for that?
anyone?
There should be yeah
what is it tho?
I have a question about the javascript expansion for Papi
Does anyone know how to use the Data.Clear() option? It's not clearing the data from the yml file.
This is the console feedback when I tried to download vault extension and reload the plugin, how do I fix this to make the vault expansion work?
[Sat, 27. Mar 2021 21:00:26 GMT ERROR] expansion class VaultExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/economy/Economy
Do you have Vault installed? If so, try to download the development version of the extension. I don't know exactly where that it but I think it exists
ok
is placeholderapi ecloud off or not working?
update: im stupid and forgot to download vault
i can't install extensions via minecraft chat, with the FTP not works again, it didn't find extensions
It's up. Try downloading manually from the site and transferring the file to your server
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
i have already do that, but it says that there isn't any extension installed
is in the extensions folder
hey the factions mcore extension is not showing on the list or working
yea im quiting
Anything in console?
Did you restart or do /papi reload?
yes
Anything in console?
lmaooooooo
failed to download expansion @errant iron
I mean when loading, it doesn't say anything about the extensions already there?
if i try to download with /papi ecloud download leaderheads it says that not find an extension with that name
Try like player
i tryed like player and says: failed to find an expansion named: LeaderHeads
Uh
there is no leaderheads expansion
That's pretty funky
its built into the plugin
there is. but you shouldn't download it
there is the expansion to download on the ecloud website
bcz now it comes with the plugin
it's the spigot plugin, papi doesn't find any extension
.
Well you don't need it
i've all the expansions for holographic displays to make a leaderboard for BedWars1058 but when i insert the placeholder in the hologram it says: "armor stand"
You got holographic extension?
yes
i have protocollib, hdextension, heplaceholders, leaderheads and papi
and bw1058
the only problem is that
i try in the localhost or in the another server i have
if it not work is the ecoud that have problems
Does anyone know what it means when a placeholder extension is orange when you check the list
means there's an update available
i tried to download it again
but its not working haha
and when i do /papi reload it only says 2 reloaded but i have 3
https://api.extendedclip.com/expansions/pronouns/ if a mod gets a minute itd be appreciated if someone could look over my plugin for verification c:
checked and verified
takes around an hour or so to show on the cloud due to caching
awesome thanks
how to display top kills per world with PAPI-placeholders or just top kills?
nothing, in a localhost server it does find Vault expansion but them can not enable
i do papi reload and them don't find the expansion
I'd use a leaderboards plugin like ajLeaderboards or LeaderHeads, that gives you much more control over how they're displayed and tracked
There are like for a player how to make it top 5 or 10 like
Yup, those plugins can track kills and such and allow you to find out who are the top 5 or 10 killers in the server
what can i do to fix that?
@errant iron it's a problem of the e-cloud or what?
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
and i've installed manually the extensions but it not find extensions
anyone know how i would edit the pinger placeholder and make the offline text be animated?
quick bump on my question
https://imgur.com/a/WgE4mP1
this keeps showing up when i register it
ok so first of all go to plugins/placeholderapi/expansions and delete all the Expansion-parkour.jar files
then do /papi reload
and then download it again.
@sleek sparrow
what do you mean by animated?
ah if you mean the text to update every few seconds then no. Well you could make a javasript placeholder yourself.
https://api.extendedclip.com/expansions/profiles/ could someone verify my plugin please if they get a chance
👍
thanks
@turbid tide still not working
@sleek sparrow,
Please respect the rules, be patient and don't ping staff members!
oop
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
@sleek sparrow send this then ^
do i dm it to you
Hi,
I want to set it so my TitleManager Scoreboard shows the place I am, by the names set in WorldGuard So, for example. If you are at spawn, it shows "Spawn", I used the placeholder %worldguard_region_name_capitalized%, but when I am not in a region, the text just dissapears, and I would want it to say something like "Wilderness", is there a way to do that?
javascript expansion
Thanks <3
i downloaded this /papi ecloud download world
%world_playerexist_<world>% this didnt work
and i tried this /papi ecloud download ListPlayers
%listplayers_in_world_<Bedrock1>% this didnt work too
im trying to type which players in world "bedrock1" to tab can someone help please? :/
and im sure the worlds name is true
Did you do /papi reload or restart the server?
yes i did >:c
What does /papi list show?
Math
Multiverse
OtherPlayers
Player
PlayerList
Server
Statics
World
i installed the listplayers its even in the file
but its not working
im just trying to type which players in world "Bedrock1" to tab, it dont have to be this hard 🤦🏻♂️
What does /papi parse me %world_playerexist_<world>% show?
it typed nothing to chat but like it send invisible character or something
but there is somebody in that world rn it still send nothing to chat
you put the correct world name, right?
yep
it called Bedrock1
B is big im sure
i even tested another world called end_pvp there are people in it, it still sending nothing to chat
ok. problem solved i did it with another plugin "%playerlist_online,world,yes,list,Bedrock1% "
This started to happen some time ago. I don't know what is causing this. When I try to use /papi ecloud download I get this error: No cloud expansions are available at this time
And placeholders are Broken.
i found an error :
[14:10:42 ERROR]: [PlaceholderAPI] expansion class VaultExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/economy/Economy
PaperMC 1.12.2
@errant iron do you know that error?
try downloading the latest one from there
also, just checking, you have Vault installed right?
Yes I already tried to use the site expansions but it didn't work.
Server version: Paper 1.8.8
Plugin version: 2.10.6
[PlaceholderAPI] expansion class VaultExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/economy/Economy
[14:24:58 INFO]: No expansions were registered!
Same error
If you ask me to update the plugin, I already tried it! When I update I get errors on my console!
do you have Vault ?
it's installed
but witk luckperms is the same problem
same error for LuckPerms?
i'll try to reinstall them
send the lp error
i'll try to reinstall them, because alright the Leaderheades expansion not work and i have the plugin installed
reinstalled
ok Luckperms and Vault work,
now i need to fix leaderheads expansion problem
it probabbly work now
i do /papi list and i have LeaderHeads, Bw1058, Luckperms and Vault green
then it should be good
i'll try on another server (Ploudos)
because leaderheads without expansion not works for leaderboard on BW1058
you don't need to download the LeaderHeads expansion, it's installed automatically if you have LeaderHeads
i don't knw the problem of the line with leaderheads
did you specifically download the leaderheads expansion?
i downloaded expansion from the ecloud website and uploaded on the PloudOS server
okay you shouldn't
isn't the latest version 2.10.9
not 2.10.6
the leaderheads expansion is for legacy support
the current version has it built in to the plugin
so having the expansion will mess things up
the problem is that in the hologram i don'have the best killer/winner but the is the write "Armor stand"
dude I'm not even sure if that version if backwards compatible to 1.8.8
remove the expansion and restart the server
i need Holographic displays, hdexpansion, leaderheads, papi, bw1058 and i'm done?
i alright have hdplaceholders
it is?
you should not have a leaderheads expansion listed in /papi list
¯_(ツ)_/¯
you should actually
i'll retry without expansion
when plugins hook into PlaceholderAPI, they appear in /papi list
i have to wait 40 min of queue
you shouldn't have any file in your expansions folder in your PlaceholderAPI folder called leaderheads-expansion or something like that
rip Aternos
alright I'll leave you to your domain lol
in the next days i'll probabbly buy an MC server of 3gb ram to help me
x)
it's PloudOS
ah, then I guess it's the same system
I got 76 minutes once
in my state (Italy) i have germany
oh did it increase? i only had to wait like 5 minutes a few months ago
sometimes less than 5
@errant iron it's enabled when i do /papi list
yeah you should ask @junior musk , not me lol
x)
does it show in /papi ecloud list installed ?
if it doesn't, then it's good
if it is shown, then you have to go in your PlaceholderAPI folder, then in the expansions folder, and delete the leaderheads expansion file
i removed expansion and leaderheads there is, but i can't make the leaderboard with the tag for BW1058
does papi not work in 1.8 for developers?
since cant seem to be able ytp use the PlaceHolderAPI method
Should work fine.
can you take a look at this then/?
That looks correct.
Sometimes IntelliJ has a mind of it's own 😛
yeah lol
depend:
- LuckPerms
- Vault
- PlaceHolderAPI``` also is this the correct way to depend papi?
since im getting an unknwondepencyexception
after doing it using [] and commas it started working
no idea what is happening with intellij/ my server lmao
PlacholderAPI
soft-depend: [Vault, LuckPerms, PlaceHolderAPI]``` this works
PlaceholderAPI
ok
avtually it may work since the placeholders aint workin
waffle both work, I just had to download and then reload it everytime I downloaded a new placeholder
the math expansion
ecloud math
%math_{placeholder_1}+{placeholder_2}%
%math_0:{placeholder_1}+{placeholder_2}%
/papi ecloud download Math /papi reload
to download the latest version
yo @sleek sparrow sorry it took so long. I completely forgot. So turns out the ecloud expansion is not needed anymore. It comes directly with the plugin now. So you have to go to plugins/PlaceholderAPI/expansions and delete Expansion-parkour.jar
then /papi reload
and you should be fine
do you have HolograhpicDisplay, HolographicExtension and ProtocolLib installed?
oh i dont have extension
hey
@vast anchor,
Please respect the rules, be patient and don't ping staff members!
ah freddy forgot a _. its %math_0:_{placeholder_1}+{placeholder_2}%
oops
@lilac oxide,
Please respect the rules, be patient and don't ping staff members!
._.
mUtE
When I do /papi ecloud download Skript and do /papi reload it doesn't download, and doesn't show up in the list.
And, i can't download it manually because i'm using minehut.
are you looking for a fix to problem one or two? :p
because I'd say moving off minehut is your best bet
problem 3 = using skript
imagine not having a plugin to install other plugins to bypass minehut smh
is that a thing? 👀
well theres your issue
fix that, and boom probably one is fixed
no, but its like 20 lines of code lol
no like, i can't download manually because of minehuts stupid file manager
its not a issue
but... how do you upload it to minehut in the first place? 👀
idk if minehut has things to prevent that tho
oop
good point
lol
yes it is lol
Skript is a scripting language, so probably because of the same thing that you can't download custom plugins there
this
skript 🥲
it did? LOL
I remember using aternos
thinking I could create the next hypixel on there
oh smart dkim
what if u make expansion to papi
then that expansion downloads plugin
to bypass minehut
lol
just get cube to verify the expansion
ez
/papi ecloud download AntiMinehutBypassSystem
exactly!
(btw this is all /s im not going to do this xD)
anyways ill bump his question
If you're on minehut then there's no way to do this. The expansion from the ecloud is broken .The only way to get the good one is manually downloading it from the link in the pinned messages
update: its in my files, its just the command is broken
the one from the ecloud is broken
that's what I'm saying
you need to download it from here: https://github.com/Altruiis/skript-expansion/releases/
Anyone know what this means? it spams console every 30 seconds
[PlaceholderAPI] Plugin PlaceholderAPI v2.10.9 generated an exception while executing task 2145
java.lang.NullPointerException: null
Any error to go along with that?
Or just an NPE with no stacktrace
Heya, I've been trying to find a few placeholders not sure if they exist. I'm looking for a placeholder that displays the display name of the last mob you hit, a placeholder that ill display the mobs current health, and a placeholder that will display the mobs max health. Any ideas where I can find these?
Could not pass event PluginDisableEvent to PlaceholderAPI v2.10.9
is this is the bug?
is there text under that?
should look like spam
okay now that is weird, it's trying to unregister itself asynchronously?
How can I make a top 5 balance in my scoreboard, when using Eco bal formatted, it doesnt work, idk why pls help
hi, sorry if im in the wrong place, im using the local time placeholders id's but it's not showing the correct time as the clocks went forward an hour recently, i've tried GMT with a +1 but it's not working?
what's your timezone code?
you can get it from here https://garygregory.wordpress.com/2013/06/18/what-are-the-java-timezone-ids/
is your country's capital not on the list?
bcz I am gmt+2 but I can use my country's code which is Europe/Bucharest And it shows the correct time
which is 21:08 now
instead of 20:08
believe me i've tried every single one, https://paste.helpch.at/idaxoxuzad they are all behind by 1 hour dues to the clocks going forward 1 hour a few days ago
but what country do you live in?
the only place that theres a Greenwich and a London, aka England
i just gave you a link showing all that i've tested and confirmed all are 1 hour behind
wait so now its 18:11 in england? Or is it 19:11
the + isn't working for some unknown reason
yes it's 7:11pm, but on my Server scorebaord with that very same placeholder, it's saying 18:11
what if you do it with /papi parse me %localtime_timezone_Europe/London%
also do /papi info LocalTime and tell me what version you got
i downloaded them all already but i'll try again
i just figured out the issue %localtime_timezone_<Europe/London>%
<>
thanks for the help
🧠
the underscores are there, discords just removed them, not figured out how you do that code place on here
it wont work with balancetop config:
Balance:
location: world, -63.500, 78.500, -86.000
lines:
- '&e%vault_eco_top_player_1% %vault_eco_top_balance_formatted_1%'
- '&e%vault_eco_top_player_2% %vault_eco_top_balance_formatted_2%'
- '&e%vault_eco_top_player_3% %vault_eco_top_balance_formatted_3%'
- '&e%vault_eco_top_player_4% %vault_eco_top_balance_formatted_4%'
- '&e%vault_eco_top_player_5% %vault_eco_top_balance_formatted_5%'
- '&e%vault_eco_top_player_6% %vault_eco_top_balance_formatted_6%'
- '&e%vault_eco_top_player_7% %vault_eco_top_balance_formatted_7%'
- '&e%vault_eco_top_player_8% %vault_eco_top_balance_formatted_8%'
- '&eYour balance is: &a$%vault_eco_balance_formatted%'```
`code`
= code
shows this https://i.imgur.com/eYPNKSm.png
ty
download an older version of Vault expansion: /papi ecloud download vault 1.5.2 /papi reload
try /papi ecloud download vault 1.5.2 /papi reload
damnit
i did that :/
and it still didn't work?
correct
it worked for the other guy who had the exact same issue literally seconds ago
did you delete the old one?
delete what?
the newer version of the vault expansion
yeah that's the new one
and delete the Vualt-Expansion.jar
ok
or whatever it is called
and then do /papi ecloud download vault 1.5.2 then /papi reload
oy @turbid tide what's the command for the versions of vault expansion
nah there definitely is
it lists out all the versions and stuff
i've seen it before
hmm. idk. /papi ecloud info vault returns the info for the latest version
ok it works
how does this guy know all these things goddamn I can't keep up
btw add {fast} at the begining of each line
or the hologram won't update
like this: - '{fast}&e%vault_eco_top_player_1% %vault_eco_top_balance_formatted_1%'
whichever you want. I usually use fast or slow I think. bcz I don't need it to update every 0.1 second
s
ok
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
Hello, I'm having difficulties using PAPI in my plugin. I've followed all the steps on this guide https://bit.ly/3czNbJ9 yet it does not recognize any methods
Did that really need a bitly link?
Hi, How i can show time with %placeholder%, to it look like this [Cant show picture]
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
https://prnt.sc/110jrxk How i can show playtime, but only Two digit
what do you mean by 2 digit?
Minutes+Second, then hours+minutes then day+hours
Simply to it show Only Two Digit in Scoreboard
got any idea to make it so when i parse players with console, it wont say anything?
Is there a placeholder for the direction a player is looking?
Thanks
hi
i wanna add a placeholders of a plugin called clansystem, but whenever i go to essentials, the part of config
format: '%clansystem_clan% &7{DISPLAYNAME}&8:&f {MESSAGE}'
and add this placeholder , it doesnt work, just break the config, am i doing something wrong, do i have to set up first the plugin to accept the placeholder, or something?
that's bcz Essentials doesn't support PlaceholderAPI. the only way to get it there is to download ChatInjector and change it to {clansystem_clan} or just switch to a chat plugin that supports placeholderapi
can anyone help me. I have dynmap plugin but the site says I have to use placeholder.
%mcmmo_level_<skillname>% doesnt work...
But order placeholders from mcmmo work
Doesn't work as in, when you do /papi parse me %mcmmo_level_<skillname>%?
Or like, in a hologram or something
Yes
I get on chat this, what i write
(No placeholder)
Every placholders with <skillname> dont work
Which skills have you tried?
do you include caps?
Ye
what version of the mcmmo placeholder extension do you have?
oh there's only one version
hmmm
I used today /papi ecloud download mcmmo
that is very weird that it doesn't work for just that placeholder
You have levels in those skills, right?
like that should return 5 or somthing?
@errant iron,
Please respect the rules, be patient and don't ping staff members!
if he's awake
yeah that's what I was thinking
I tried looking for like an enum in the code, but I couldn't find anything besides just package names
I go sleep heh
Ping me please when someone gives me answer
can i put placeholderapi.jar in the bungeecord plugins directory
no. it does not support bungee
yet
I forgot to ping you. But I looked thru the code and couldn't notice where the problem is coming from. I think your best chance is to contact the dev of the expansion. this is his github: https://github.com/broccolai. He has his website and email linked. and also this is his spigot: https://www.spigotmc.org/resources/authors/broccolai.454840/
when using local time time zone placeholder, is there a way to not have the date, only the time?
you can use the time formatting
%localtime_timezone_Europe/Bucharest_HH:mm% for example
you still get the date
ah its , not `_
%localtime_timezone_Europe/Bucharest,HH:mm%
here this one should work ^^^
thank you bud, appreciated as usual
no problem 👍
I'm trying to use the server expansion and whenever i use %server_name% it evaluates to A Minecraft Server
I'm not sure where to change that as i've changed it in my server.properties bungee config and everywhere else i can think to change it
does anyone here know where i would be able to change the server name so that placeholder works properly
go to plugins/PlaceholderAPI/config.yml there should be an option called server.name
pog ok
Hi i downloaded mcmmo placeholder via command /papi ecloud download mcmmo and then i did /papi reload, but it returns No expansions were registered!
any errors when running the command?
when i try to use the placeholders via command /papi parse me %mcmmo_power_level% it just returns %mcmmo_power_level%
okay so you might need to download the mcmmo expansion manaully
oh there is a error
[PlaceholderAPI] Failed to load placeholder expansion from class: pw.valaria.placeholders.mcmmo.bridge.McMMOPlaceholderExpansion
oh
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
Does anyone here have experience using the token enchant java script for things like stores with DeluxeMenus?
What version of McMMO are you using?
i updated it last week
okay, which version would that be?
i did not install mcmmo on that server
sorry
wow
that is my fault for wasting your time
no worries
ill give someone a cookie if they can help me with my issue
there is an issue behind, and that being that for some reason (and I've followed all of the instructions) the shop isn't working and I'm not too entirely sure why, in fact it was actually working a few days ago and sorta just stopped working overnight? I haven't updated any of the plugins or anything, so I'm unsure as to why the token shop stopped working
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
paste your menu here ^
and what about isn't working? Does it load? Can you open it? Can you buy?
It loads, but you can't buy anything with it, and I'm extremely confused on that bit because just about a day or two ago when I first set it up it was working perfectly
ok first of all /papi parse me %javascript_tokenenchant_token%
what does it return?
there's your problem
it doesn't return a fixed number
who made that %javascript_tokenenchant_token% placeholder?
Vk
I simply followed the instructions from this: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#tokenenchant-token-value
can you do /papi parse me %tokenenchant_token_long% ?
and tell me exactly what it says?
function tokenenchant_token() {
return "%tokenenchant_token_num%".replace(/,/g, '');
}
tokenenchant_token();
Im going to try and replace _num with %tokenenchant_token%
214094571
then use that. don't use the javascript one
you don't have any reasons to
the javascript probably was made before this one was added
I changed the js tokenenchant_token to
function tokenenchant_token() { return "%tokenenchant_token_long%".replace(/,/g, ''); } tokenenchant_token(); and now it's working as intended
yeah
which is really confusing to me because a few days ago when I first set it up it was working with the original one
but you can just use %tokenenchant_token_long%
you don't have to use the javascript one
that's just more useless operations
gotcha, thanks for taking a loot into that
which placeholder and where are u using it
%player_name% placeholderAPI 2.10.9
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
execute those commands ^
thx
is possible make bouht permissions?
what do you mean/
requirements:
example_3:
permission: deluxemenus.vip
type: has money
amount: 40000
deny_commands:
only for this one item
requirements:
example_3:
type: has permission
permission: deluxemenus.vip
example_4:
type: has money
amount: 40000
deny_commands:```
you can have multiple requirements per item
hey guys
is there any bungee_slots placeholder?
Is it possible to do math inside of a placeholder? so in deluxe menus i would have a price displayed as for instance 250 but im useing auto sell witch has multipliers would there be a placeholder than can times that 250 value by say 2
i know in papi there is %math_<math expression>%
Oh gosh I'm just now seeing this
It has this error message, I'm not sure whether it's soley a GemsEconomy thing or something with PAPI. It also has a different task number now
https://pastebin.com/y8pP5Scd
Hi guys, there is a placeholder that gets the amount of player in a specified gamemode?
I asked the same question a few months ago and you told me you were working on it
how to use bedwars1058 top placeholders?
by that you mean how many slots are in total in a server? If that's what you mean then no. If you mean how many players are online on a server then you can use %bungee_<server-name>%. You need to execute these commands first: /papi ecloud download Bungee then /papi reload
yeah you can use that math expansin. Here's an example: %math_0:_250*{autosell_total_multiplier}%.
yeah the bungee expansion. I told the guy above how to use it. 2 messages above.
This error has been reported before but it really comes from the gems expansion/plugin. I think it is because you don't have a default economy. If you do and it still does that then you'll have to contact the developer of the plugin
You install the Bedwars1058 plugin and PlaceholderAPI. Here's a list of all its placeholders: https://gitlab.com/andrei1058/BedWars1058/-/wikis/papi-hook
if the lore of an item has this, &1 and no text then can checkitem find &1 ?
I think the best way to check is to try it. but I don't think it will
[15:52:11 WARN]: [PlaceholderAPI] Loaded class javassist.d from LuckPerms v5.3.3 which is not a depend, softdepend or loadbefore of this plugin.
[15:52:11 INFO]: [PlaceholderAPI] Fetching available expansion information...
What with this?
That's just a default spigot warning. Nothing you can do about it. It just lets you know that it loaded a class from another plugin.
you can just ignore
how do i makea list thing wihth tis
what's "this"?
well im under the placeholder api thing so ?
maybe PLaceholder API ?
how do i make a monet tab thing
like a top money list?
no likea money thing so it says how much money the player has
so say i have 2000$ and a friend has 1000 it will say i have 1000$ on my screen instead of using commands to checkl
I have a problem with the vault placeholders
%vault_rank% in deluxehub plugin in scoreboard not working
/papi parse me %vault_Rank% what does it say?
its Still send %vault_Rank%
do you have the Vault plugin installed?
ye
can you do /papi ecloud list installed then
and see if Vault is there?
also /papi dump if its not
and give the link here
It shows that there is
Is it related to the server on bungeecord?
so how do i set up the placeholder for money?
?
/papi ecloud download Vault then /papi reload. You also need to have the Vault plugin installed (https://www.spigotmc.org/resources/vault.34315/) then you jsut use %vault_eco_balance_fixed%
i have vault
what do you mean by the server on bungee?
ok then just execute those commands. and use the placeholder I gave you there.
all placeholders of balance work but ranks no
i did use them
nothing happened lol
you said you use LuckPerms right? do /papi ecloud download LuckPerms then /papi reload
and use %luckperms_rank%
but what rank plugin do you use?
but Vault is not a permission plugin tho....
you need LuckPerms or Pex or GroupManager
Vault is just a bridge
to make developers life easier
I want to send you a picture
you give me block
no lmao. I think you blocked your DMs
my DMs are always open
its yours that are not
you can just use imgur
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
and send the photo here
but you said you have no rank plugin.. That's why it doesn't work
read this
can you do /papi dump please?
I did
ok
no you didn't send it. can't find it anywhere
when you do /papi dump you should get a link
in chat
ok so I took a look at the dump and according to it you don't have any Permissions plugin installed
i use luckperms bungeecord
well there's your problem... PAPI doesn't support bungee. you need LP on your backend servers as well
thanks
Please respect the rules, be patient and don't ping staff members!
Ok so why is my alt getting 0 from %math_0:_25.50*{autosell_total_multiplier}%
and my account with all permission gets $38
I see that makes a lot of sense xD
try %math_0:_25.50*({autosell_total_multiplier}+1)%
then
it shows 26
oh wait
what i could do is just do 25 and at the end make it +.5
that returns the correct value
you can just change that 2:
but then that conflicts with the multiplier i think
to 5 for example
and it will return a max of 5 decimals
if you want more correct values
so my multiplier of 1.5 returns 63.50 if i use the placeholder above
it should return 38.25
ugh but multipliers start from 0
but im thinking of making all players use a multiplier of 1
or .50
so i made a default multiplier thats 1 and its working just fine now
thanks for the help
👍
Hi is there something like a placeholder that returns if specified player is online or offline?
%parseother_{name}_{player_is_online}%
and the results are offlne or online yeah?
they're yes or no
You can use the javascript expansion: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
If I am using this papi %mmocore_guild_tag% in essentials chat, which uses {}. What does the conversion format look like?
There is no conversion. EssentialsChat doesn't support PlaceholderAPI.
But you can install ChatInjector (plugin) and then you'll be able to use them by replacing %% to {}
so im strugglieng with the placeholder again lol
basically like this: {mmocore_guild_tag}
so the math placeholder shows $15 a block and im selling the one block for $30
%math_0:_35.95*{autosell_total_multiplier}%
or is it the same one I gave above?
@turbid tide thanks ill try that!
I think that the multiplier doesn't count the default one
bcz no multiplier can be 0
its 1
o ok so i wonder how it could be fixed
add the +1 back I guess
kk
well gtg now. Someone else will probably try and help if I'm not around.
kk
i think the plus one will fix it
that +1 made it more acurate
thanks for the help
How do I know if an expansion placeholder is safe for my computer?
I found it on ecloud but I'm afraid to download it
Usually the ecloud expansions are checked before they can be uploaded and updated. At least I think so. I'm not 100% sure.
also a lot of them are Open Source so you can check the code yourself
Ok thanks!
does somone know why my staff facilities doesn't work
how do i use the %localtime_time_<SimpleDateFormat>%
I did %localtime_time_yyyy/MM/dd%
i feel so dumb
Hi I have hungergames and all the other maps are in different worlds, can I combine the players from those worlds so it says on a npc how many players are online on the top of there name
Hello
sup bro
um
well
I've got a basic javascript placeholder going
literally ive done nothing just copied code from the github community projects lol
but I get a strange error in my console when i attempt to eval the placeholder
I searched for "TypeError: invokeMember" in this channel
and realized I have to change my JS engine from nashorn to graal
but the error still persists!
this
tbh i probably just have to update papi lol
nope
still broken :(
[07:35:47 WARN]: javax.script.ScriptException: org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (getMotd) on JavaObject[CraftServer{serverName=Paper,serverVersion=git-Paper-576,minecraftVersion=1.16.5} (org.bukkit.craftbukkit.v1_16_R3.CraftServer)] failed due to: Unknown identifier: getMotd
[07:35:47 WARN]: at org.graalvm.js.scriptengine/com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:381)
[07:35:47 WARN]: at org.graalvm.js.scriptengine/com.oracle.truffle.js.scriptengine.GraalJSScriptEngine.eval(GraalJSScriptEngine.java:356)
[07:35:47 WARN]: at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
[07:35:47 WARN]: at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:116)
[07:35:47 WARN]: at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onPlaceholderRequest(JavascriptExpansion.java:169)
[07:35:47 WARN]: at me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:31)
[07:35:47 WARN]: at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:156)
[07:35:47 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:69)
[07:35:47 WARN]: at me.clip.placeholderapi.commands.impl.local.CommandParse.evaluateParseSingular(CommandParse.java:115)
[07:35:47 WARN]: at me.clip.placeholderapi.commands.impl.local.CommandParse.evaluate(CommandParse.java:57)
..etc...r.blahblahblah```
I may just be using BukkitServer wrong
however im not lmao
..It's literally using fucking graal.js, how is this not..working??
Sounds like getMotd isn't a method for the JS bindings
wdym?
I don't understand how
failed due to: Unknown identifier: getMotd
yes but
Obviously it doesn't know what getMotd is
In the advanced section of javascript on PAPI's github
It claims BukkitServer represents the craft server bukkit object or whatever
it's literally pointing to the bukkit object, which means I should have access to the bukkit methods
Not if they weren't rewritten in JS
well
var server = BukkitServer;
function getMotd() {
var motd = server.getMotd();
return motd;
}
getMotd();```
"Just like the player, the server is also passed along to the placeholder script when called. The server may be accessed using BukkitServer. After receiving, you can access all of the server methods included in the Spigot API.
Here is an example that will display the Server's MOTD through a placeholder."
"After receiving, you can access all of the server methods included in the Spigot API."
this is literally the default script
what version was that for?