#placeholder-api
1 messages ยท Page 161 of 1
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
can you do /papi parse me %player_name% and tell me what it says?
My name
well then how does it not work?
on scoreboard or chest it doesnt show the placeholder values
ugh.
does your scoreboard plugin support PlaceholderAPI?
they don't just work everywhere, every plugin needs to implement support
yes it's scoreboard revision
and it worked perfectly just 1 week ago (i changed nothing) i started my server and they dont work anymore
so strange
can you add %player_name% to the scoreboard and see if that one works or not
well then its the scoreboard's fault. I can't tell what its wrong
but the placeholder clearly works
but also in chest gui the plachoder doesnt work
2 different plugins
and i dont changed anything not even updated any plugin
and it worked fine for months
ugh idk what to tell you man. if the placeholder works in /papi parse command it clearly works
i also reinstalled all the plugins but it still dont work
the plugin you're trying to parse it in, doesn't parse correctly
btw just so u know, according to the logs, your luckperms plugin is not working, so that might be affecting some stuff
i'll take a look at it
im not using any. im just using luckperms formatting
also there's a big error from SCoreboard Revision in there as well, tho I don't think that will really affect the plugin
is there any way to show prestiges and ranks as prefix in chat?
im using UltraPrisonCore as plugin
for ranks and prestiges
im using luckperms chat format
it's also not working with chestcommands, holographicDisplay plugins
HolographicDisplays doesn't support PlaceholderAPI tho
if you want to use placeholders in HolographicDisplay
you have to download: HolographicDIsplay, HolographicExtension and ProtocolLib
not just HolographicDisplay
yeah. so the placeholders works as I said
if they work in /papi parse they 100% work
hey, so i got a plugin called HubBasics and it has support for PAPI, i'vr tried to use the %player_name% placeholder to get the name of the player WITH the rank and it does not recognize it. help.
what do you mean by: you got the name of the player with the rank?
I'm a bit confused
@turbid tide It prints this in chat: %armor_material_helmet%
have you downloaded the Armor expansion?
i have pex installed and have set up groups with prefixes, and i want to show that prefix and the name in the plugin message
ah and %player_name% only shows the name?
it doesnt work at all
can you try and restart the server and send a startup log?
have you downloaded the player expansion? /papi ecloud download Player then /papi reload
and for the rank you need the Vault expansion
and you need the Vault plugin installed
well i have that, gonna test the commands
Yes, but I just ran papi ecloud list installed and it says Armor is green and installed
[PlaceholderAPI]: Placeholder expansion registration initializing... [PlaceholderAPI]: Successfully registered expansion: armor [PlaceholderAPI]: Successfully registered expansion: checkitem [PlaceholderAPI]: Successfully registered expansion: server
turns out it worked, but now how do i show the pex prefix as well? another placeholder?
@turbid tide After restart it is returning my diamond helmet. I'll see if it works with the npc stuff now
%vault_prefix% I believe
oh interesting. alr
thx, gonna test
๐
thanks so much @turbid tide now it works and i can use the placeholders in other plugins.
๐
@turbid tide Well it's still not working haha. Parse returns diamond helmet, but when i add %armor_material_helmet% == minecraft:diamond_helmet to the requirements it still gives the other text.
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.
oh yeah
your check is wrong
that's the problem
bcz DIAMOND_HELMET will never be equal to minecraft:diamond_helmet
you need to do instead %armor_material_helmet% == DIAMOND_HELMET
it doesn't compare the materials, it compares the strings
Gotcha I'll try that right now
Heyyy there we go. It works! Thanks a lot for your help!
no problem ๐
any1 have a good scoreboard plugin since my scoreboard revision isn't working proprerly
you need it free or can you afford it paid?
depends how much it costs i dont wanna pay too much
well the best one out there is probably KiteBoard
can u suggest both
but its paid
but if you want to go best that's freet
free*
then probably QuickBoard
thx
๐
placeholderapi 1.17 ?
When is placeholderAPI updating to 1.17?
idk what im looking at? in #852317810394267708
read please
howdy howdy
alright so i need help with something
I am making a minecraft java plugin and i want to use placeholderapi for things such as getting a players ping
PlaceholderAPI.setPlaceholders(cmi_user_ping)
would this be right?
no not really
oh
PlaceholderAPI.setPlaceholders(Player player, String string)
so what would i do if I wanted to call the placeholder cmi_user_ping?
would string just be cmi_user_ping?
wait
actually would it be
String pingText = "&7[&6Show&7] >> %player_name% has %cmi_user_ping% ping!";
Bukkit.broadcastMessage(Utils.chat(PlaceholderAPI.setPlaceholders(CommandSender, pingText);
would this be it?
yeah
alright
i'm gonna see if that works
would i be able to do sender.getDisplayName() so that it gets the display name of the sender?
also am i asking this in the right chat?
well I don't see why you need the display name
Placeholderapi will handle that
bcz of %player_name%
oh duh
this is kinda old but for free ones you might also wanna check out TitleManager since quickboard support seems to be gone, idk if its changed
I decided for KiteBoard but thanks for the tip
np ๐
Heyo, I have kiteboard and for its animation colours I can use a hex code, I want to use a placeholder I have but it always outputs it as the actual hex code as in '#FFFFFF' , it seems to use formatting similar to HTML: <color> color=#FFFFFF </color>' , is there a way to format a hex code into a placeholder so that it is treated like a hex code in the plugin?
If your placeholder returns the hex color, cant you use <color> color=%placeholder% </color>? @formal vessel
What does this error mean and how do I update/fix it?
[10:47:08 INFO]: Successfully downloaded updates, registering new versions.
[10:47:08 ERROR]: [PlaceholderAPI] Failed to load placeholder expansion from class: com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion
java.lang.reflect.InvocationTargetException: null
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:336) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:138) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?]
at me.clip.placeholderapi.commands.impl.cloud.CommandECloudUpdate.lambda$evaluate$4(CommandECloudUpdate.java:110) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[server.jar:git-Paper-745]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[server.jar:git-Paper-745]
at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1427) ~[server.jar:git-Paper-745]
at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:git-Paper-745]
at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1342) ~[server.jar:git-Paper-745]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1130) ~[server.jar:git-Paper-745]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[server.jar:git-Paper-745]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.IllegalArgumentException: This registration already exists
at org.bukkit.plugin.messaging.StandardMessenger.addToIncoming(StandardMessenger.java:94) ~[server.jar:git-Paper-745]
at org.bukkit.plugin.messaging.StandardMessenger.registerIncomingPluginChannel(StandardMessenger.java:226) ~[server.jar:git-Paper-745]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.<init>(BungeeCordExpansion.java:62) ~[?:?]
... 24 more
[10:47:08 INFO]: Registered expansions:```
Try restarting
Server?
yes
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.
oooh
try removing the bungee expansion from your folder
and then downloading it from the ecloud again
and if that doesn't work, remove it again and download it from the website yourself and put it in there
What's the website?
Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/economy/Economy```
Also getting this error
You need vault
The message "expansion class .. is outdated" is misleading in this case
Thanks!
The placeholder still doesn't show any number and trying to update gives the same error
Even after installing the expansions from the website and doing a restart for installing vault
How do i fix this, because now the placeholder show 0 instead of the online players
I have tried this 2 times, but still no luck
can you do /papi dump and send the generated link here?
also restart your server and send over the full startup log.
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.
Successfully posted dump: https://paste.helpch.at/siwejiyeqa
latest startup log
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
and to make sure I got this right, your bungee placeholder returns 0 every time?
oh. what is your current problem rn then?
It still won't update
try doing /papi ecloud download Bungee 2.0 then /papi reload
OH WAIT
@proper acorn
PAPI-Expansion-Bungee_HEbAVYe.jar
Expansion-bungee.jar```
you have 2 of them
why?
go to plugins/PlaceholderAPI/expansions
and delete them both
then do the commands
I gave above
can you do /papi dump again please?
And now have 0 players
Successfully posted dump: https://paste.helpch.at/xetaraseha
Also bungee?
I will wait 2 minutes to let the placeholder update on the bot
It now does show the players online
Thanks!
Using the Javascript expansion, how could I insert an integer into a placeholder?
var placeholder = "%uecon_balancetop_Dollar_name_" + integer + "%";
if you want to add the integer and then parse the placeholder, you have to use PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%"+"uecon_balancetop_Dollar_name_" + integer + "%")
I think you may need to report this to ChestCommands' dev
the dev no longer updates chestcommands
then idk
I got a new error:
TypeError: Cannot read property 'setPlaceholders' of undefined
Here's the full error if that helps:
[12:26:41 WARN]: Caused by: undefined:5: TypeError: Cannot read property 'setPlaceholders' of undefined
[12:26:41 WARN]: var placeholder = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%"+"uecon_balancetop_Dollar_name_" + integer + "%");
[12:26:41 WARN]: ^
[12:26:41 WARN]: TypeError: Cannot read property 'setPlaceholders' of undefined
[12:26:41 WARN]: at isTopDollar (<anonymous>:5:43)
[12:26:41 WARN]: at <anonymous>:17:1
Not really sure what PlaceholderAPI.static is.
that's what I used in the past to parse placeholders in my scripts ๐คท
and it worked
If I take that part out I get this:
try with PlaceholderAPI.setPlaceholders
TypeError: PlaceholderAPI.setPlaceholders is not a function
then idk
if the static one didn't work, I don't know what's the problem
it always worked for me
Well according to the wiki that should work
Getting errors with Javascript expansion (1.17)
https://mclo.gs/sKbFCmw
is PAPI usable for 1.17 already?
Mhmm
Do you have Vault on the server...?
JS Expansion still not working for me
Failed to evaluate requested script.
[22:24:08 WARN]: com.extendedclip.papi.expansion.javascript.evaluator.EvaluatorException: Failed to evaluate requested script.
[22:24:08 WARN]: at com.extendedclip.papi.expansion.javascript.evaluator.J2V8ScriptEvaluator.execute(J2V8ScriptEvaluator.java:34)
[22:24:08 WARN]: at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:121)
[22:24:08 WARN]: at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onRequest(JavascriptExpansion.java:141)
...
[22:24:08 WARN]: Caused by: java.lang.IllegalStateException: J2V8 native library not loaded (j2v8-linux-x86_64/j2v8-alpine-linux-x86_64)
[```
Yeah we saw this bug come up this morning. I know @thorn thunder is working on a fix for it but I believe he is asleep right now.
Yes I'm doing that but it doesn't actually colour the object, it adds the hex code character-for-character to the display as plain text
Please respect the rules, be patient and don't ping staff members!
sorry, saw there was a mention way up and replied via the reply function automatically, I should have thought it through. Apologies.
np
download the right ones from #852317810394267708
I took the javascript and papi jars
I would post a picture but that doesn't seem allowed in this discord
You'll want to hold off on the JS one. We had some new errors come in this morning.
Hoping to have a better version out on Sunday or sooner.
ight ight
So what's the problem with the other placeholders then?
But everything else, from deluxetags, to advancedafk, to jobs, and beyond
all of them just display the placeholder name and nothing else
example in #showcase
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.
anyways, do a /papi dump and send it here
Still bungee_total show 0 players when there are players online
try doing /papi parse me %<one of the not working placeholders%
and put one of the not working placeholders there obviously
My bungee placeholder shows 0 instead of the actual players online
I booted without playtimes and still having that issue
oh
it's stealing every placeholder and erroring
manually removed their jars from the expansions folders and the issue still persists
new error?
[19:30:21 INFO]: Matt1122 issued server command: /pl
[19:30:48 INFO]: Matt1122 issued server command: /papi parse me %deluxetags_tag%%
nope it comes out clean
and yet none of them show properly
why do you have two percent signes
[19:31:45 INFO]: Matt1122 issued server command: /papi parse me %deluxetags_tag%
[19:32:13 INFO]: Matt1122 issued server command: /papi parse me %deluxetags_tag%
oops autocomplete
/papi dump again
hmm okay
this is a very interesting issue
I would try making a fresh Purpur instance with no plugins, then just adding papi and an expansion to see if it works
it might be Purpur
I can boot with paper
yeah try that
then if it still doesn't work, start a fresh server and add plugins one by one until it breaks
u need help
oof dude
hey each 1 of those 140 is special
Don't blame purpur ;-; we need to brainwash convince more people
I might have just found them
Okay no
I think this is bad
It's not any specific plugin, but whenever the plugin list has more than 99 entries it gets borked
If anyone has a test server with paper 1.17 and a chunky plugin list check if papi is working correctly ๐ฉ
I saw someone make a weird report the other day in Paper about issues with 100 plugins.
Easy fix, don't use so many plugins.
Expected behavior Plugins should respect the softdepends delcared in: https://github.com/Advanced-Kind-MC/ShrineCraft Observed/Actual behavior Plugin no longer loads after Custom Items: https://bin...
that was me
e_e
A lot of servers see themselves running 100+ setups
Specially when it comes to smps
Thought the whole point of SMP was to be as close to Vanilla as possible.
Not a sizeable minority but an important one
Whelp you'll just have to wait and see what Paper says.
Survival Multiplayer =/= vanilla
Yeah ig so
this is gonna be pain
Smh
How is a smp more special that a public server?
wut
Why would you have 100+ plugins especially on a smp
Nothing related to papi, just curious
We like to give neat spin to most things
Improving everything your standard server has
A good 40% of plugins are just dependencies tho
Lile our mythic setup requites 5 plugins including mm
Goldencrates requires 1 jar
Jobs and bottled xp now use 1 common library
Etc etc
hey @austere hawk does spigot have the library thing too for your plugin.yml
cause that could be really cool
it does yeah
only for Maven Central tho?
imagine
like slimjar, but the server does it for you and can share dependencies
now that's nice
eh
i wouldn't really rely on that
i'm not sure how well it handles things like multiple versions and stuff like that
if it does at all lol
i mean if it's anything like the bungeecord one, it'll put them in separate version folders and relocate them for you
Exposing classes from one classloader onto others can be really weird
Especially if the package names dont match
it relocates it?
i don't think it does
also why are we in #placeholder-api lmao
Then you get behaviour thats not even present in the ClassLoader source
i mean I presume so, the classpath changes
are you sure about the relocation?
Its loaded into the PluginClassLoader of your plugin star
Oh it does that?
uh
yeah i mean that's how maven repos work
Try printing the class
I'm fairly certain it handles no relocation whatsoever
then how does it do multiple versions?
Do you see the jar?
lol
Its loaded into different classloaders
Open up the jar
man I need to read up on how classloaders work
or how java works
or how anything works
oh yea no relocation
Would you like to be a proud slimjar contributor then?
how could i contribute if I don't even know how a classloader works
Yea?
this library loader thing, it loads the jar for every plugin that uses it, right?
You learn while trying ๐คท
Yea I think, thats what I read from one of the issues
Each plugin has a separate PluginClassLoader
that sounds memory consuming lmao
Probably not much
and probably worth it for the effort it saves
You get the same effect as what happens when the plugins relocate them
hm fair
i think there's some required reading before you even get there
You can ask most issues if you face anything here
Also, we should probably move to #dev-general
oh yea
Can anyone tell me whats wrong with my javascript
var answer;
if('%supervanish_isvanished%' == "No") {
answer = "&7"
} else {
answer = "&7&oVanished"
}
not sure why it doesnt return anything when i use /papi bcparse me %javascript_vanish%
you have to define a function then call it
function vanish() {
if('%supervanish_isvanished%' == "No") {
return "&7"
} else {
return "&7&oVanished"
}
}
vanish();
ok gotcha, must of been looking at old code or somthing
ok thanks
Just make sure the last statement contains what you want to return
havent quite had time to learn it yet so ive just been trying to get by with other peoples examples. guess ill have to learn it sooner or later anyway, thanks!
var answer;
if('%supervanish_isvanished%' == "No") {
answer = "&7"
} else {
answer = "&7&oVanished"
}
answer
This should work as well
oh that makes sense
so wait why are all the examples functions yugi
function hp() {
return Math.round(parseInt('%player_health%') * 100) / 100;
}
hp();```
surely that could be a one-liner
didnt seem to work
trying stars
Not sure
ok might be a me issue because neither are working
lol
Are you sure you registered it in the config?
what java version
16
nashorn doesn't exist anymore
Are you on a version from #852317810394267708 ?
yea you got this one? #852317810394267708 message
no latest jenkins dev build
featherboard needed it
"Changed the PAPI dependency from 2.10.9 to 2.10.10-DEV-123. Note that 2.10.10 is currently only available on the HelpChat discord under the channel #852317810394267708 or https://ci.extendedclip.com/job/PlaceholderAPI/"
should i grab the one from the discord?
Sure, but I dont recommend using it on your production server yet.
There another update coming in soon that should be much more stable
he's talking about the PAPI version in that one
ah
we're talking about the JS expansion version
Then it should be fine, again, I was talking about js-expansion version
i just did /papi ecloud download javascript
yeah nope
ops
Its not on ecloud yet
you need the one from #852317810394267708
as nashorn no longer exists in new java land
ahh
honestly can we just get a kts expansion
do i need to delete the old javascript files too?
We already have one
we do?!?
Sx made it when he was here
why do we still do JS expansion
kotlin is surely a lot better and easier and more type safe than js in like every way
nice nice
shouldve been paying attention lol
hmmm
but imagine if we were a primary reason to use kts
we could totally set the example
๐คท
plus there would probably be way less problems than what you're having right now with the JS expansion
And then everyone using the js-expansion would have to rewrite all of them to kts
for free!
Still not ideal for the 3,000 servers using it.
I mean we support both for a bit
deprecation, not removal
send a few messages, give em a few years
awww no sed
Oh, speaking of which, seems the kotlin expansion needs to be updated too, if someone uses that ig
damn why you gotta say it like that ๐ฆ
we should defo encourage it more at least for new projects
mmk mmk
That must've never been deployed. There are 0 servers using that.
oh rip
wow what
well maybe I'll be the first
because kotlin is a significantly better language than javascript
ayy
We can probably integrate it with the js-expansion and rename it to script-expansion tbh
Hopefully better adoption then
yes!
yes!
instead of engine choice, language choice
then the transition becomes much easier
I think we need a working js expansion to begin with.
I mean they're getting there
Almost done
Haha. I'll be around sometime this weekend to test stuff.
Or distribute jars to test that is
Alrighty, awesome
yea I'd love to help test
lit
more fun than talking about my dreams for kotlin ๐ฅฒ
๐ฅฒ
I gave you perms to upload jars in this channel Yugi so you can have people test if I'm not around.
oh alrighty, thanks glare
What is wrong with my bungee expansion?
[07:19:08 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[07:19:08 INFO]: [PlaceholderAPI] Fetching available expansion information...
[07:19:08 INFO]: [PlaceholderAPI] Successfully registered expansion: bungee
[07:19:08 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms
[07:19:08 INFO]: [PlaceholderAPI] Successfully registered expansion: server
[07:19:08 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[07:19:08 INFO]: [PlaceholderAPI] Successfully registered expansion: vault
[07:19:08 INFO]: 5 placeholder hooks successfully registered!
Papi list
[07:19:11 INFO]: A total of 8 placeholder hook(s) are active:
bungee, chatcontrolred, discordsrv, luckperms, player, server, tab, vault
Papi info bungee_total
[07:19:37 INFO]: There is no expansion loaded with the identifier: bungee_total ```
you'd do /papi info bungee
[07:21:54 INFO]: Placeholder expansion info for: bungee
Status: Registered
Author: clip
Version: 1.0.1
But the actual bungee_total placeholder doesnโt work
/papi info is not how you test placeholders
/papi parse me %bungee_total%
that's how you'd test the placeholder
which version are you on
1.16
hmm
Paper 1.16 to be exact
hmm the check interval is 30
and I'm not sure if that's seconds or minutes
but maybe try it now?
I will check
Check interval is 30
It still returned 0 when there are players online
The other bot that uses %online% does show the correct players online on this server
Do you know who does?
do you also have the bungee expansion on the other server?
if not, try downloading it
On the bungee itself?
if you did the server name version, does it work?
No
And already installed on the other one
it is possible there are issues...
This is the other one
On both servers?
Alright
After waiting it for to update
It still shows 0 and returns 0
But on the other server the correct players are shown
The expansion isnโt active because it is not in the list. It is active on the other server
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
And therefore it returns the correct players
But not on the one I want. On that one the bungee expansion isnโt active but just installed, did /papi reload, and returns 0
Or am I wrong?
I have found the problem
The expansion only updates when there is a player online. But in the hub there arenโt all the time players. So is there a way I can let it update even when there are no players
How can I let it update even when there is no one online on the server?
Iโm using waterfall but that shouldnโt be a problem right? Because the plugin returns it when somebody is online
question
i am using the placeholder %server_name%
and is getting server description
instead reading the server name from server.proprietes
there is no server name in server.properties?
Can anyone help me?
what server version are you on
cause mine looks nothing like that
huh I'm on 1.17 and that's not there
so maybe the Server expansion doesn't use it cause it's not present for all versions
is here
I dunno man, I didn't write the server expansion
I'm sure it uses something that's available for every version though
wait are you on a bedrock server
only bedrock have it
yhea
nope java
then why do you have it
because is 1.12.2
So we just ignore me another timeโฆ.
I do not know how to help you
But does somebody of the support team does or do you know where I should ask the question too?
If someone knows, they'll answer
Is the creator of the bungee expansion in this discord?
Hi I am using Bedwars1058
I want to show player stats but its not showing, am I doing something wrong?
location: lobby, 3.706, 71.000, -14.470
lines:
- '&6=== &cYour Bedwars&e Stats &6==='
- '&6Your Level &7- &e %bw1058_player_level%'
- '&6Wins &7- &e %bw1058_stats_wins%'
- '&6Final kills &7- &e %bw1058_stats_finalkills%'
this is the config in holographic display
Does RelCon not work in Java 16?
idk. send your startup log.
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.
the link doesn't seem to load for me. Is it a huge file or is it just my browser? xD
250kb
wait
use /papi parserel
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Commands#papi-parserel
pastebin flags it as "offensive" lmao
i see, i think this is my answer
oh the link loads for you?
thanks
weird
use helpchat's one next time. I don't think it filters anything xD
but yeah if parserel works then
I guess it works
sharex allows me to upload a paste by a keyboard shortcut so its what i sent first
kinda cool feature actually
ye
@junior musk you're the TAB god ^^ xD
well, the message is pretty clear
well because
it will parse for the first one
and show it as the second one sees it
I Think
bcz you will always see it the same. there's no need for relational there
what do i put in {message}
the placeholder
it's because relationnal placeholders require 2 players, otherwise they would be normal placeholders
well yeah, it works in papi parserel
well technically, it parses for both
since you're a tab god, is there a way to do the same thing with tab config
i'm just trying to make it so that mods can see what client
can you send a screen of the output of the parserel cmd in the chat?
/papi parserel simonee simonee %rel_relcon_viewer_group.moderator_{vulcan_client_brand}_&f%
the output
do /tab debug and send a screenshot of the output
I'll try it
seems like it's because of the color code
try with %rel_relcon_viewer_group.moderator_{vulcan_client_brand}%
works, ty! how can i make it blank for people without the perm lmao
๐ค
can you try with ยงf ?
%rel_relcon_viewer_group.moderator_{vulcan_client_brand}_ยงf%
I think that worked when I tried
idk why
but at least it worekd x)
Where can I find 1.23.0
T he latest I can find is 1.10.9
The plugin interactive chat needs 1.23.0 to work on 1.17
it works with %rel_relcon_viewer_group.moderator_{vulcan_client_brand}_%
Is there a way to check for a players prefix like doing something ```java
String playerRank = PlaceholderAPI.setBracketPlaceholders(p.getPlayer().getPlayer(), "{luckperms_prefix}");
if (playerRank.equalsIgnoreCase("&2rank")) {
//stuff
}```
i have another issue, though, it displays my client, not theirs. i tried %rel_relcon_player_group.moderator_{parseother_{%player%}_{vulcan_client_brand}}_% on TAB, which didn't work. is this a Vulcan issue?
both player and viewer didn't work
no I think it's just the placeholder parsing the vulcan_client_brand as the viewer
how could i achieve the purpose that i'm trying to go for
I don't know
๐ค i'll have to rack my brain more then, thanks
latest version is 2.10.9
you're sure it's the 1.23.0 version of PlaceholderAPI and not another plugin?
I made a mistake silly mr
@junior musk Do you know how to fix my issue?
their rank prefix
ugh why not use the luckperms api?
more work
also you could just check for the permission
pretty sure every group in luckperms gets a permission
like group.name
so group.administrator for administrator role
oh I missed your msg ๐
hm
can you put ParseOther inside of RelCon at all?
the reason im checking for it is because one of the prefix is just &2 so when it's added to player there is a space before name
and you might want to check with ยง instead of & for color codes
how come?
because ยง is the real character to parse colors
oh true
yeah. what plugins do usually is just convert & to that char
I don't know but even if it does, it wouldn't help you since you can't get the other player's name (I think)
try to send an msg to the player with the parsed string to check that it actually returns what you wants (and that it actually parses it)
you want me to send them their prefix?
if so playerRank does display the prefix
not sure if you can see but there is a space
now the reason is because im doing p.setPlayerListName(playerRank + " " + p.getName());
so that's why I'm checking
Ok so does anyone know where the newest dev builds are
You can strip all of the color but you should use LP api
I figured out another way @junior musk
is there a placeholder to list all online players?
yeah i found it right after lmao thank u
where can I find the dev builds
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
Why thank you bot
bot:
||blitz: ๐ ||
๐ฑ
๐ฅฒ
why doesn't the plotsquared placeholder work?
%plotsquared_currenteplot_owner% this one
yes i do have plotsquared installed
anyone=
please?
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.
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
can you also do /papi dump and send the generated link here please?
oh @tulip brook the expansion from the ecloud is not needed since v3 of PlotSquared
it was integrated in the plugin
so if the placeholders really don't work, you'll have to contact PlotSquared support
also maybe update the plugin. you seem to be a few versions behind
yeah ik, its because my friend has the plugin and we own the server together and he's on vacation and doesn't have the PC
so i gotta work with what i have currently xd
well first of all, go to plugins/PlaceholderAPI/expansions and delete the file called Expansion-plotsquared.jar
then do /papi reload
and then test a placeholder
with /papi parse me %placeholder%
if it doesn't work, you'll have to contact the PlotSquared team
ok
yup, nothing, i'll have to contact them
Please respect the rules, be patient and don't ping staff members!
sorry
no worries ๐
it should be. I think you'll have to use the one from #852317810394267708 tho
2.10.9 seems to function
My way of updating is create a backup and change the jar to a newer version and see what breaks lol
Can I install placeholderapi on a bungeecord server?
Not for the time being.
which engine should i use for javascripts?
Are you on Java 16?
yea
The engine field in the configuration is deprecated, it no longer accepts the engine from there
You can try a version of the js expansion from #852317810394267708 to test, its not ready for release yet tho
why can't i get javascript args with args[]
There was a fix posted for that in this channel,
Ill send you another test version in a minute if you want to give that a shot
sure
Could you also test against all scripts you have if possible?
will do
Alright, thanks
cant see any bugs
Great! thank you
you're welcome
before the updated javascript extension I was using PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_afk%"); in order to get the value of other place holders. that function doesnt seem to work anymore, how can I get the same result in the new version?
papi reload doesnt work
no errors in console
using 1.16.5 purpur
java 11
also
%pinger_isonline_testplugins.com:25565%
doesnt work
You should be able to directly do PlaceholderAPI.setPlaceholders(...)
You could also just specify the placeholder instead, the placeholders are replaced in the script
So just %essentials_afk% is enough
cud u help me?
Sure, whats up?
Hi, I am using %armor_material_helmet% having an iron helmet on my head but it returns AIR, I made sure I downloaded the Armor extension correctly
is there a problem with the Armor expansion?
possibly outdated extension
@hexed current it doesnt look like thats even a placeholder
check
oh nvm
you just used it wrong
what are you trying todo with it @hexed current exactly?
%armor_material_SLOT%
try all caps
so like HELMET
down says Chose one value that's inside () and replace SLOT with one of the following: helmet, chestplate, leggings, boots. i tried with %armor_material_HELMET% and %armor_material_helmet% but it doesn't work for me
When I use the variable with a helmet it returns AIR instead of the helmet material
1.16.5
ya outdated for sure
surely
^^^
One of the modifiers is inslot: which you can use to get whatever armor piece you want
I knew about CheckItem but not about inslot: this will surely solve everything, thank you very much
โค๏ธ
Alot of things were added to checkitem
Oh yeah, i see it just got updated, that's good
Is it possible to put a % inside a placeholder in PAPI?
wym @obsidian pasture
actually nvm, there's no circumstance where you would need to put a % inside a placeholder
what I meant was a % between the %_placeholder_here_%
if you want a placeholder inside a placeholder use %some_placeholder_{here}%
bungeecord:
enabled: true
server_name: pvp1
server_prefix: '&8[&c้ขๅฃ่ฎกๅ&8]'
join_global: true
use_server_whitelist: false
server_whitelist:
- Server2
- Server3
how to use the server_prefix i cant find an papi
what is placeholder to list all online players
Hello, i'm trying to use the "playerlist" expansion on my server, and it doesn't works.
Here's my string containing the placeholder : "ยง3[ยงbยงlNouveau Mondeยง3] %player_name% ยงba rejoint le serveur ! ยง3 %playerlist_online,normal,yes,amount% /%server_max_players%>"
Here's what I get when I'm joining the server
https://imgur.com/1j3WXoV
I've read the docs on github and I don't see what is wrong with my placeholder
Hey, I was just trying to setup my scoreboard but got the message "Failed to find an expansion named: PlayTime" -do you know why this happens?
Don't use playtime, it doesn't work anymore
pretty sure the Statistics expansion has the time now
Do you want a number of players out of the max?
Cause I'm pretty sure server has an online players placeholder
alright, thanks!
yup, I want to display a number of players out of max
%server_online%
where is the DEV version?
ok thanks
What does kdr look like?
hmm it definitely might be the new JS expansion having a hard time
ah yea @thorn thunder is in charge of the JS expansion I am sure he will be happy to help once he's available ๐
okay, thank you so much
https://imgur.com/ADsDx9O How do I change color of the yellow "text"
It is yellow?
i have problem with PlaceholderAPI and GriefPrevention
there is no griefprevention in /papi list
and i did /papi ecloud download GriefPrevention
then /papi reload
check console?
=paste
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
upload and send the URL
Please switch to latest engine from #852317810394267708
okay, i'm trying
now PlaceholderAPI is not detecting new javascript expansion. @thorn thunder
installing old js expansion
What?
Just put it into your expansions folder and restart your server
yeah i already did it
What happened when you did that?
I put new js expension in expansions folder then i restart server but placeholderapi installing old js expansion
Did you already delete the old one earlier?
yes
It shouldnt automatically download it
i will try again, wait a minute
Alrighty
i removed javascript placeholders from scoreboard config and papi doesn't automaticly install javascript expansion. no problem so far but now papi doesn't detect new js expansion.
try using jsexp parse me 5 + 5 as a player
You are on an old version of jsexpansion
Hello, where do I download papi for 1.17
Not the one from #852317810394267708
@arctic zealot #852317810394267708 message
Download the one from this and make sure you're using that
oh sorry i forgot js variable on scoreboard again
wait a minute
@thorn thunder it says unknown command
Is there any staktrcae on startup?
no
Try restarting
same again
Hmm
do i need to modify my javascript scripts with the new engine? my old script is throwing an error.
here is the script:
function ranks2lpname() {
if (args.length == 1) {
rank = "%cmi_user_rank_name%"
switch (rank) {
case "Rank1":
return "egg";
case "Rank2":
return "babydragon";
case "Rank3":
return "archdragon";
default:
return "&c-- There was an error in Placeholder --";
}
}
return "&c-- There was an error in Placeholder --";
}
ranks2lpname();
Could you show us your config.yml from the PlaceholderAPI folder?
Whats the error?
thats my config for the javascript plugin
rank_repl:
file: ranks-bind.js
massive thanks by the way for your work on this plugin and for helping us
Send the last part please, there should be more
you want the config.yml?
Try adding this to the config
javascript:
debug: false
github_script_downloads: true
argument_split: ','
i was trying to avoid spam
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
oops sorry
This still says J2V8.
okay
me? oh, might be because i tried to reload it while server was running since my users are online
Probably best if you wait until you can do a full restart.
You'll want to stop the server, replace the jar, start the server again.
still not detecting
Otherwise we can't assume the testing is valid.
i used /papi unregister javascript and /papi register <file name>
thanks, i'll wait for the server restart, sorry for bothering you and thanks for the help
if it doesnt work after a reboot i'll try messing around a little and if i cant fix it, i'll consider asking again
Are there plugins that support PAPI with tabprefix/nametag?
gave an error on startup @trim mist with new update
https://pastebin.com/U3Egw6DD
Please respect the rules, be patient and don't ping staff members!
Talk to Yugi.
ok, sorry for the ping too
What java version are you on?
16
Alright, ill have a look, one moment
Is playeholderAPI 1.17 avaivable?
@thorn thunder i'm using java 16 too
Hmm its showing 1.16
Alright, ill keep you both posted. Checking what the issue is
thanks a bunch for your work
@slow umbra #852317810394267708 look
Thanks!
okay thank you so much
no problem
Why TPS is not working on my TAB, its showin 0.0
%server_tps_1_colored% im using this placeholder
@mellow compass @arctic zealot Could you guys see this fixes your issue?
i cannot test now but i will tell you when i test it
You shouldnt need to restart if you;re worried about that
a /papi reload is enough
oh neat
alrighty
ah, thats only an issue when you were switching from J2V8 to this

