#placeholder-api
1 messages · Page 160 of 1
Really?
Yes
Did not know that. Thanks.
They changed how NMS is mapped, so the code tries to look in the wrong place with the old one
if (minecraftVersion() >= 17) {
craftServer = Class.forName("net.minecraft.server.MinecraftServer").getMethod("getServer").invoke(null);
} else {
craftServer = Class.forName("net.minecraft.server." + version + ".MinecraftServer").getMethod("getServer").invoke(null);
}```
There's the check
I put that in the expansion folder right?
Yes and delete the old server expansion
This is just an expansion upgrade that isn't on the ecloud because it's 1.17 and still testing
Is there a way to add some tab complete to the open gui command?
Hello,
I would like to have my expansion verified. Who should I contact for this? expansion is staffplusplus
Another placeholderapi error. https://pastebin.com/idqCUeJw
It's from an expasnion, not PAPI.
contact the expansion developer
but that just lists the expansions that i got
not the placeholders that come with the expansion
But I'll get error for all my script with "has permission" 😦
For example this one :
var permissions = ["quete.pierre.mineur", "quete.pierre.boucher", "quete.pierre.bucheron", "quete.pierre.chasseur", "quete.pierre.terraformeur", "quete.pierre.brocanteur", "quete.pierre.fermier", "quete.pierre.maire"]
var counter = 0
var i
for (i = 0; i < permissions.length; i++) {
if (player.hasPermission(permissions[i])) counter++
}
var counterFormated = counter.toString().split(".")
counterFormated[0]```
I get the error :
```[09:11:32 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'quetes_pierre':
org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (hasPermission) on org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer@6d5770b failed due to: Unknown identifier: hasPermission```
So I don't know how to fix that :/
replace all BukkitPlayer.hasPermission("perm.here")
by "%player_has_permission_perm.here" == "yes"
How ?
It's not the same system, there is no BukkitPlayer.hasPermission("perm.here")
use the placeholders in your permissions var and use if (permissions[i] == "yes") in the loop
Merci, je vais essayer et je te redis (car j'suis très nul en javascript ) x)
x)
@west nebula redid the "whole" script system for me, by removing the list and checking permission one by one with if (permissions[i] == "yes"), and it works nice 🙂
thanks
How does the "worth" placeholder work from the Essentials PAPI expansion? How do I tell it which block to check?
Hey, the checkitem_remove placeholder doesn't remove items in offhand or armour slots and players are abusing that on our server, is it possible for it to remove them?
Hello,
I would like to have my expansion verified. Who should I contact for this? expansion is staffplusplus
Can I get a link to the GitHub source for the expansion & SpigotMC page?
sure
Source: https://github.com/garagepoort/staffplusplus-papi
Spigot plugin page: https://www.spigotmc.org/resources/staff.83562/
I don't have a separate spigot resource for the expansion alone
btw if its for a plugin you should think about moving the expansion inside your plugin. can make your and other's life easier
But the wiki says the ecloud is the preferred way?
You can either make a separate jar file, to upload it to the expansion-cloud (recommended) or have it as a local class inside your plugin.
Oh yeah no its way better as part of your plugin
oh well I may have forgot to change it. I personally recommend inside the plugin
will change it later
if I don't forget again
xD
Then you don't have to deal with a whole nother project and versions and stuff
Then people don't have the option to forget to download it etc
and people don't have to download it. it will just work with just the plugin. and that is also nice
I don't really mind having another project. keeps my core plugin clean from all the papi stuff.
But yeah for the users it might be inconvenient
Clean from one class? Lmao
Plus then you can easily add placeholder support for other plugins' placeholders
What downs does integrating it have
The only reason a separate thing even exists is so that third parties can make expansions using an api
having to update ur whole plugin just to add/change placeholders
I don't see the problem with that
People are more likely to update your plugin than they are to update your expansion anyways
This is a good reason to keep it separated. Same reason I keep all discords integrations in a separate plugin.
I don't want to release/impact my core plugin for an addition of a placeholder.
But that my background is in microservices, which I guess is a long way from any minecraft related stuff.
I like to separate different functionalities in different components.
I will keep it in an expansion for now, just wondering if I can get it verified?
yeah but then don't you need your expansions verified every time on the ecloud either way?
And your end users still have to do something
How much of a difference is there between updating your plugin and downloading an expansion, especially if you have a nice autoupdater
Looks okay. I just verified it. Should show up in-game within the next 2 hours.
I mean yeah anyways both options are OK. but for me, Especially if the expansion is small, I Preffer to keep it inside my plugin
but hey its an option you have.
you mean vault? Not really no.
so you might be able to do something with the javascript expansion (as in format the number yourself) but I'm not really sure
and about plugins, I don't know any no
Thanks Waffles
Didn't know adding an expansion to the cloud would be not recommended.
I plan on having many placeholders. It won't be 1 class in my case.
But thanks for the discussion. One more thing, it doesn't need to be verified for every version update right?
well its not not recommended. its just easier for everyone if you add it in your plugin
that's all
once its verified, it doesnt need to be reverified each update
@errant iron just for the record, i do prefer having the expansions in the plugin myself, was merely stating what a downside could be
im pretty positive im not a verified user
I Think
If you are a verified user, you don't need it each time. But we also don't give that out to just anyone.
It's not a problem for us to go and just manually verify again.
see Kaliber. u do need it verified
ive never had rng expansion reverified and i still have the verified logo
unless u guys sneakily check each update without me knowing
Kaliber, your author account is verified, which is why.
I don't have an exact date for that.
Probably when you became Support is my guess.
I don't even have an account.
That is correct.
@warm topaz Wait, were you the one that went through and did the PR stuff for all the misc repos? I probably gave you it then just to make your life easier.
ah okay lol, just weird that people use that for their own plugin
I could understand not wanting to have a separate deployable. But to find it weird seems weird. You must have come across the concept of separating services in a professional setup. Keeping the core domain clean. It's not really about how many classes it's just about the fact that placeholders have nothing to do with the core functionality of my plugin. I'm not saying one is better than the other just stating that it is not so farfetched
at my work we literally have a monolithic django setup for our entire website service lmao
everything is part of it, so I do find it weird to separate placeholders when the whole reason expansions exist is to add placeholder functionality to someone else's plugin
if it's your own plugin, it makes everyone's lives easier to unify them including yours
To me there is no conceptual difference between adding placeholders to your own plugin or to someone else's
ease of use, no chance of errors coming from separate things and not having one part or the other
don't have to get verified, stops a lot of support questions
easier to see where everything is since you don't have to go to a separate repo to edit them
you can use your own API way easier
Disagree with the chance of errors. Separating it minimizes impact on the rest of the system. Separate repo means other devs can easier expand the placeholder since the codebase will be small and clear. Faster releases because there is no impact on the plugin. Verification is just because I choose to use ecloud as a distribution system. I could distribute through another way. Using your own API easily just means you won't use the API and have a chance your placeholder logic will get scattered in your plugin
But like I said, it's not black or white. But solutions seem ok for me.
The chance of errors is objectively higher because people could have the wrong plugin version for the placeholder, the wrong placeholder version for the plugin, they could fail to download it and complain, etc. Separating it barely does anything. It's a single file, any competent developer can easily find it and improve it. That one class will have no impact on how quickly you release I guarantee it. Using anything other than ecloud is an absolutely horrid idea, if you're gonna be weird and make it an expansion at least use the proper distribution system. You can use your own API in your own plugin, it's usually just easier to access things from within your own plugin that having to get it via the API
Hey! I wonder, is there a way to use our custom javascripts with the version of the plugin provided in #852317810394267708 & java 16? Or there's no replacement for nashorn yet?
not yet no
The JS expansion is currently in the works, right now there's a GC issue but hopefully it will be sorted within a week
I was actually talking about errors on the dev side. Smaller marging for errors because the scope you are working in is limited. Error on user side depends imo. Placeholders should be documented so unless your documentation is also versioned there is still a chance users assume placeholders are available on an old version.
Again I don't find it weird to separate it from the core domain and I am using the cloud so not sure what you are getting at?
But I would like to stop this discussion which is leading nowhere. You obviously feel very confident in building a Monolith.
I prefer separating some parts of the application for reasons mentioned above.
Let's leave it at that
Ok lmao, was talking about the entire plugin. And unless you have like 3 placeholders I really hope you don't put everything in one class
I've never seen placeholders in more than one class before ngl
I don't remember why xD
Well that's Minecraft devs for ya
this guy's talking like I'm putting all my java code in a single file
some have a second util class and stuff like that
dude what the fuck are you on about
it's called keeping things that do the same thing near eachother
Garagepoort, idk how many placehodlers and how your code looks but I also never made it in more than 1 class. Bcz it was never more than 100-200 linex
lines
I Don't need 100 classes for that
a switch statement is all I need
or a whole separate project lmao
when bcz I use kotlin
I separate whatever placeholders don't belong functionally together
I mean you do you but my opinion is that it doesn't really need to be in separate classes unless you have 100k placeholders or something.
don't tell me mr. microservices is doing business logic in the placeholder class
No but parsing logic. Like if you want to use filters or stuff in the placeholder
All business logic is in the domain
What, a simple map function?
Yeah like I said parsing the placeholder to whatever the API needs. Look I'm kind of getting sick of this. You don't seem to want to have a discussion. You just want me to tell you that you are right
I mean I just don't see your point is all
Ok that's fair. Let's leave it at that
I guess it comes down to a difference in development styles but whatever\
lol
Wait what, does PAPI not support HolographicDisplays?
other way round and no.
u need to use holographic extension alongside it
I do have that
Awesome, thanks 🙂
I am tryna find a way to give a permission based off of a placeholder. Like if a placeholder returns “Joe” It will give joe a permission node and if the placeholder changes to “Joemama” then Joe will loss the permission and joemama will get the permission. Any ideas?
Hello good evening, is there a way to place an expansion that is no longer on the web?
To place an expansion?
yes
I don't understand what that means
/papi ecloud download
Yea you can't do that if it's not on the ecloud
but before it was.
Well you'll have to see if someone has it, since it's not there any more
I have an expansion but it doesn't work.
probably why it was removed from the ecloud
Is this placeholder broken? /papi ecloud download player btw
%player_item_in_hand_level_<enchantment>%
Seems to work fine for unenchanted items, shits the bed if the item has any enchantment
https://paste.helpch.at/cojepuyowi.bash throws this cool error too
Papi doesn't support plugins, plugins support it. Anyways, I would heavily advise against HolographicExtension because of how terrible it is for performance. Use this fork instead, basically adds Papi support to HD https://github.com/TECHNOVE/HolographicDisplays
use the CheckItem expansion instead
Yeah I was about to experiment with that
I need an ecloud account, how can I create it?
@balmy marten ^^
dm me a username and email you want
How come the extension has bad performance?
Packet listening plugins are super tough for performance, so this improves it a lot.
If you use holographicextension, you might see a spike in your protocollib usage/holographic displays usage in a spark sample
Just switch to this instead, you’ll not regret it
Yeye, just trying to understand why
I rebooted my server to reload a plugin. And once I did papi stopped working, for "no" reason. Here is the error message: https://paste.helpch.at/heliququde.sql. I only changed some cooldowns in a config file for another plugin before restarting
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.
send over your full startup log please ^^^
Yup, here: https://paste.helpch.at/ucujifusil.md
can you enable debug mode in config.yml, restart the server and send over the new startup log? ty
There: https://paste.helpch.at/voxibaroyo.md. I can't see any difference, maybe it still helps
yeah. so I can tell its one of your expansions
but I don't know which one
I think its an external expansion so what you can try and do is go to plugins/PlaceholderAPI/expansions and empty the folder. see if it loads fine then. If it does then you'll have to download each expansion 1 by 1 and see which one breaks it
Ok, thanks. It works now 🙂
gives a placeholder that shows all online players
Hello,
Since I switch to graalvm 16 (instead of java 16) I got many issues with javascript expansion (like theses one : )
org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (getInventory) on org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer@56270ac5 failed due to: Unknown identifier: getInventory
[19:27:02 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'kits_cost':
org.graalvm.polyglot.PolyglotException: ReferenceError: Java is not defined```
Do you know if there is a way to use these javascript on graalvm ?
🙂
I got a working javascript expansion, the issue comes from graalvm, but hope the new expansion will fix that
🙂
Because on java 16 it works
wait wait wdym you swapped to graalvm instead of java 16
like you're not using the JVM?
I'm using graalvm instead of JDK
why?
it offers more performances, and allows me to use more java flags
graalvm works 100% like java, but not for javascript since java 16 :/
I'll see with the new expansion
Or I'll have to redevelop all my javascripts
Yeah we originally attempted to design with Graal but every day was a new obstacle so we dropped it.
I'll see if I can find someone to revelop my 3 little javascript to make them compatible with both graalvm and jdk
Do you think your javascript expansion will fix my errors ?
. these one
I have no idea.
I mean it'll run your JS expansions with the correct JS interpreter
I've never used Graal so that's kinda in the unknown territory for me.
So I mean probably
Is there a placeholder that check to see if a server is whitelisted:?
Yes
What is it?
server_has_whitelist
Can anyone show me/tell me how to create a top 10 leaderboard for mcmmo? The plugin doesnt have the placeholders. Told to use leaderheads but idk what im doing. Happy to buy someone a hard earned coffee for the ffort ty
ajLeaderboards
oh yea Leaderheads also works if you already bought it
also have you had a look at https://panoply.tech/leaderheads
Dm me your paypal for a coffee!
lmao that's okay
Is there a way to add some tab complete to the open gui command?
Hello, any idea why PlaceholderAPI keeps removing the expansions i download?
In game i do /papi ecloud download Essentials then /papi reload but as soon as the server restarts i have to do it again.
it probably doesn't download it at all. I recommend just manually downloading them from the ecloud: https://api.extendedclip.com/all/ and put them in plugins/PlaceholderAPI/ecloud and then do /papi reload
which placeholders? Have you downloaded the required expansions? Have you checked your startup logs?
Its a minehut server so im unable to upload .jar files
Please respect the rules, be patient and don't ping staff members!
check the console on server start or on /pali reload, you may get an error from another expansion which breaks the rest of the expansions not loaded yet
Anyway to make %checkitem_inhand% check main hand only? Offhand's causing some bugs for what I'm trying to do
as of now there is no way to check only main hand or offhand. I will open an issue on github tho and ask the developer to maybe add one in the future
I can do that
opened it. we'll have to wait for the dev https://github.com/PlaceholderAPI/CheckItem-Expansion/issues/30
I might PR a change later as well and send you a dev build later
or tomorrow if I Don't forget
xD
That'd be super nice! Currently making a dynamic item enchanter and just realized there's a massive bug if you hold something in your offhand, so that kinda threw a wrench in my plans
any one now why the expansion pinger, It's don't working? It’s doesn’t update
%statistic_player_kills% is corrupt. How can I fix this? I didn't understand anything from the given link.
Just parsed it, works fine
Theoretically, if I fork it and remove itemsToCheck[1], it should stop checking the offhand right?
if (wrapper.shouldCheckHand()) {
try {
Class.forName("org.bukkit.inventory.PlayerInventory").getMethod("getItemInMainHand", null);
itemsToCheck = new ItemStack[2];
itemsToCheck[0] = p.getInventory().getItem(p.getInventory().getHeldItemSlot());
itemsToCheck[1] = p.getInventory().getItem(40);
}```
Since I don't have any use for the offhand, just the held hand
I'll try doing that in a bit
did it for you. at least I hope it will work. I've moved the project to use gradle bcz it didn't before xD
Oh, awesome, let me put that on and check!
Yep, works just fine, thank you! ❤️ ❤️
no problem 👍
Hey my placeholders arent working and this shows in console
[17:58:53 ERROR]: [PlaceholderAPI] expansion class MCoreFactionsExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use com/massivecraft/factions/RelationParticipator
but on other expansions it says found but it just shows like %ecp_balance_commas% and not the money amount
what plugin / expansion is ecp?
Hello i use my own integration to add Placeholder and i want to use theses placeholder in javascript extension but after the restart the placeholder isn't get correctly by placeholder, how can i do that properly ?
is this error due to DeluxeTags expansion needs to be updated https://paste.helpch.at/xasiwepopa.md
Are you using the updated server expansion from #852317810394267708
I don't think you are
let make sure I added them to the live server. I know I did on testing server
Try deleting the one you have and downloading fresh
hey for no reason the placeholders dont work anymore
idk why
i didnt changed anything
Wdym don't work
updating server and player expansion fix it
I mean exactly what i said. It doesnt work, there are just the placeholders like %eco_balance_commas%
Where? In chat, in holograms? In a menu?
How do you get the PAPI-Expansion-Player and Server to load on every PAPI plugin reload or server reload?
Uh, don't do server reloads as they break many things
And they should load on startup or papi reload
I meant restart my bad, however whenever I restart the server or do /papi reload both don't run anymore
Any errors in console?
Nada
I have to manually do /papi register for each
I can see that they are not working with placeholders, such as player ping
As soon as I register them its all fine
However it is not automatic..
I'm ngl I didn't even know that was a command, this might be an actual bug with the 1.17 version
Any way to report or could you do it? ^^
this is placeholder api help chat mate so its a question about this yk 😝
@calm kelp if you want us to help you will need to explain in more detail, like which placeholders? Do you have any errors in server logs?, what version of Papi?
Thing is, you might be using placeholders in places that don't support it by default (like HolographicDisplay). We can't just guess what happened... As Ironic said, the more info you can give the best.
So the log says no error
All Placeholders dont work
I use them where they’re supported (Scoreboard Revision)
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.
I‘ll send it tomorrow evening bc need to sleep and work
You could post an issue on the PAPI github here: https://github.com/PlaceholderAPI/PlaceholderAPI/issues
uhm should i ignore this but IDK if it effects one of the plugins i have https://mcpaste.io/9db728e5a944b6e2
https://mcpaste.io/0c3d9e83b3c13d3e here is full latest log
are you on 1.17?
o h wait you are
go to #852317810394267708 and download the Player Expansion from there.
and go toplugins/placeholderapi/expansions
delete the old one from there and put the new one
then do /papi reload and you should be good to go
Where can I find papi 1.17?
Thank you didn't scroll up enough lol
no problem
thanks
Player expansion is not working in paper's latest build
the latest that was just updated?
yes I mean it's working but when used head-%player_name% in dmenus it won't work
can you do /papi parse me %player_name% and tell me what it says?
what version of deluxemenus do you have and whati s your server version?
[08:18:21] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: com/andre601/formatterexpansion/FormatterExpansion$1 has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_292]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_292]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_292]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_292]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_292]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_292]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_292]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_292]
Caused by: java.lang.UnsupportedClassVersionError: com/andre601/formatterexpansion/FormatterExpansion$1 has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_292]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_292]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_292]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[?:1.8.0_292]
at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_292]
at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_292]
at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_292]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_292]
at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_292]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_292]
... 5 more```
papi was working till yesterday but today got this error. nothing changed
Dmenu: 1.13.4-DEV-null
Server: This server is running Paper version git-Paper-"47605b8" (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) You are running the latest version Previous version: git-Purpur-1060 (MC: 1.16.5)
the FOrmatterExpansion only supports java 11+. you are currently running java 8
can you restart the server please and send over the full startup log? vvvv
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.
any idea why it happened now when i haven't changed anything for awhile now?
well something definetly changed or you just haven't noticed it before
i was hoping i could get help with the API - i'm getting this error when trying to register my placeholder expansion from my plugin: https://gist.github.com/kadenscott/c03f24e74a7781c8b74109b73b4458a3
[08:00:16 INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.10.9
[08:00:11 INFO]: This server is running Paper version git-Paper-777 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
i am also depending on placeholderapi in my plugin.yml
this is my placeholder expansion class https://github.com/kadenscott/BlueLobby/blob/master/bukkit/src/main/java/dev/kscott/bluelobby/utils/LobbyPlaceholderExpansion.java
anyone know what happened? https://paste.shockbyte.com/wuxozuqerosopevahani
update your Player expansion
/papi ecloud download Player /papi reload
should update it
i try to download it but player is not one of the option
i did follow this
do /papi dump then please and send over the link it generated
Alrighty, boot down the server, go in plugins/PlaceholderAPI/expansions and remove the player expansion. Boot back up and then run the /papi ecloud download player
And then /papi reload ofc.
You're still on 1.8.0 and the fixed version which we pushed to the ecloud last night is 2.0.0.
you didn't delete the old one
I told you to delete the old one before installing the new one
go in the folder Waffle King gave above and delete both PAPI-Expansion-Player.jar and Expansion-player.jar
is there any way of getting a placeholder but with a certain number of characters removed eg. thisIsAString could be changed to thisIsAStr by removing 2 characters. I know this is a likely a stretch but was just wondering about possibility of this being a thing haha
and then do the download and reload commnads
You're checking if PlaceholderAPI != null in startup, can you see if you can see the && isEnabled() to see if that makes a difference?
javascript expansion probably best option
aye. thanks
An expansion that allows you to use javascript for processing
• Wiki
• Community Scripts
• GitHub
• eCloud
here are the usefull links Dave ^
Brill I'll do some learning 👍
final @Nullable Plugin placeholderApiPlugin = Bukkit.getPluginManager().getPlugin("PlaceholderAPI");
if (placeholderApiPlugin != null && placeholderApiPlugin.isEnabled()) {
new LobbyPlaceholderExpansion(this).register();
}
in my onEnable method gives the same result
That's weird.
i was having a similar issue with HolographicDisplays, where the API implementation wasn't set
The only thing that I could think of off the top of my head is Guice.
i wonder if my setup is causing issues
I haven't used Guice a lot though so I can't really help you there.
yea of course
i'll try making a plugin without guice and see if it works or not
thanks for the help
For sure!
so so weird.. i attached a debugger, it's throwing an NPE because Bukkit.getServer() is null
though, printing Bukkit.getServer() shows its not...
It might honestly be something with the Guice injection process.
does this work in 1.17 yet?
Please respect the rules, be patient and don't ping staff members!
Oh I'm afraid not. They're working on it and are testing different javascript engines at the moment. it will probably show up in #852317810394267708 when its ready
awesome news thank you!
Any progress on the JS Extension?
We are working on it. If you look around in this channel someone posted their own version of it that requires and external plugin to use. While we don't support it, you can try using it to hold you over.
Hey, when developing I have some trouble with having PlaceholderAPI detect with a config variable. And yes, it works if I have it with a simple string.
public void onJoin(PlayerJoinEvent event) {
FileConfiguration lang = YamlConfiguration.loadConfiguration(new File(plugin.getDataFolder(), "lang.yml"));
Player player = event.getPlayer();
String globalJoinMessage = lang.getString("JoinLeaveSystem.GlobalJoinMessage");
event.setJoinMessage(PlaceholderAPI.setPlaceholders(event.getPlayer(), globalJoinMessage));
List<String> welcomeMessage = lang.getStringList("JoinLeaveSystem.WelcomeMessage");
for (String message : welcomeMessage) { player.sendMessage(Utils.color(message)); }
String joinText = "&8[&a&l✓&8]&7 %vault_group% %player_name%";
event.setJoinMessage(PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText));
}
}```
I think i tried to get it, but didn't load my .js files
Alrighty well that copy is not maintained nor supported by us so you might have to wait. I will probably release another announcement later today.
But it's alright I can wait until you guys figure something out, keep up the good work
Trust me, we are really trying here. We keep hitting wall after wall, and we have a couple scenarios we are planning out right now to at least get you guys working for the time being if we have to not add support for new JS semantics.
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
Update your server expansion.
Whats that?
Okay thank you
a list of members I assume
worldguard regions can have members
I Don't remember how you add them but I think something like /rg addmember
or something
I'm afraid there is no placeholder for that
glare, it was because i was using an api dependency instead of compileOnly omegalul
also, is there any way i can use components instead of strings for placeholders?
Not currently. We're actually in the talks of using Components for PAPI 3.
More than in the talks actually, we actually have an Adventure branch actively being worked on.
Yeah! It's been great so far.
Is there any way to put a placeholder within a placeholder?
some placeholders support that
you have to use the bracket placeholders
so basically %placeholder_{placeholder}%
but not all expansion support that I'm afraid
Hi. I am having problems getting placeholders to work on holograms. Its working on my 1.16 server but its not workin on my 1.12.2 server. Here is a link to a image https://i.gyazo.com/c644cea053e02980a276db9bad5226a8.png
I have vault paceholders installed
Here is the leaderboard:
baltop:
location: world, 23.590, 166.000, -43.390
lines:
- '&c&lBaltop'
- '&c#1 %vault_eco_top_player_1% has %vault_eco_top_balance_formatted_1%'
- '&b#2 %vault_eco_top_player_2% has %vault_eco_top_balance_formatted_2%'
- '&b#3 %vault_eco_top_player_3% has %vault_eco_top_balance_formatted_3%'
- '&b#4 %vault_eco_top_player_4% has %vault_eco_top_balance_formatted_4%'
- '&b#5 %vault_eco_top_player_5% has %vault_eco_top_balance_formatted_5%'
- '&b#6 %vault_eco_top_player_6% has %vault_eco_top_balance_formatted_6%'
- '&b#7 %vault_eco_top_player_7% has %vault_eco_top_balance_formatted_7%'
- '&b#8 %vault_eco_top_player_8% has %vault_eco_top_balance_formatted_8%'
- '&b#9 %vault_eco_top_player_9% has %vault_eco_top_balance_formatted_9%'
- '&b#10 %vault_eco_top_player_10% has %vault_eco_top_balance_formatted_10%'
Why would you downgrade versions, especially to 1.12?
I'm sure you'd have to use outdated versions of the plugins
if ur on the latest vault expansion ull have to downgrade to 1.5.2
the top placeholders were disabled due to them being extremely unoptimised
I’m using 1.12 on my skyblock server
Have you considered using 1.16 on your skyblock server
Yeah
I can’t switch since a lot of my plugins are locked to 1.12
Such as?
I would definitely recommend getting a new auction house plugin and paying some devs to upgrade
For both your and your players' sake
Ok. It was actually my players wanted the server on 1.8.8 originally lol
that makes some sense though
I mean I can see that for PvP at least
because of combat
but no reason for 1.12

You should be on latest, or 1.8 if you really care about pvp that much
And honestly 1.17 is pretty cool and brings some nice changes, I'm sure some devs would be much happier working with that
If I upgraded could I use via backwards?
Well yea
Ok
You just couldn't use any of the new features
I don't see why you'd want to allow any other version than 1.8 maybe
Especially if your other server is already 1.16 lmao
I have 1 server on 1.16 and the other on 1.12
Ok
And then players can play both with the same version
Ok
Also definitely post in #849215410560827432 or #849215409295196180 if you need devs to upgrade stuff
I'm sure some people are interested
Ok. I’ll run a poll in my discord to see if the players would like the server to updgrade
I don't see why they wouldn't
Better performance, lots of new features, an actually recent version so you're much more likely to find devs and good plugins
Yeah
Good afternoon, do you know if the javascript update has already come out?
No.
Do you know when the update will come out? 😦
We are really trying hard to get it out soon. We keep running into problems.
There are other versions around it linked over the past few days here but keep in mind they require a 3rd party plugin and they aren't supported by us.
I understand, keep it up guys 💪
In all honestly we were about to deploy a development version on Sunday but we ran into a pretty major issue (turns out it required extra C++ binaries on your machine) and that's not something we can force.
So we scrapped that engine and are working with a few other libraries.
Hey, so i'm trying to make use of the server expansion, and i keep ending up with this when running papi list:
A total of 8 placeholder hook(s) are active: .... player, server, .....
and when i run:
/papi parse <name> %player_server%
i get "now available in the server expansion"
Whatever a placeholder starts with is its expansion
So any placeholder that starts with player is from the Player expansion
so player_server is just a deprecated placeholder with a pointer to the new one?
Yes
okey, cools. Thanks!
what format can i use to return hex colours in my placeholder expansion
well. thing is, PAPI doesn't support hex at all rn. so if you for example use the &#aaFF00 format it will literally return %identifier_&#aaFF00placeholder%
so the plugin in which they use the placeholder will have to do the parsing
but idk how PAPI 3.0 will work. I Know they're adding adventure support so that will probably help a lot
kek
alright that makes sense now, the plugin im using does its own parsing so i can use that
thank you :p
what permissions do you need to give players to open the menu? plugin: deluxemenu
None, unless you specifically set them in the menu requirements.
what's your server version?
1.17
can you show me the placeholder that isn't working?
or one of them at least
@trim mist am I wrong or was there a problem with the statistics in 1.17? I've seen some discussion about md5 doing something bad or something but didn't pay to much attention
%statistics_time_played%
TPS placeholder for TAB plugin wont work.
it is statistic not statistics
are you on 1.17?
yea
download the latest server expansion: /papi ecloud download Server then /papi reload
Not work same
i saw that what is papi?
do other statistics work tho?
Yes
papi is the short name of PlaceholderAPI
It show me empty text
we'll have to wait for Waffle King to confirm its not something to do with 1.17 and spigot
because I've seen some people talk about how the statistics were messed up in 1.17
but I am not sure
Thank you!
well there should be some out there but they will only record the time played since you've added the plugin
here's an example https://www.spigotmc.org/resources/playtime.26016/
hello
Hello, could you please tell me if there is placeholders for sheep sheared?
I don't think there is I'm afraid. All of them should be listed here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
and I can't find anything sheep related
Yes me too..
var min = 1;
var max = 25;
function example() {
if (args.length == 2) {
min = args[0];
max = args[1];
}
var random = Math.random() * (max - min);
random += min;
return Math.floor(random);
}
example();
So I am using the new JSExpansion and am testing with one of the example scripts on the github wiki. However, it seems as if min and max are never being effected by the args
Whatever numbers I input as min and max it always outputs a number between 1 and 25
how do you use the placeholder? @safe gazelle ?
/jsexpansion parse me %javascript_example_5,1000%
sorry to ping but meant to reply on previous message
working on testing this myself rn
will take a bit
yup I can confirm this does not work. Either it was named from args or something is broken. I've pinged the person that works on it and will wait for an answer
Brill thank you
Error reloading placeholderapi
https://prnt.sc/16cpz4j
placeholder for what?
Javascript doesn't work anymore on 1.17 😕
[22:45:00] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: javascript [22:45:00] [Server thread/WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder exp_points isn't initialized! Defaulting to global [22:45:00] [Server thread/WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: exp_points
yeah. there's a new expansion in #852317810394267708 but its not fully working yet
that makes sense. bcz there those warnings were removed I'm pretty sure
and I just tested it. I Know its not fully working yet but it at least loads xD
I mean what placeholder? %statistic_time_played% ?
you can use a plugin like LeaderHeads or ajLeaderboards to make leaderboards from placeholders
I want the placeholders
I can make make the leaderboard
With holograls
Or menu
I am asking is there a placeholder for the top on block break mob killed like that stuff
not really I'm afraid.
no. you didn't understand me.
you need those plugins
to create the top placeholders
yeah they do
they create top placeholders
ugh you can use %statistic_time_played% for that tho
And i need to find the placeholder for thing i want
the statistic expansion
has all of that info
u should probably read the wiki. easier to see xD
Hello, it seems like this is no longer a expansion? https://gyazo.com/07de501e140fbc7c04a9ec25fa5f993c
Yeah, it's been discontinued
Those placeholders have been moved to the Player and Server expansions
oh
and statistic expansion
the %statistic_time_played% placeholder returns the time played
oh is that instead?
well you could use that yeah
ah I see. xD
Is there a way just to add days to it instead of hours, minutes, and seconds?
oh %statistic_time_played% %statistic_time_played:seconds% %statistic_time_played:minutes% %statistic_time_played:hours% %statistic_time_played:days%
so last one for days
oh
That strange it still counts the other ones.
oh wait
Got it! 😄
oh how about for the current world?
that's not possible
minecraft records the statistics from a server all in the same place
ohh
%player_world%
wdym?
So like
Let say if I don't want to show a current world name and want to only allow players to see certain world instead?
so if they're in worldA for example or in worldB it would show worldZ buti f they're in the worldC it would show worldC?
Like let say if they are in hub world but I don't want that to show in scoreboard. But if they were in like overworld then i want that to show up in scoreboard.
So like allowing players to only see certain world they are in on the scoreboard if that makes sense?
If is not possible then is all good, just wondering.
you can probably do it with JavaSCript expansion
An expansion that allows you to use javascript for processing
• Wiki
• Community Scripts
• GitHub
• eCloud
oh
you can learn more about it here ^^ all you need is some basic javascript understanding
ah I see, ty!
There is no time to wait! Ask your question @frozen chasm!
I'm getting this error:
[PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder
I'm using paper 1.16.5 + java 16
javascript expansion is broken in java 15+
you need to use the one from #852317810394267708. but.. that one is not working 100% either
a new one will be published there soon (I think)
It's working if you don't try to pass args into it 🙂
well I Didn't say its not working. just not 100% working
Yeah I know.
Ok, so... Can I use that version with java 1.16? or?
Yes!
And make sure you use the 1.16 versions of Server and Player expansions
Hmm
1.16?
what you mean?
ye?
dw imJouU. you're fine. all you need is the javascript expansion xd
he's probably tired lmao
he's on server version Paper 1.16
yeah and?
the current live versions of the Player and Server expansions are the 1.17 ones
ok and?
or are they backwards compatible
they work just as fine on 1.8-1.16
oh okay sick
they just add 1.17 support
ahhh that makes sense
they're not rewritten or anything afaik
hei
Will this work :'{medium}%parkour_topten_bar_1%{medium}&a.%parkour_leaderboard_cake_1_milliseconds%' Even tho the {medium} has a character after it before the placeholder?
it should work yeah
🐱
@safe gazelle You around?
Can you do me a favor and tell me if this fixes the arg issue?
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
The error just says whatever channel it tried to register was already registered.
¯\_(ツ)_/¯
The original dev of RedisBungee stopped working on the project so we stopped working on the expansion.
🧇

Work?
Please respect the rules, be patient and don't ping staff members!
Oh
?
ban
I'll test now
Please respect the rules, be patient and don't ping staff members!
hello, is placeholder api working 1.17?
Any luck?
i cant use % in AsyncPlayerChatEvent
String format = ChatColor.translateAlternateColorCodes('&', "%tab_tabprefix%" + p.getDisplayName() + " &8&l»&f " + message);
e.setFormat(PlaceholderAPI.setPlaceholders(p, format));
if i do this in my plugin
everytime i say "%" ingame it error
CC: @thorn thunder
May I get my expansion verified? :D
https://api.extendedclip.com/expansions/nestedplaceholders/
the thing is, setFOrmat requires a formatted string or whatever its called.
CC?
Means carbon copy.
Ouh, I speak Spanish, what does that mean 😅
When you send an email to someone, you can carbon copy them to make sure they also get the message.
Yugi is the one working on the expansion so I CCed him to make sure he got the message too.
And ... regarding my problem, it is a mistake of mine or of the plugin
It's something Yugi needs to look at since we haven't gotten that error before.
Is PlaceholderAPI compatible with 1.17?
check #852317810394267708
ok
Parameters:
format - String.format(String, Object...) compatible format string```
You can see more about String#format here: https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html#format(java.lang.String,java.lang.Object...)
@cobalt pollen you can use parseother for checking items of other players
feel free to ping me haha i didn't see this
Please respect the rules, be patient and don't ping staff members!
but yeah it's working
[11:12:23 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: playerlocation
[11:12:23 INFO]: [PAPI] [Javascript-Expansion] 0 script loaded!
[11:12:23 INFO]: [PAPI] [Javascript-Expansion] Java version: 15.0.2
What does this mean. And how do i fix it?
this means that java removed the nashorn engine from java 15+ and you need to use the javascript expansion from #852317810394267708
Hello! I have one question if someone does not mind helping me with it 🙂
If all goes well, you should be able to just replace this jar with the current existing one in the expansions directory.
Does this mean that I can use the 1.16.5 version release on Paper 1.17 and just drop the test file in as an expansion to run PAPI in 1.17?
how to throw a photo?
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.
1.16.5 version of what?
put a number in there
from 1 to 64
that is the amount of items that will show in the gui
if you don't want to set it, just delete that line
it will set to the default 1
I can't figure out how to make it see how much experience a person has and execute the command.
explain exactly what you're trying to do
the player has 25 experience and to get the item
levels? or just points?
levels
update: true
hide_attributes: true
lore:
- ''
- '&7Cooldown: &f3 Days'
- '&7Left Click to Redeem'
left_click_requirement:
requirements:
exp:
type: has exp
amount: 25
level: true
left_click_commands:
- '[message]'
- '[close]'```
what version of deluxemenus do you have?
I guess what I mean is:
DeluxeMenus-1.13.3-Release
ah yeah. you'll have to update to the development builds. the has exp requirement was added just a couple weeks ago.
You can find the latest DeluxeMenus dev builds here: https://ci.extendedclip.com/job/DeluxeMenus/
you can get it from here 2006lev ^^^
There is a PAPI release for 1.17 but it appears that it is just an expansion. Looks like any other expansion but the plugin itself does not appear to be written for 1.17. My question is can I use that 1.17 expansion on a build designed for 1.16?
Or is that the actual Plugin release?
I downloaded it today from spigotmc
okay thank you
The PlaceholderAPI from #852317810394267708 is a plugin. it is not an expansion. and from what I've seen it works
and yes
you can use the plugin from #852317810394267708 on 1.16
or lower
Thanks for your help Blitz!
oh yeah. deluxemenus will drop support for java 8. It will require java 11 from now on
at least
you'll need to update java
I am using java 16. Will it not work with 16?
23.06 12:14:51 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml```
Yeah i thought so. But..
this
Please respect the rules, be patient and don't ping staff members!
And?
He said its not an expansion
ohh I thought you were talking about the plugin
not the javascript expansion
(about PAPI)
Ahh okay I gotcha xD
that's my bad
how to make to transfer bungeecord to another server
Looks like that has to do with the adapter cache holding released objects, Ill have a look
why does /papi parse Zax71 hi %playername% ! return hi %playername% ! not hi Zax71 !
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
yup
well then... if i use the Viaversion thing /papi parse Zax71 %player_version% (after install and reload) i get %player_version% not 1.16.5

so- i am using BossShopPro and a combination of DeluxeTags placeholders from papi and a javascript extension i made and am having no success with %deluxetags_tag_{javascript_snip_%shopitemname%,6,back}% other instances I have within the same shop work where the placeholders are%deluxetags_tag_%shopitemname%% so was wondering if anyone had any ideas on whether i was using the placeholder nesting incorrectly
well deluxetags does not support nested placeholders at all I'm pretty sure
but another thing is
nested placeeholders are usually {]
oh wait
%deluxetags_tag_%shopitemname%% works/
ugh yeah what you're trying to do is not really the best idea x
if %deluxetags_tag_%shopitemname%% works then I'd recommend you do everything in the javascript placeholder
so %javascript_snip_%shopitemname%,6,back% and this would return %deluxetags_tag_....%
so it would return the whole thing
not just the name
%deluxetags_tag_%shopitemname%%
probably works because it's BSP's placeholder which is parsed Before PAPI ones
which means that when it parses the deluxetag placeholder, %showitemname% would have already been translate into the correct name
yeah i figured that was the case
which also means that DeluxeTags doesn't support nested PAPI placeholders
i thought it might have been a bit over the top haha
but yeah, that would work
^^^
ahhh so how would i do this though?
what do you return inside the javascript? just add %deluxetags_tag_...% to it
where ... is what you were returning before
why wouldn't you be able to?
thank you so much haha
i'm not really sure haha
i didn't think about it in all honesty
actually
you could use %nested_deluxetags_tag_{javascript_snip_%shopitemname%,6,back}%
I guess that might work. but at this point I Don't see the reason
meow
i'll give that a go as it fits better to my use cases haha
how?
(btw you have to download the expansion manually since it isn't verified ;-;)
well you do you xd
because i need the split for multiple different plugins not just for deluxe tags
Please respect the rules, be patient and don't ping staff members!
yeah but using the same one for multiple different situations would be more ideal as it would just be copy and pasting the same code but just adding a different placeholder around the returned output
I added a PlaceholdersAPI extention for Towny it says 2 placeholders hooks registered but nothing shows in ecloud download
This is what I downloaded https://api.extendedclip.com/expansions/towny/
/papi list ?
can you send a screen of the console on papi reload?
I cant paste images here?
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
this is all it shows anyways
[INFO] .... blazenoutlaws issued server command: /papi reload
[INFO] .... [PlaceholderAPI] Placeholder expansion registration initializing...
[INFO] .... [PlaceholderAPI] Fetching available expansion information...
[INFO] .... [PlaceholderAPI] Successfully registered expansion: towny
[INFO] .... [PlaceholderAPI] Successfully registered expansion: townychat
no errors or anything?
does it appear correctly in chat if you do /papi parse me %towny_town% ?
Internal error
check console
first :D
are you using Towny or TownyAdvanced?
TownyAdvanced
well that's probably why
Caused by: java.lang.ClassNotFoundException: com.palmergames.bukkit.towny.object.TownyUniverse
which version?
That file probably doesn't exist in the new Towny
1.16.4
I meant Towny
because it's wiki says that you only need the Towny expansion for the old versions
https://github.com/TownyAdvanced/Towny/wiki/Placeholders
ah yup, no expansion
so how am I supposed to do placeholders
I saw other servers with the same plugin using them
what's your Towny version?
I dont remember what version I got it was like 1 month ago
/ver towny
0.97.0.0
Wait @junior musk did you update nested placeholders for me lmao
then you need to use the placeholders on that page https://github.com/TownyAdvanced/Towny/wiki/Placeholders
I've posted it earlier today 😅
the old PAPI expansion?
no
I appreciate both you and blitz for the support
you can click on the arrow here
how can I create a variable that shows the amount of players with a specific permission?
you can use the PlayerList expansion for PlaceholderAPI and use the %playerlist_online,perm,yes,amount,<yourPermissionHere>% placeholder
yeah
this feels really stupid but whats the placeholder to list amount of online players
%server_online%
Recently the latest version of javascript has been consuming me too much performance, my server's tps drops considerably, and removing it solves this, the same thing did not happen to me before.
%checkitem_give_mat:bow,enchantments:power=1;punch={player_item_in_hand_level_ARROW_KNOCKBACK}%
I'm trying to use checkitem to give a power 1 bow but if they have punch 1 on there current item it gives them power 1 and punch 1. the bow I have in my hand has punch 1 yet it is not added, %player_item_in_hand_level_ARROW_KNOCKBACK% is 1, does anyone know why this doesn't work?
I've been testing for like the past 30 minutes lol
Hello friends, I have a plugin in which I have to put% superguilds_guild%, but it uses PlaceholderAPI, although my server does not detect the use of it, I am using ezchat and I am putting it like this: - '& f➣ & 7Clan: & e % superguilds_guild% '
What do you recommend me to do so that I can use it
/papi dump
Thank you very much for answering, I will try with that :), I hope you can! 🙌
please help me for some reason the store does not work, I wrote correctly https://imgur.com/gallery/zAS5mqj
hello
hi
is there a way I can show like the disk max and disk used
and ram max and ram being used right now
and CPU too
anyone?
me too
nice
idk, try ctrl + f --> disk
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#server
alright, thanks
Could you send us a timings report for us to have a look?
Hello how to add two variables together for example : %bungee_faction% + %bungee_faction2% = %bungee_factiontotal%
@rain basin ^^^ math expansion
.
does checkitem even support nested placeholders?
It says they are available if you use {} instead of %%
I tried so hard to get it to work lol
Yeah
oh wait...
yeah it doesn't set placeholders
for the value
just the enchanment name
Oof
@mint fable java NamespacedKey key = NamespacedKey .minecraft(PlaceholderAPI.setBracketPlaceholders(p, ench[0].toLowerCase())); enchantments.put(Enchantment.getByKey(key), Integer.valueOf(ench[1]));
you'll probably want to fix this
all you can do now SParxez is wait
for cj to fix it
yeah not really a bug
just a mistake on cj's part
unless there's actually a reason he did it like that
but I can't see what that would be
Thank you for the help tho!
👍
mistake on not parsing for the int for placeholders?
yeah. you should probably parse the bracket placeholders for the number value as well
i'll add it to the list
alr 👍
Thank you
Hello how to add two variables together for example : %bungee_faction% + %bungee_faction2% = %bungee_factiontotal%
Thx
How to remove the comma with Math expansions (placeholder)
Because %math_{bungee_bewards1}+{bungee_bedwars2}[precision:0]% don't work
it was changed
its not [precision:0] anymore
its %math_0:_{bungee_bedwars1}+{bungee_bedwars2}%
Okayy thx 😉
my placeholders arent working they're just showing the placeholders instead of the value any known fix for that
well have you downloaded the expansion for the placeholder you want to use?
hello
how i get worlds player count? exeample; in word a there are 12 online and world b 5 online, what is placeholder with 17 online?
you can add them up with the math expansion
how .-.
%math_0:_{server_online_a}+{server_online_b}%
oke thx
is there any way to show prestiges and ranks as prefix in chat?
im using UltraPrisonCore as plugin
for ranks and prestiges
yes all of them
Please respect the rules, be patient and don't ping staff members!
give me an example of a placeholder that doesn't work then please
also restart the server please and send 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.
