#placeholder-api
1 messages Β· Page 146 of 1
I mean that it does not appear, since in the list of placeholders it does not mark as downloaded.
Did you do /papi reload after doing papi ecloud download Vault
Yes, I do
Ty for the code :P
I was just looking to stay away from js for performance but this should help
@lilac oxide,
Please respect the rules, be patient and don't ping staff members!
Oops
@lilac oxide,
Please respect the rules, be patient and don't ping staff members!
he probably got triggered by the edit lmao
hello I currently have the pro skywars and I can not put the souls and the corners in the scoreboard
and you've tried all these? %proskywars_kills% %proskywars_deaths% %proskywars_wins% %proskywars_money% %proskywars_souls% %proskywars_projectilesLaunched% %proskywars_projectilesHit% %proskywars_blocksBreaked% %proskywars_blocksPlaced% %proskywars_kit% %proskywars_cage% %proskywars_trail% %proskywars_time%
how to check if player has 3 enchantments on holding item?
i can parse to get every enchantments on the item, is there a way to count how many there are?
They are separated by ","
Sweeping Edge 1, Smite 3, etc etc
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
and I put them where these command ?
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
those are placeholders
you put them in your scoreboard
wait so you have a placeholder that returns a list of all enchantments on an item?
yes
yup, the thing is i suck at javascript
what placeholder shows you the enchantments?
%tokenenchant_enchantments%
ok but whats is the download with /papi ecloud download ...
I don't think there is one.
it comes directly with the plugin
ah then I can make you a quick js js var enchants = "%tokenenchant_enchantments%" var amount = enchants.split(",").size() amount
this is all you need
where do i put it
would be ideal if i could put it in deluxemenu click_requirement
so i can check if player has 3 or more enchantments
oh you could put it directly there. 1 second. it would look something like this: yml requirements: enchants: type: javascript expression: '"%tokenenchant_enchantments%".split(",").size() >= 100'
change 100
to whatever you want
this example will check so they have 100 or more enchants
how can i parse myself to check if it works?
[DeluxeMenus] Error in requirement javascript syntax - "%tokenenchant_enchantments%".split(",").size() <= 3
oh size is not a thing in js maybe. I'll try and help you in half an hour because I'm playing something rn
okay
oh my bad. its length not size. use this instead: yml requirements: enchants: type: javascript expression: '"%tokenenchant_enchantments%".split(",").length >= 100'
okay thanks it works! but now i have another problem
@visual yacht,
Please respect the rules, be patient and don't ping staff members!
if i have 3 enchants on lvl 1, i cant upgrade them to level 2
I have a problem with PlaceHolderAPI when i do /papi ecloud download Vault and reload the plugin its not installing it and the vault placeholders are not working.
I have and the plugin dont show any errors.
so it should be fine.
Vault is for 1.8 right
no
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.4
v1.6.7
v1.6.7
v1.7.3 - Latest
v1.7.3 -Latest
v1.7.3 - Latest
1.7.3 - Latest
it is.
iirc you need an economy plugin as well
i meant, not the latest version
Essentials
I used them but they dont work and also the prefix in chat is not showing.
Still doesn't work with the formatter placeholder, I want to format the players exp value so that 1000 = 1,000 or 1000000 = 1,000,000 and so on
@sour oxide,
Please respect the rules, be patient and don't ping staff members!
@frail fractal you will need to get a custom JS placeholder
Realistically the formatter placeholder should accept other placeholder. How else would you use it?
oi oi oi
is there a placeholder for a future date through a math expression?
i tried pulling a finesse with the math placeholder but it doesn't work if it's a turn of a new month
for example feb 25th + 7 (1 week) would be feb 32nd, not march 4th
%localtime_time_MM%/%math_0:_7+{localtime_time_dd}%
that was my finesse
The best way to work with dates is make a JavaScript placeholder.
hi i don't know if you remember me but i can't get the souls and corners in my scoreboard. I don't know where to put %proskywars_money%
%proskywars_souls% . do you know more?
ugh you put them in your scoreboard plugin.
just these ?
cheers love
well those are the placeholders you put then in your scoreboard plugin
naw you're just learning
Does anyone have an idea what I can do about this?
I'm trying to do something a little wonky with WorldGuard, and it seems to work for the most part.
My issue a lil' character that's sorta out of place?
I don't want the * to be there, I'm using a scoreboard plugin with PAPI's WorldGuard addition, the placeholder is %worldguard_region_members_groups%
Anyone know how I can remove that lil' *? ;p
https://prnt.sc/yvwszm
WorldGuard devs said to ask in the PAPI help chat to remove the *?
Could one of the Masters of the Universe please build and publish the PAPI-Expansion-Server update, to include %server_variant%. The code has been there for a week.
for %vault_eco_top_balance_commas_#%
when I add the 1
it doesn't return anything
trying to add to a holographic display
The _ placement matters: %vault_eco_top_balance_commas_1%
Is pinging funnycube fine? I'm trying to create an account on eCloud.
CC: @balmy marten
Thanks, currently your DMs are set to private.
plaeholderapi is making it so i cant join one of my bungeecord servers
Why do you think so?
Is no issue.
You can just ignore those messages. They won't affect anything.
@full kettle https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#difference-between-2-dates
PlaceholderAPI should not be put on bungee. so it should not have anything to do with your bungee at all
Some plugins have placeholderAPI links for bungee though
@balmy marten when you got some time ^
hey how to check if player has 1 or more empty inventory slots?
%player_has_empty_slot%
thanks
can you tell me how Math papi work?
like how can I make a calculations with this?
So it should like this %math_{%server_online%}+1%
without the %% when placeholders are inside {}
and then make sure u have downloaded the specified expansions from the ecloud
Got it thanks
i have to put something in a pom? But i cant find a pom.xml
for importing the papi dependency?
i think so? First time i downloaded api XD, i needed for deluxe menus
oh so ur not coding?
just download the plugin off spigot any place it in the plugins folder
The only thing i want to do is using Deluxe menus to make a GUI, but then i saw i had to download API, so i did that
I am not coding
to use DeluxeMenus, you need to download the PlaceholderAPI plugin
yeah just pop it in the plugins folder
I downloaded Deluxe Menus, so i have to put that in the folder of API plugin? The it will work?
nooo
DeluxeMenus is a plugin
along with PAPI
they both go in the plugins folder
Aah okee, But i dont understand that it doesnt work, Do you know a command that i can create a GUI so i can test if it works?
I already have Deluxe Menus in the plugin folder
do u have placeholderapi installed now?
if so, then both plugins should be green in /plugins
then u can create ur own gui, or use the example gui to test if it works
They are both green in /plugins, but if i type: /dm open example or /dm open basicsmenu, nothing happens
'Is not a valid menu!'
But when i type /dm list, i see availible menus: advancedmenu, basicsmenu, requirementsmenu
So i type: /dm open basicsmenu , but then i get the message: 'basicsmenu is not a valid menu'
I think you need a perm, for open basicsmenu as default.
Hey i want to make something like this: Cobblestone mined: 30000 (Top 1%)
how to do the Top 1% thing?
I mean for that you'd need to be keeping track of all player's stats. that sounds like something custom tbh
don't think there is anything public close to that. I might be wrong tho. because I've been wrong in the past xD
Does anyone have the advancement of %Advancements_<advancement>%
It just say No_exist_advancement
%Advancements_story/upgrade_tools% I tried this
Returns to true
yeah then it works. so the story/upgrade_tools might be wrong name or something.
actually I just tested it and it says true for mee
hmm weird
@_@
oh no exist means it was not completed aparently.
try getting that achievemnt and see if it changes to true
yeah that seems to be it.
I've tested it myself.
so NO_EXIST_ADVANCEMENT means false
yeah
Thanks for the clarification.
is there any placeholder that shows if it is raining, sun, thunder etc.?
I couldn't find one so far but you could probably make a javascript placeholder. https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
1 sec gaby xD making the js for him
nvm, too many methods xd
var server = BukkitServer
var world = server.getWorld(args[0])
var storm = world.hasStorm()
var thunder = world.isThundering()
var clear = world.isClearWeather()
if (clear) "&aClear Weather"
if (thunder) "&aThunder"
if (storm) "&aStorm"``` this will work I guess. @twin lintel you just need to learn how to make the javascript from the link above.
yo @rare lily can't you add this to your World expansion? Or is it already there because I can't seem to find it on the wiki
Could one of the Masters of the Universe please build and publish a PAPI-Expansion-Server update, to include %server_variant%. The code has been on GitHub since December 22.
I meant an "official" release.
It will disappear. "Feature" of Discord.
oh I see. well then time to wait for Piggy.
He's here. That's why I posted the request.
try now
Thank you.
hii guys
help please
i want to add these placeholders
%eggwars_player_count% - Gives the total amount of players in eggwars
but when i put this in holographic display it only shows %eggwars_player_count%
?
that's because HolographicDisplay doesn't support PAPI by itself. you also need the plugins: Protocollib and HolographicExtension
do /papi parse me %eggwars_player_count% what does it say?
ugh what EggWars plugin are you using? Can you link?
?startuplog
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 this ^
can you use another pastebin? Like Hastebin or paste.helpch.at? because this one doesn't work https://i.imgur.com/e8MgDK5.png
why are you using leaked plugins? π¦
ohh is it because of that?
π¨ A user has been caught in our great nation using off-brand products, they've been dealt with accordingly
feel free to tag me next time for stuff like this
wouldn't have seen your message if I wasn't tagged, as I didn't have the window open & notifications are turned off
Can anyone help me with this? I still haven't been able to figure out what the issue is
are you using the Vault Expansion Baltop feature?
No, as far as I know I'm only using its balance_formatted placeholder
hmm what's your Vault Expansion version? do /papi info Vault
Version 1.7.0 :)
hmm and what Vault plugin version?
also can you try going to plugins/PlacehodlerAPI/expansions and delete all the jars that have anything to do with Vault from there and then do /papi ecloud download Vault 1.6.0 then /papi reload?
Why is it lots of [m in your log (seams little off)?
Oki I've done this now. The error only showed up every now and then though, so I'd have to wait a few hours to actually know if that fixed it
Hi everyone!
I'm looking for a way to get the server name as a placeholder.
I tried installing the Server expansion which has a placeholder called %server_name% but as far as I can tell it doesn't give the actual server name, but instead loads this variable from the PlaceholderAPI config file.
Is there any way to get the actual server name, i.e. the value of server-name in server.properties?
Thank you in advance!
yeah you can make a javascript placeholder: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
the code would look like this ```js
function getServerName() {
var server = BukkitServer
var name = server.getName()
return name
}
getServerName()
Someone know why %statistic_join_game% and %player_first_join_date% does not work? I got a very big lore and I can't even read what he say
do /papi ecloud download Statistic, then /papi ecloud download Player and then /papi reload
can you do /papi parse me %player_name% just to test if the expansion works?
hmm can you do /papi info Player and tell me what version it says?
1.7.2
hmm and you're 100% sure you did /papi parse me %player_first_join_date% ?
try copying the command from here
and doing it
Ok
Ye I got the registration date
But in a gui he gave me a link to the docs I guess
Ohh my bad beacuse I cant' se the whole lore, I used the smaller gui and I saw it work
The error was for %statistic_join_game%'
"Unknown statistics"
Thank you very much for your reply! The getName method did not give me exactly what I wanted but I think I will be able to solve my problem with a similar approach using another method. Thank you and keep up the good work!
@wintry herald,
Please respect the rules, be patient and don't ping staff members!
How i can insert a permission to open a menu in DeluxeMenus?
open requirements
yes
'Bank':
open_requirement:
requirements:
BankVip:
type: has permission
permission: menu.bankvip
but don't work
i can open menu
move the open_requirements into the menu settings rather than in an item
I need help with the plug
could someone contact me in private message?
Hi i saw that DeluxeChat can change the chat format but i cant figure out how to do it
What do you mean?
follow the instructions in there.
I think #plugin-updates boot buging, it has say new update has coming even if the plugin is not updated (think it has done it two/three times now).
For some reason this is happening when I try to download a expansion. https://paste.helpch.at/ufecelarer.bash
oh oops
You can only install it on all servers but not bungee
I found out... I had just problems by showing prefix. I use luckperms. So I thought it was that I needed, but I was wrong. π
Hey I'm having issues regarding a placeholder with another plugin being used with DeluxeMenus. I have no idea where to go so I'm hoping I'm in the right place for it but using VotingPlugin by BenCodez I'm trying to use one of their placeholders inside of a menu however in the config it's written as %VotingPlugin_CanVote%yet the output in the menu is %votingplugin_CanVote%. The capitalisation is gone from the output and there for is not showing the actual placeholder
I tried to use the script you passed, but I get this error when running it [17:19:49 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'clima':
TypeError: null has no such function "hasStorm" in <eval> at line number 3
@twin lintel,
Please respect the rules, be patient and don't ping staff members!
what's your server version?
last build paper
so 1.16.5? Weird. hasStrom should work then.
1.16.5
oh wait
can you show me how you used it?
like the %javascript...% part?
@twin lintel
/papi parse me %javascript_clima%
oh that's the problem
you have to do /papi parse me %javascript_clima_WORLDNAME%
change WORLDNAME to whatever the world you want to test for is.
wow, now it works, thanks
no problem.
where do I find the variables that I can use like rain, storm and etc?
here are the World methods: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/World.html
using the world expansion can I get the current biome that the player is in, but it is in English, can I get the name of the biome in the server or client language?
probably not
that script you showed me seems to be working well, but it is showing that it is thunderstorm, but it is not even raining, you know why this is happening?
1 second.
var server = BukkitServer
function getWeather(worldName) {
var world = server.getWorld(worldName)
if (world == null) return "Wrong world name"
var thunder = world.isThundering()
var clear = world.isClearWeather()
var storm = world.hasStorm()
if (clear) return "&aClear Weather"
else if (thunder) return "&aThunder"
else if (storm) return "&aStorm"
else return "Something went wrong"
}
getWeather(args[0])``` can you use this one and see if it works?
@twin lintel
it is working, but I need to wait for a while and see if it happens again as it is random
Warning: Nashorn engine is planned to be removed from a future JDK release
is there another engine to be used?
how can i round the hunger saturation number ? like from 1.8000001 to 1.8 only
is there a way to check for nbt info for checkitem addon?
All good was just curious
BlitzZZzz the code still shows thunderstorms on some days that it's not even raining
it happens on some random days
Since 1.16.5 Update:
Run /papi dump
Hi, I have a server with custom biomes, tab and scoreboard, inside the scoreboard I would like to enter the type of biome when the player is located in.
Researching I realized that your plugin was my solution, the problem is when I try to download Expansion World the game chat gives me an error (Failed to find an expansion named world).
I also tried to insert it manually from your link
https://api.extendedclip.com/expansions/world/
but it still doesn't work = (.
[PlaceholderAPI] expansion class WorldExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/permission/Permission
what can I do?
My English is not perfect, Thank you in advance!
Install Vault plugin for your server
thank yu very much!!
It works but the additional biomes write them "null".
solvable?
Can someone help me about this? Is my latest statistic placehoder that didn't work 
Where have you seen the placeholder statistic_join_Game? that's not on the wiki from what I can seee
I've even took a look at the code and there is no join_game placeholder. idk where you took that from
So there isn't any join_game placeholder but I got that message wtf
Oh ok
on a bungee server, should I add the placeholderapi inside the bungee plugins folder?
No
Barry
the same problem is still happening, sometimes it's not even raining but it shows that it's thundering!
@smoky spoke you need the plugin
hello, I have an item with the lore: 'This gives you clinical depression'
How do I do to use the checkitem placeholder if the item has the same lore of contains that?
what plugin?
@smoky spoke,
Please respect the rules, be patient and don't ping staff members!
sorry for the ping
Is it this you want? change stone to what item you will give players.
%checkitem_give_mat:stone,loreequals:&fThis gives you|&fclinical depression%
If you want it on same lore line skip |.
%checkitem_give_mat:stone,loreequals:&fThis gives you clinical depression%
And if you will give more an one, change 5 too what you want.
%checkitem_give_mat:stone,amt:5,loreequals:&fThis gives you clinical depression%
is there a placeholder which outputs the ingame time?
hm?
bruh I can't send paste.gg links
plz
get me lvl 1
help
omfg
get
me
lvl
1
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
okay
I did /papi ecloud download Bungee
and then /papi ecloud reload
and that warn didn't reload the plugin
oh noice now im llv1
is there a placeholder which outputs the ingame time?
%world_time_<world>%
Anyone know if it's possible to concatenate/substring placeholders at all, or split by a delimiter?
I need help from PAPI.
Contact request in private message
Noone is going to assist you in DMs, either ask your question in here, or no can do
I have a problem with PlayTimes plugin, I contacted the plugin develpoer and I was redirected here to use papi or holrafic help. The problem is that when a placeholder from a plug-in is added to the hologram, it completely doesn't work. After contacting the develpoer of this plugin, I got information that the error is on the side of Holografic or papi Are you able to help me?
Holographic Displays (pressume that's what you're using) doesn't support papi in by itself, you'll need an addon for it which adds that functionality
Of course I have the Holografic Extension
Does the placeholder work when using papi parse
It means?
/papi parse me %placeholder%
The command returns my nickname
Meaning it works properly I'm assuming
When I create a hologram with a placeholder, it forms like this: %PlayTimes_topname1%
I could send a picture
?startuplog
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 that over so we can make sure holographic extension is working correctly
As he enters / papi reload I have a notification all the time: 6 placeholder hooks successfully registered!
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
Paste the startup log
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
β’ HelpChat Paste - Usage
β’ Hastebin
I want to check the item, and maybe the lore is too big because it can't parse it
?checkitem
I tried now with an item with the lore:
A good stone with a good price
that maybe will be helpfull.
When I use the checkitem loreequals or lorecontains, it doesn't work, any help?
I guess you use old server version some has big limits in chat? tips run it from console.
loreequals is need if you use give command.
Show your placeholder you try with.
1.8.8
yea it has big limits in chat. run it from console like papi parse "your name" %placeholder% can you show what you haS TRY WITH.
https://paste.helpch.at/cidohedele.bash
I did /papi ecloud download Bungee
and then /papi ecloud reload
and that warn didn't reload the plugin
[22:06:38 ERROR]: [PlaceholderAPI] expansion class EssentialsExpansion is outdated:
[22:06:38 ERROR]: [PlaceholderAPI] expansion class VaultExpansion is outdated:
Why does it do this
does it not say anthing else?
[22:06:38] [Server thread/ERROR]: [PlaceholderAPI] expansion class VaultExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/economy/Economy
[22:06:38] [Server thread/ERROR]: [PlaceholderAPI] expansion class EssentialsExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use net/ess3/api/IEssentials
you don't have Vault and EssentialsX installed.
Oh nice
I'll tell that to the guy
Someone broke papi while using my plugin, so my plugin didn't work
Go to plugins/placeholderapi/expansions and delete the ConfigExpansion. it breaks PAPI.
then do /papi reload and it should work
Hi is there a way we can update the Heroes expansion for PAPI without having access to the original author? As I'm not sure if we can contact them or not. In other words, upload a updated version for the expansion with a another account? If it were possible to make a new account? (P.S. a pull request was done to the original source as well some months ago.)
My placeholders aren't working after restart.. I have updated the plugin to latest version and still is doing it..
I have to do /papi reload for the placeholders to load in I don't even have to download them but the just don't enable on startup...
Is there a placeholder for clearlagg? I'd like to add a timer to my scoreboard.
and this has placeholders for scoreboards?
thanks very much malloc π
some times when i restart my server all of my papi ecloud downloads unistall
Is there a way to prevent the cooldown reset after restarting the server? (Using the cooldown Javascript placeholder)
make sure you have the latest PAPI build and latest Javascript expansion. I think it was fixed in an update. if that doesn't work I recommend just using the MasterCooldowns plugin.
Have you checked the logs those times to see if they tell you anything?
Thank you!
I set the Progress bar and get that error spamming console: [Progress] Couldn't get the number from {percent. The progress will be 0%.
what progress bar?
Progress PAPI expansion
how did you make it? what did you use?
&b[%progress_bar_{PERCENT_DONE money}_c:&d|_p:&d|_r:&3|_l:20_m:100_fullbar:&a&lCompleted!%&b]
pls put in ``
The "World" ecloud expansion doesn't exist. Can't download it.
&b[%progress_bar_{PERCENT_DONE money}_c:&d|_p:&d|_r:&3|_l:20_m:100_fullbar:&a&lCompleted!%&b]
[21:51:49 INFO]: [Progress] Couldn't get the number from {percent. The progress will be 0%.```
15.02 04:26:24 [Server] INFO java.lang.NullPointerException: null
15.02 04:26:24 [Server] INFO at me.SuperRonanCraft.expansionMySQL.Main.register(Main.java:35) ~[?:?]
15.02 04:26:24 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:139) ~[?:?]
15.02 04:26:24 [Server] INFO at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at java.util.stream.LongPipeline.reduce(LongPipeline.java:461) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at java.util.stream.LongPipeline.sum(LongPipeline.java:419) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:593) ~[?:1.8.0_275]
15.02 04:26:24 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?]
15.02 04:26:24 [Server] INFO at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
15.02 04:26:24 [Server] INFO at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.4.jar:git-Paper-318]```
I am using MySQL expansion for PAPI
I am using the Cops and Crims plugin, and the developer said for stats you will need this expansion.
I am using latest version of both plugin and expansion.
i'm trying to hooking into placeholderapi with maven, however it just keeps giving me an error when i paste in the dependency chunk of code
I mean... I'm pretty sure it will push that version if you aren't on it
and you're on dev build, which isn't 2.10.9 so...
π€·ββοΈ whenever 2.10.10 comes out π
(this is an updater thing)
Share your pom.
It looks like an issue with the MySQL expansion (ran by a 3rd party author) I suggest reaching out to them if you can find their contact.
okay thanks
15.02 06:54:47 [Server] INFO java.util.concurrent.CompletionException: java.lang.NullPointerException
15.02 06:54:47 [Server] INFO at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:645) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
15.02 06:54:47 [Server] INFO Caused by: java.lang.NullPointerException
15.02 06:54:47 [Server] INFO at me.clip.placeholderapi.expansion.manager.CloudExpansionManager.lambda$null$7(CloudExpansionManager.java:199) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.HashMap.forEach(HashMap.java:1336) ~[?:?]
15.02 06:54:47 [Server] INFO at me.clip.placeholderapi.expansion.manager.CloudExpansionManager.lambda$fetch$8(CloudExpansionManager.java:192) ~[?:?]
15.02 06:54:47 [Server] INFO at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642) ~[?:?]
15.02 06:54:47 [Server] INFO ... 6 more```
Can anyone help explain what this error is
Anytime I do /papi ecloud download <expansionname>
for any expansion?
can you go to plugins/placeholderapi/expansions and delete all the expansions that are there?
and then do /papi reload and redownload all your expansions
Okay did that, and getting same error in console
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 one of these:
(However we do prefer if you used our paste :))
β’ HelpChat Paste - Usage
β’ Hastebin
Rebooted and it seemed to fixed it
oh welp xD
Can't believe it hahaha
Always something simple
Okay maybe not fixed, getting the error again. Possibly caused by one of the placeholders downloaded? I downloaded the 'statz' placeholder and reloaded then got the same error in console as before
and nothing else? just that?
I downloaded Server and Player placeholders with no issues, then once I downloaded the statz and reloaded it gave that error
try deleting the statz expansion and restarting the server
Done that, now when I reload there are no errors
yeah so probably that expansion was breaking everything
its weird that it didn't give any other errors
because usually it should give more specific info
Yeah it was literally just what I posted previously
And strange how all of a sudden it has stopped working?
Been using that expansion for a good few months now and never had any issues like this
did you just update PAPI from 2.10.6 or lower?
because I know the Skript expansion that's on the ecloud is very outdated and breaks on PAPI 2.10.7+
oh you can try this one: https://github.com/Altruiis/skript-expansion/releases/
because its oudated. the expansion
wait I'm so fucking dumb
sorry
xD
the statz one is breaking right?
not the skript lmao
Yeah lol statz
well I mean same reason
why it breaks
just I don't think there's a more updated Statz one
Are the expansions maintained by the developers of the plugin?
most of the times but not always
So would you recommend I bring this up with the dev of Statz? or is this error completely related to papi?
let me check who made the current expansion
oh @limber ice ? you made the Statz expansion?
is there a more updated one by any chance?
yes there is, what version of Statz?
@crystal depot ^
Statz - 1.6.2
thats about the version where the expansion is built into the plugin, try removing the expansion from the papi expansion folder
if not I'm running statz-1.6.2-SNAPSHOT-57 which does have it
Okay I removed the expansion and reloaded but got the same error, https://paste.helpch.at/ajupeparuj.apache
Will give that snapshot a good
I believe you will need to reboot server
@crystal depot if the placeholders don't work when you reload Statz , use latest DEV version
Rebooted the server without the statz expansion, all was fine. Also put in the dev version of statz
So now I shouldn't need the expansion?
correct the expansion is built into Statz just like Autorank is now also
Great, thank you very much
Your Welcome
Could i request a plugin for the PlaceholderAPI to use in one of my scoreboards plugin (QuickBoard) like Hypixel did for example.. What i wanted to do was import %mystery_dust% with the GadgetMenu (https://www.spigotmc.org/resources/gadgetsmenu-1-8-1-16-4-free.10885/ and also for the premium plugin: https://www.spigotmc.org/resources/gadgetsmenu-1-8-1-16-4-premium.62831/)
placeholder for coordinates doesnt seem to work for me
what placeholder?
%player_x%
have u downloaded the expansion?
Is this an error to report to Papi, or luckperms?
[17:13:20 WARN]: [LuckPerms] An exception was thrown by me.lucko.extracontexts.calculators.PlaceholderApiCalculator whilst calculating the context of subject CraftPlayer{name=Fredthedoggy}
luckperms by the looks of it
nvm fixed it
u have to ask the plugin authors to add functionality to placeholderapi, not PAPI itself
ooh, and this error is happening:
https://paste.helpch.at/moxohezasu.md
bentobox or luckperms?
i guess bentobox then
couldnt tell u tho tbh, looks like LP is just taking the input from bentobox and throwing the error
Help
Β» Give the helpers some details
Β» Ask suitable questions
Β» Be polite
Β» Wait
Who is one of the authors then? I see non
wait are u asking for placeholders to be created? because Gadgets menu already has placeholders
Good evening all, I have a question regarding the Baltop placeholders from the Vault expansion. I have enabled Baltop placeholders in PlaceholderAPI config.yml, but still receiving no outputs for placeholders such as %vault_eco_top_balance_formatted_1%. Any help/guidance would be greatly appreciated π
what is the placeholder returning exactly?
is it just a blank line or returning ur input back to u?
When I request a balance it returns 0, when it is a player name nothing
preetty sure baltop is broken in Vault 1.7. Even if you enable it in config.yml
either broken or disabled not sure.
just downgrade to 1.6
o lol
I tried to reload papi then restarted when it wasn't displaying the correct values. I will try downgrading to 1.6 since I did enable it in the config.
Still having no luck, the only difference with 1.6 appears to be that Baltop was enabled=true in config.yml by default.
I'm going to try a different economy plugin quickly just to see if the plugin itself is causing this problem.
Looks like it was the plugin 'Economy' causing the issue, the placeholders are displaying the correct values now I have moved to 'xConomy'
Thanks for your help π
so I have %math_{player_health}*5[precision:0]% and its just displaying the text itself, even when I parse it.
I have Player and Math installed
and it works for the person from the other plugin im troubleshooting
it works fine as %math_{player_health}*5% I just dont want 3 decimal places
[precision:0] was changed in the latest version of the expansion
how should I be using it now?
%math_[precision]:[rounding]_<expression>% this is how it should look but I'm not fully sure try %math_precision:0_math-here%
damn, cant quite figure it out
https://cdn.discordapp.com/attachments/810793604606853140/810964695426400296/unknown.png can someone help me? What is papi doing?
oh wait use: %math_0:_{player_health}*5%
IDK if that's PAPI. that looks like me DeluxeHub trying to use a method that doesn't exist. are you 100% sure you got PAPI installed?
I was trying to use %vault_eco_balance% for deluxehub is this the right papi?
yeah that's the placeholder for how much money you have. make sure you've downloaded the expansion by doing /papi ecloud download Vault and then /papi reload
no problem
hey, how do i remove the numbers from the scoreboard
you can't. minecraft doesn't allow that. you can make them custom tho.
yes. how?
are you developing a plugin? or do you want a plugin that does that?
I don't think you can using that plugin
which plugin can i use then
why is this in #placeholder-api
why not xD
and link?
how do i make %exp%
so it shows the exp
is the command %exp% or like %exp_blablabs%
%player_level% use this and first make sure you have PlaceholderAPI installed and then do these commands /papi ecloud download Player then /papi reload
and one more thing, how do i make it show how much time played
@turbid tide sorry if im not allowed to ping
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
oof
use %statistic_time_played and once again first /papi ecloud download Statistic then /papi reload
thx
and please don't spam all channels.
um. when i did that the line i did that to disappeared
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
line-4:
text:
- "&a&lPlayed &f&l:"
random: false
interval: 60
score: "%statistic_time_played%"
anything wrong there?
you can only use numbers asscore...
as score*
%statistic_Time_played% will return something like 1h 2m 3s
no I'm not...
ohh
Imagine saying 'ur wrong' to a guy that's helping π₯²
can i change it so it doesnt do 1h 2m but only numbers?
you can use %statistic_seconds_played% and it will only show a number (seconds played)
can i do minutes played?
yes %statisitc_minutes_played%
you can find a full list of placeholders here: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders
wait it shows totalplayed?
Hello, I would like to know what is %objective_score_<obj-name>_[otherEntry]% ββI have an entity with the score, how do I use it?
Hey, im hoping someone might have an idea on how i can figure this out. PremiumVanish doesnt have a placeholder that shows if someone is vanished or not other than displaying "Yes" or "No". I was hoping to use this placeholder in the tab list, but obviously putting "No" behind everyones name wouldnt work out too well. I know theres the formatter ecloud to replace "No" with "", but that would still leave "Yes". Does anyone got an idea how i can essentially formatter replace with 2 variables?
Hi
Is there a way to manually edit the value of a placeholder?
Like modify the playtime of a user
Hello
Is there a way to parse two or more placeholders in one?
like
player has: [10 diamonds] && [1000 money]
javascript placeholder
an example?
idk javascript myself, but its a simple if statement and u could probably do it by looking at the javascript expansion wiki
u just gotta check with the checkitem expansion for the diamonds then check the money with vault expansion (%vault_eco_balance%)
idk if u can edit the users data in the world data folder, if not a plugin would be able to edit statistics for u
no clue of that, and the wiki seems confusing for me, maybe I need to ask a staff I guess
im guessing this is to do with the javascript nashorn engine not working on java 15 and this placeholder looks like its just doing %player_exp_to_level%
var hasDiamonds = %checkitem_amount_mat:DIAMOND%
var hasMoney = %vault_eco_balance%
function playerRequirements() {
if (hasDiamonds >= 10 && hasMoney >= 1000) {
return "yes"
}
else {
return "no"
}
}
put this into a file and follow the guide on how to use ingame @sturdy raft tell me if it works
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts
oh, that's awesome, thanks dude
I appreciate it
are u able to downgrade ur java version for the time being or no? im pretty sure the javascript expansion is almost ready anyway, but if ur desperate
understandable
Anyone able to help me with jjavascript placeholders
i have this
a=a.replace(/\,/g,'');
a=parseInt(a,10);
1st issue: after it goes over 1bil, it turns into E numbers
2nd issue: it has a .0 at the end even tho its meant to be an integer not a double
Can anyone help me fix it? (feel free to tag me)
hey does anyone have an extension for getting a players team color? It would help me out a ton
@warm topaz could also use the javascript requirement type
I use TAB [1.7.x - 1.16.5] 2.8.10 and latest papi version
https://paste.helpch.at/ikakiqupol.bash
Failed to download PlaceholderAPI expansions
What expansion are you trying to download?
"(Unknown Source)"
it doesn't recognise the thing you're trying to download
See https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders for a list of available placeholders.
What does the original placeholder give you, %ultraprison_blocks%?
A raw integer or already the E stuff? It's not clear from your question...
to remove the .0 return number.toFixed()
I think there's an expansion called Team
yeah here you go: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#team
You can use the javascript expansion on java 15 as long as you also have the GraalVM I think. if you don't then you'll have to wait a bit until thienbao finishes the addition of the new engine which will also work with java 15
depends if its DM or not π
@warm topaz,
Please respect the rules, be patient and don't ping staff members!
@turbid tide
@fossil wasp,
Please respect the rules, be patient and don't ping staff members!
Can anyone help me, support
?help
Β» Give the helpers some details
Β» Ask suitable questions
Β» Be polite
Β» Wait
@fossil wasp
Can someone tell me if its possible to make javascript requirements go higher than 2147483647 (java integer limit)
Does not work if the placeholder returns more than 2147483647
@fossil wasp read the bot message...
?help reeeaaad
Β» Give the helpers some details
Β» Ask suitable questions
Β» Be polite
Β» Wait
I understand, but I don't have a specific problem with placeholders, I think everything is fine, but specifically I need help to expand
I think BigInt is what you need to use. Idk for sure if it actually works with the nashorn engine
How on earth would I use that? someone made me that javascript placeholder like 2 years ago lol
ugh. do you even know how the js works? if not I can't really teach you javascript.
you'd have to declare tho the integers as big intengers
I kinda know
I know it starts with a as the placeholder
and then each line it does a different thing to it
thats about as far as my java or javascript knowledge goes
@turbid tide
@fossil wasp please stop pinging people and just tell us what your problem is.
I don't have the time to go thru it and update it myself am afraid and neither to teach you javascript. you could try w3schools and see if you understand or maybe get someone in #805698757411995648 or #805698761442590730 to help you out.
All right, all right, you finish first, I'm sorry
Its all good, i think ill just get my dev to add the raw number placeholder thanks lol
@fossil wasp just ask what u need to ask
The support staff arent mind readers just post ur issue and someone will reply/tag you
No no everything is fine, I'm just interested in something about the experience formatter related to the Pope, but finish first, no problem!
what do you mean experience formatter?
like the placeholder that tells you how much exp a player has?
If so I can help you with that
Well it has more to do with extansion
so you're trying to show how much exp a player has?
use %player_level% if you want to show the levels
if you want to show the actual exp not just the levels you'll have to make a javascript placeholder
You don't need to do that
But it's okay than I'm interested in the formatter type when he writes to a player that he has 35,500 levels I'm interested in extansion to write 35,600
Ups
player_exp shows percentage Ewan.
not actual exp
there isn't one that just shows all exp.
I've made a javascript tho for it. I think its on the community scripts
%player_total_exp% shows the raw number (1000000)
%formatter_number_format_{player_total_exp}% shows the number with commas (1,000,000)
for the second one you need to /papi ecloud download formatter
and /papi ecloud download player
then /papi reload
and %formatter_number_format_{player_total_exp}% will work
Ewan you see that'll just be a problem because it shows all the exp you had since you last spawned.
so if you used some exp it won't actually go down
No no it's okay really, the rest I know of course only the formatter fucked me up a bit, thanks
ah ok then. I understood your question wrong then. sorry
I apologize for the constant pinning, because I asked for help because I could not specifically ask the bot such a question because obt causes problems I think it would not make sense to ask something like that to the bot I think
the bot just tells you what to do. You can ask even if no one is in this chat and someone will try and help. you don't have to ping anyone.
So% formatter_number_format_ {player_total_exp}% is correct and so it should be?
yeah that should format your exp
All right all right, I apologize again!
no worries. you'll know the next time
Okay okay, thank you for the reply, I apologize once again for the constant pinning, it wonβt happen again!
I can uses placeholder with waterfall ?
No. PlaceholderAPI does not support bungee yet.
you just have to put PlaceholderAPI on your backend servers (spigot, paper etc.) and use them there
Okay thx
do you know what your server's java version is?
ewwwwwwwwwww
no no
oh. seems like the Formatter expansion was built on an newer version than yours anyways.
java
can you update the java version?
if not download an older version of the Formatter expansion
by doing /papi ecloud download Formatter 1.5.1 then /papi reload
go to plugins/PlaceholderAPI/ecloud and delete all the formatter expansions. so all the .jar in there that have the Formatter name in them and then try these commands /papi ecloud download Formatter 1.5.0 and then /papi reload
also update PlaceholderAPI plugin to 2.10.9 please
ok then do what I said above.
Yes I did what you said, the Pope said, but this specifically for the formatter
As you said about the formatter bese exp, sorry again but if you can write to me
Since I use a feather board and the command should go {placeholderapi_ and then what do I want example {placeholderapi_server_time_EE, MMM dd}
oh you can't use %formatter_number_format_{player_total_exp}% in FeatherBoard I'm afraid
it will just break
And do you think that featherboard does not specifically support that?
it will just break because you'd have to use {placeholderapi_formatter_number_format_{player_total_exp}} and it will break because of the double {}
Yes yes, it doesn't matter, I definitely have a more efficient plugin called kiteboard, so I'll post it instead of fb
NARDEBA FOR FORMATTER %formatter_number_format_ {player_total_exp}% also defaults to supermobcoins I mean supports?
yes I think it will work for supermobcoins as well
Okay, thank you again!
hey
I use supervanish on my server, and I was wondering what the placeholder was for players that are online excluding vanished players
Does anyone know the best way to have conditional spacing? So for player name formatting I have: %vault-prefix% %deluxetags_tag% if there is no tag then there is a double space
PlaceholderAPI's javascript expansion. You can learn more about it here: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
also the code is made for you already here:
Add a space to the chat format if there's a tag
var tag = "%deluxetags_tag%";
function tagFormat() {
return tag === "" ? "" : " " + tag;
}
tagFormat();
Amazing thank you
hey, how do i make in my scoreboard to show which version ur in, like %version_example%
anyone?
thank you
How do I use javascript extension with essentials chat?
My placeholders aren't working after restart.. I have updated the plugin to latest version and still is doing it..
I have to do /papi reload for the placeholders to load in I don't even have to download them but the just don't enable on startup...
papi pinger always show Offline, but i pinged my bungee...
What is the placeholder api?
a plugin to put placeholders like a player's name in a scoreboard
How do I use javascript extension with essentials chat?
you can't. well you can but you have to use the ChatInjector plugin.
alrighty
mind if I bump this?
Wait a second
How the hell no one tells me that I can implement VersionSpecific into the expansion??
what's that?
Why doesnt PAPI hook my vault? ._.
Try using /papi reload
Was excited while I'm trying to look for clues which I can register Graal on PAPI source, sorry
it says "no expansions were registered" :I
I got my own version of vault, working well with my own Economy plugin. But at its core its still vault. I dont know why it doesnt work
More funny is, thats I got a bungeecord server. And at the rest of my servers its working. Just on one of those i got %vault_eco_balance%
Where can I change the server name that is used in the placeholder %server_name%? Is it located in server.properties?
No. I thought we removed that placeholder though. Itβs pretty pointless when you can just write the actual name of the server
true
Itβs not like anything dynamic is needed for that one
I was planning on just copy pasting this config in multiple servers
But if you do have it, pretty sure itβs in the papi config in the server expansion settings
it is still in the wiki and it works in my tab, so pretty sure it is still there :p
To solve that: https://pastebin.com/XL0tm6m6
@balmy marten you can probably help this man out ^
idk what the ecloud rules are
Nothing stopping you creating your own expansion and uploading it separately
@muted cipher ^
that's a problem with QuickBoard not PlaceholderAPI. you have a string that's longer than 64.
I haven o idea where. I assume in the scoreboard
But:
[03:33:29 INFO]: [Progress] Couldn't get the number from {percent. The progress will be 0%.```
what's this? {PERCENT_DONE money}?
Rankup plugin papi
Idk if I can send that web: https://github.com/okx-code/Rankup3/wiki/PAPI-Placeholders
well that's not how you use it ... /papi parse me &b[%progress_bar_{rankup_money_left}_c:&d|_p:&d|_r:&3|_l:20_m:100_fullbar:&a&lCompletado%&b] or whatever the placeholder is
Thks
Is it possible to add aliases for %player_world%?
I think implementing Taskable in Placeholder expansion class is just useless, cause it just acts like register and unregister somewhat
I thought they can do like timer stuff
same as the #deluxechat question, with javascript but that code is not made so you'll have to make it
Ty π again
i have saberfactions. is that supported with placeholderapi?
@silver minnow Unknown expansion.
@bronze bison yo
@heady urchin,
Please respect the rules, be patient and don't ping staff members!
Ur progress expansion is broken
/papi parse me %math_({vault_eco_balance_fixed}/{ultraprison_next_price})*100[precision:0]% returns 50
but
/papi parse me %progress_percentage_{math_({vault_eco_balance_fixed}/{ultraprison_next_price})*100[precision:0]}% returns .00
anyone know how to fix hex colours not working not working with a placeholder for prefix
Hi
I have a problem i don't know where ask my question, i will ask here
When i download the faction expansion, she's not detect with a papi reload. If someone can help me please ?
I have this message
if you restart your server does it work
try /papi list
See my screenshot
oh yea
He is not in my papi list
The /papi reload don't detect him
But he is in the extension directory
I'm in 1.8.8 version
when your run /papi reload is there any error in console
Oh yes wait a second
I send you the error message
factions is attempting to register placeholders via a placeholderHook class which is no longer supported !
For sure that's the problem
I'm using the last placeholder-api version
can someone help me?
Β» Give the helpers some details
Β» Ask suitable questions
Β» Be polite
Β» Wait
@empty flint ^
.
Already asked but no one answered smh
.
Should I copy and paste it here???!?!?!
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
β’ HelpChat Paste - Usage
β’ Hastebin
i have an updated version of that expansion, ill try to find it, 1 sec
your computer can't access the internet im assuming. iirc last time i got that error my internet was down
I'm using a hosting service π€
have you tried it recently? its possible the website was down when you tried it last
Yes
hmm. not too sure then. might be something the hosting company needs to fix for you?
but the website is working fine, i just tested downloading something
There is no time to wait! Ask your question @viscid escarp!
Vault placeholder's not working
- %vault_eco_top_balance_formatted_#%
- %vault_eco_top_player_#%
- https://prnt.sc/zxixnr
What plugin?
Vault
nono i mean holo plugin
aaa
and try doing /papi parse me %vault_eco_top_balance_formatted_#%
same with the other placeholder
- https://prnt.sc/zxjn67 command
- https://prnt.sc/zxjoui hologram
i can't send photo aw
@viscid escarp,
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Do i need set %vault_eco_top_balance_formatted_#1% or %vault_eco_top_balance_formatted_1% ?
okay nothing
I fixed it
Thanks again
hi
Someone tells me if there is a placeholder that indicates the head. More specifically the value, that of "ey376473nsh ..."
You can manual download from ecloud.
Probably should have also mentioned I get this on attempting to register: "Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us." (https://api.extendedclip.com/register/)
@muted cipher,
Please respect the rules, be patient and don't ping staff members!
@muted cipher,
Please respect the rules, be patient and don't ping staff members!
uh is that a bug/false positive on editing an reply (without mention) ?
nah its cause you edited it
doesnt track if that message has already triggered a filter
anyway, dm me a username and email and i'll create the account from the backend
Any particular reason why this was disabled? e.g. just preventing too many unused ones or clones, or simply spam?
Probably to avoid abuse, you don't want people publishing fake expansions with backdoors in them
I suppose though they should also be verified. I guess there's only so many anyway so it would probably be easier to whitelist than filter all as well.
Itβs disabled because registration is kind of broken and I havenβt got around to fix it @muted cipher
fair enough
My email verification stuff is all screwed up so when you register from anonymous, it throws an error after registration and doesnβt send the email. Itβs an easy fix but disabling registration was the lazy way I took haha
yo the deluxetag isnt showing in chat
how can i make the deluxe tag show up in chat using essentials?
Yep
Hi, I read this: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-external-plugin
Is there a way to return a Localised String for the receiver?
CommandSender (English Player) enter a command to get Information from another Player (German Player)
onPlaceholderRequest(Player, String) gets the German Player but I don't have a way to find what Language the "CommandSender" has..
I hope I'm only blind and there is a way...
Can't you check for the Player's locale? https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html#getLocale()
declaration: package: org.bukkit.entity, interface: Player
But Player is the player to get the Information from and not the player how receive the message oO
oh
then I guess you would need to make another placeholder, that returns a string based on an argument (which is the first placeholder parsed as another player)
And I use the getLocale function in my own plugins to send all Messages in the right Language back to the player works fine.
public void onJoin(PlayerJoinEvent event) {
event.setJoinMessage(null);
getServer().getOnlinePlayers().foreach(p -> {
String joinText;
switch (p.getLocale()) {
case "DE" -> joinText = "%player_name% &abetrat den Server! Sein Rang ist &f%vault_rank%";
case default -> joinText = "%player_name% &ajoined the server! They are rank &f%vault_rank%";
}
/*
* We parse the placeholders using "setPlaceholders"
* This would turn %vault_rank% into the name of the Group, that the
* joining player has.
*/
joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);
p.sendMessage(joinText);
});
}
%vault_rank% should return BΓΌrger for German Users and Citizen for English players...
I don't need break...
I use java 11 and this was my Question: #placeholder-api message
this is only a example what was my problem..
its up to the expansions themselves for any translations, placeholderapi will only parse whatever is given to it
and yes u do need break, without break itll continue to fall through the switch statement, even if the case is true
(if ur doing just german and english using an if statement would be more beneficial too)
Sorry, I use java 15 and with 14 a new switch was implementet: https://openjdk.java.net/jeps/361
With Java 11 var was implemented...
ah
Ok I want to implement my own placeholder, how do I return a receiver Localised String?
this class can't do it: PlaceholderExpansion (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-external-plugin)
why not?
You canβt use curly brackets placeholders inside another curly brackets placeholder. However, the expansion has a solution for this which is using $(placeholder)$ instead of curly brackets.
ty
Hi?
}
no there isn't one afaik I'm afraid
you can go and manually convert them on minecraft-heads.com but no placeholder for it
oh damn I didn't know this. PAPI has so many hidden things xD I should go thru the code at some time
is there a way to clear a placeholder
what do you mean by clear?
the placeholder im using counts how many kills you hav
have*
and i want to be able to reset it
is there a way to do that?
is it one from the Statistic expansion?
yea
all that data is saved in your main world folder in the stats fodler
ty
is there like an easy way to reset it
could i just delete all the files in the stats folder or would that break it
you can just delete all of them but it will reset all the statistics not just the kills
did you stop the server before deleting all that?
i restarted it after i deleted it
you have to: stop, delete, start
ooh
Can someone tell me how to display the full held item in deluxemenus gui
heyy , i need help to get placeholderAPI working on velocity , it wont load and i cant fix that in any case what did u guys think ? any idea how to geh all placeholders on to velocity ?
if there is no way to get that working please tell ^^
Unable to load plugin plugins/PlaceholderAPI-2.10.9.jar
com.velocitypowered.api.plugin.InvalidPluginException: The plugin file PlaceholderAPI-2.10.9.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.getSerializedPluginInfo(JavaPluginLoader.java:134) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.loadPluginDescription(JavaPluginLoader.java:44) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:76) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:268) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:210) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.Velocity.main(Velocity.java:55) ~[velocity.jar:1.1.3]
please any idea
The plugin file PlaceholderAPI-2.10.9.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
sure but what did i do now ? there should be a way (a version) for velocity ?
the source code looks to be only for bukkit
is port 80 open on your machine?
no
probably should be open for recieving or whatever your OS calls it
ah
