#placeholder-api
150650 messages · Page 30 of 151
waffle king also when i add galistener placeholder to deluxemenus it doesn't work it just shows the placeholder am i missing an expansion?
That expansion has not been updated in 4 years, and, clip isn't the developer for that one. Reach out to the developer, but, I doubt they really care anymore.
oh ok and ya looks like it didn't show the update issue anymore so it was the wrong version he uploaded then
Hello Friend! Could you help me with the DeluxeMenu plugin. The fact is that I run version 1.10.4 of the plugin on the papermc 1.12.2 core and everything works fine, but as soon as I want to install the latest version, I get errors in the console, they say I have incorrectly specified the id of the item and this error appears even in standard files that are created automatically by the plugin the first time.
you need to update
What exactly to update?
Here's the error: ( Material for item: examplecd in menu: advanced_menu is not a valid material name / id! )
The error im having is kiteboard 😛
@heady falcon ^
This is kinda bizzare, but I had to kinda force-update JS expansion stuff to 1.7 for new engine setup
Meanwhile, lists every features that are needed for this. Thank you
can we use /papi parse without an online player, cuz I don't want to close my IDE then start Minecraft and test and then close Minecraft and start IDE to code
Have both oppened?
that will crash my pc
If it's a player specific placeholder then yes you will need an online player
I c
i'm having a bit of an issue with the plugin
some expansions aren't working for some reason
Send a startup log
@edgy notch Unknown expansion.
yes
well the ChatColor expansion is using an outdated way to register placeholders
it needs updating.
the dev of the ChatColor expansion
no idea who it is
Is it integrated in the plugin? If yes then the dev of the plugin itself has to update it
yeah seems like its integrated
well I mean ask the dev to update
oh wait
you're using v 6.2
why?
that plugin is at version 1.10.3
or something
are you sure you have the right plugin>
Does anyone know of a Placeholder that I can use to count forward from a specific date? For example, I want to be able to set the date to say 18 December 2020 and it should display 22 Hours 39 minutes and 10 seconds
you can do it with javascript
if you want
I know I've done it before
maybe if I can find the file I'll send it to you
That'd be a big help, otherwise I'm gonna have to go and fiddle with js
after this game tho
👍
I don't need to withdraw a player's info, so is there a command to run that placeholder or I have to create my own command and try it ?
nope
doesn't seem like there is a parse command
here you go: https://paste.helpch.at/avediwajon.js
you need to use it like this: %javascript_timer_YEAR,DAY,HOUR,MINUTE,SECOND%
so for example %javascript_timer_2020_353,1,0,0%
would start a timer since yesterday 1 am
DAY = day of the year
not of the month btw
@limber flax ^
that js could probably require an update since its pretty old
but yeah xd if I do update it I'll let you know
Legend, thanks a ton!
@limber flax here you go: https://paste.helpch.at/zurewefime.js It did need updating.
the old one was a bit broken.
this one seems to work fine
I updated the math and the code
Okay, great. Thanks!
Anyone know if there is a simple way to change a color or character that appears depending on a condition being met? e.g. %haspermission_example.perm% returning a tick or cross instead of true/false or changing the color already present e.g. green or red
Thanks 🙂
well you could use the javascript placeholders
to make your own custom placeholders
read more about it here: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Yeah I did a bit of experimenting with that, it's a little annoying that the boolean thing in PlaceholderAPI's config seems to remap the output to yes/no rather than continuing to accept true/false
well you can change the output yourself in config.yml
plugins/PlaceholderAPI/config.yml
but it will change it for all PAPI placeholders that return a boolean
I have a lot of these
type: string equals ignorecase
input: '%player_has_permission_perm.1%'
output: "no"```
which could be changed to this for future proofing
``` hasperm:
type: string equals ignorecase
input: '%player_has_permission_perm.1%'
output: false```
yeah well you can change that in config.yml once again
you can change the output to whatever you want
But I'd have to make sure that green tick / red cross everywhere (and I have a bunch of menus). I'll give it a go
Thanks 🙂
If your editor has support for it, you can replace all (on my program I use ctrl+f for search and replace tool).
Yo, new to PAPI. I'm trying to use the placeholder %bungee_<servername>% in my plugin to send a message.
I already imported PAPI, how would I go about actually getting the placeholder to work in a string.
Thanks in advance.
Gotta download the expansion, run those commands 
Ok. And then what do I have to do for %bungee_<servername>% to be replaced with the number of players?
put your server name in it
ah wait
your plugin?
as in you're developing a plugin to work with papi placeholders?
Yes exactly
But I just want to broadcast a message with %bungee_<servername>%
will it work right away?
are you only using it for bungee placeholders?
Right now yes
Well yeah I read that page but do I put on event.getPlayer()? I don't have a player to use it with right?
PlaceholderAPI.setPlaceholders(Player, String);
huh?
You'll need to fake a player somehow
Got it
could you not hook into the bungee api though?
can't you use null?
@mint fable I'm trying out with this first but you're right I should use Bungee messages and whatnot
thx I'll try with null
@mint fable sry for ping you, beside the issue I send on github, I seams too fine. Has not find any more bugs soo far.
@flint nacelle,
So i should say it do what is say it should do and give items or send a number if it cant.
give should not be used as a requirement
it should be used as a command
same for remove
because every time the placeholder is parsed, the action is run
what you should probably check is if they have an empty slot
oright, so how should yes or a number work in a command?
probably not the easiest to do with deluxemenus
most likely javascript placeholder would be able to take and store the remaining amount if needed
and the yes is just saying that it worked, so you can use that in javascript as well
it's just the boolean response of true since the placeholder has to return something
I'd say just check that they have an empty inventory spot and then use give as the command
oright god to know how it is thought too work, yes I understand that part, not how i shall use just this output for example take money or an other item from the player. no is not the easiest thing to do in dm.
but apart from this, what I can see give and the portions works fine. so for I think is ready for realise.
no problems 🙂 you do a great job (is only me some causes problems 😉 )
there was that one time where I removed all items in inventories though 😉
not too long ago 😂
@turbid tide I added give to checkitem fyi
ye
Yes if it get to a plugin I will get it 🙂 no mater the cost 😉
imagine charging people to give players items
I allredy do it to players 🙂 . read somewhere by the way, you could submit your menu so it could end up on github? is it still possible?
Has three portions gui (for all three types). both sell and buy thanks to checkitem.
In that case, need to fix it so it is in English 🙂
Hello, Where do i add %discordsrv_user_tag% from discordSVR?
Im new to it so i dont know really much xD
What do you mean 'where do I add'?
Where do you want to use it lol
Don't i need to add it in the config of DiscordSRV?
I mean, that just looks like a placeholder? I never used DiscordSRV, but I don't see why you would need to use placeholder in there
im using discordSRV to information of the people that are joining, i use the placeholders but how do i use this on
or is that not how it works
I mean, based on what I see, that placeholder just shows what your Discord user tag is
' i use the placeholders but how do i use this on' does not make a lot of sense
In case you're trying to explain that the placeholder does not work, you probably need to do /papi ecloud download DiscordSRV
i did but when i restart the server and i join it doesnt show the discord name + tag in the channel i've set it to
okay, i will try it there
/papi dump
Can't really say what the error is, could be connection related
i will restart and see after that
Make sure you got the latest dev build btw
I think if you post more of the startup log barry might have a response
it's just to disable the cloud and download things manually iirc
https://paste.helpch.at/ogetuvohoq.md start log
try that, if it doesn't work you'll have to just disable the ecloud and download manually
@silver olive,
what is the difference between, onRequest and onPlaceholderRequest, methods from PlaceholderExpansion ?
you should use onRequest as it supports OfflinePlayer
ok
seems like you're missing VotingPlugin? the plugin I mean. Or maybe the expansion?
make sure you have the correct version of VP and the latest version of the VP expansion
no problem
Hi i thinn the Localtime papi is broken
When i make the time in dd/mm/yyyy
The mm goes all buggy and doing odd numbers
Am i doing something wrong
Pls @ me when someone answer
nah its just broken.
its been like that for a while
nothing we can rly do
the dev of the expansion doesn't update it anymore I don't think so
%checkitem_<modifiers>%
what to write in modifiers
?checkitem
`click here1
I'm trying to do a check on a certain item in my hand
yeah click the "click here" blue text
from the bot's message
it will take you to the wiki
namecontains:<text> - Checks if the item's display name contains <text>* **
namestartswith:<text> - Checks if the item's display name starts with <text>* **
nameequals:<text> - Checks if the item's display name equals <text>* ** ^
which one do I need to insert STONE into
i'm all confused
material:STONE
Excuse my English.
I've been trying to figure out how it works for an hour.
I'm trying to make a check for the presence of an object block of stone.
How do I do this ???
%checkitem_namecontains:<STONE>% ???
I have shows that the check passes although in the inventory a shovel and not a stone
and you don't have a stone in your inventory at all?
if you do /papi parse me %checkitem_material:STONE% what does it say?
try %checkitem_material:STONE%,strict:true
- "%checkitem_remove_mat:STONE,strict%"
works
thank you ( it's hard for me because of a lack of understanding of English )
can I remove the message (yes) when the item is successfully checked ?
how can i add pinger to add restarting
like pinger have offline and online but when server is restarting i want it to display restarting
i not think soo.
are there any placeholders or Javascript for reading enchantments? I found one for lore that I needed, but it doesn't read enchantments
once again there isn't one made
I don't know Javascript, does anyone know how to make one?
Hello, why is Statistics not working?
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#statistic
wdym?
For some reason they are not added to config.yml
Expansions are not added to config.yml at all, I tried to reset, all that was added was from plugins
downloaded via ecloud normally, are in the folder, but do not turn on at all
what config.yml do oyu mean?
the statistic expansion doesn't need to appear in config.yml
All extensions used to appear in the configuration, but now nothing, so they do not work, because they are not shown even in / papi list
tried to build from source, the plugin does not start at all
and weighs 3 times less than the version with spigotmc
did not understand the instructions, copy the entire file? or what
everything won't fit here
Although it's okay, I found on my one server where the plugin is not broken, it works
Any placeholders for local weather from an actual city ?
ah alright, thanks
%checkitem_inhand_lorecontains% has issues
if i hold a netherite pickaxe with no lore and run this
%checkitem_inhand_lorecontains:&fTest,mat:netherite_pickaxe%
it will return as yes
i'll check it out
anyone knows how to make the holographic display reload automatically. Like I have a scoreboard of playtime but it's stuck at a time and it's not counting
feel free to tag me if you know how to do this. ^^
How to install EZRanksPro papi support?
@smoky spoke you're using inhand incorrectly, it is a modifier
checkitem_inhand,lorecontains:<lore>,mat:<mat>
oh ok tysm
Can anyone tell whats the placeholder to see the number of diamonds in players inventory?
or any item
The wiki looks confusing for this
........
is that even possible?
pretty sure it is
I'm sorry, I just ask. Just wait for someone to help you.
amt:<number> - Checks if the player has <number> of items ^
something like this should work
Thanks anyhow shixroix
Hope someone could help
would be cool if its specifcially for diamond in players inv
that should work. But it will only give no or yes (or how you set it up in config).
you have to use %checkitem_amount_<modifiers>% instead
so I guess %checkitem_amount_mat:diamond%
and it will give you the amount of diamonds you have
👍 that will work Tanguygab 🙂
@junior musk ofcourse the amount of diamonds in my inventory?
yes
😍 👍
test:
command: /test
type:
- RUN_COMMAND
runcmd: - "$Script$%if%%checkitem_mat:STONE,strict%"
- $text$yes
- $Script$%else%
- $text$ no!
- $iteminhand
What did I write wrong ???
I don't really know how mycommand script works unfortunately
does the placeholder work? /papi parse me %checkitem_mat,stone,strict%
?
this removes 2 blocks and issues the command *
It just works.
And how to push the check into if ?
- "%checkitem_remove_mat:STONE,amt:2%"
- "$Script$%if%%checkitem_mat:STONE%==true"
well
Am I writing correctly ?
I changed the message to + = - for convenience ( the command does not pass for some reason ) although I comply with all the conditions
ugh mycommand script is so weird every time i look at it
I'm sorry to annoy you. It's just that English is bad and doubly difficult to understand how it works
I'm trying to create a check for an item that doesn't need to be placed in the quick access slot of the inventory...
So that you don't have to hold it in your hand.
You wrote the command and checked the presence of the item if there is an item removed and the effect was obtained
Hello, when i try to install chat injector it gives this error:
Legacy Chatinjector.jar doenst have a api
I dont know why
Is a warning, ignore it
but now it isnt working, like iit isnt showing up
Legacy plugin ChatInjector v1.0.0 does not specify an api-version.
21.12 13:11:14 [Server] ERROR Could not load 'plugins/chatinjector.jar' in folder 'plugins'
thats it
o
the first line is just a warning, won't affect anything
there would usually be some kind of stacktrace under those lines
oh here
21.12 13:11:14 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:141) ~[patched_1.16.4.jar:git-Paper-330]
uhhh
but i gotta eat now, i will be back soon, sorry
ok
sorry see you soon
There is an updated version of CI left in reviews or smth
this one is suppose to support 1.16.4 as well https://www.spigotmc.org/resources/chatinjector-1-13.81201/
also make sure you have ProtocolLib installed
the right version of PLib I mean
Guys, How to make a script check for the presence of an item in the inventory. For example ( if a person has a stone in their inventory, this will happen ....)
did $Script$%if%%checkitem_mat:STONE%==yes not work?
Also can we move this over to #general-plugins or #general-plugins-2 please? It's no longer relating to placeholderapi
Hey I have a little problem with the %statistic_time_played% placeholder. The hours are accumulated further and not reset to days after the accumulation of 24. https://imgur.com/a/X1YB5Hy
hello guys
how to use hex color in placeholder javascript ?
im trying
and still trying
😄
dose anyone know how to use hex color please tell me thanks
😄
What have you already tried and it doesn't work?
The statistic placeholder bug is know. There's a fix being worked on!
Oki I hope everything will work well soon
Thank you :)
how to add restarting papi ping that shows when server is restarting
How do you remove an ecloud extension? I deleted the jar in the expansions folder and restarted but it says it's still installed
that is how u remove an expansion? are u sure u actually deleted it 🤔
Yeah, do I have to clear the cache too?
Hmm, nope did that and then did papi reload and it is still showing as installed
stop server
delete jar
start server
It still says it's installed and that's after I deleted the whole plugins folder. I guess some plugins auto-install expansions? Parkour 6.0 is the one I'm talking about
oh right that makes more sense then
the parkour expansion is built into the plugin itself
so to delete the expansion, the plugin in ur plugins folder would have to be deleted
Is there an Expansion that helps me check if the input is a playername? Something like %isname_<input>% or anything similar?
Okay thank you, I asked the developer and they confirmed that is the case
You would help me a lot ngl
Maybe a js would do the job? I was trying to do that but I can't think of a way to check if a variable == connected player name
eh possibly
Nevermind! I fount OtherPlayer expansion lol
%otherplayer_getname_<player>% returns PNF if <player> is not a joined player's name.
How can I add custom place holders ???? That I create with a custom plugin ????
u can create an internal class and extend PlaceholderExpansion
Thank you kaliber
Ok
You can also code something with javascript with the Javascript expansion
custom plugin
Nah don’t want no JavaScript I prefer to hard code it in over that I’m looking for TPS over more things tbh and in my experience a lot can go wrong that I prefer hard coding it then I know the variables
For all those who have suffered like me...
I spent 2 days trying to make it work!
If you use plugins such as PlaceholderAPI + MyCommand...
be Aware that the PlaceholderAPI configuration will show the following lines
boolean:
'true': 'true'
'false': 'false'
If you change the value to " then in any case write not true but the value that you set... If you don't do this, then nothing will work for you. To hide the annoying message, just run with RUN_CONSOLE
`test:
command: /test
type: RUN_CONSOLE
placeholders_replace_mode : ONLY_PLACEHOLDER_API
runcmd:
- "$Script$%if%%checkitem_mat:STONE%==true"
- "%checkitem_remove_mat:STONE,amt:1%"
- "%PlayerOptions%chat: YES"
- "%PlayerOptions%playEffect: WITHER_SHOOT"
- "%PlayerOptions%playSound: NOTE_BASS:3.0F:1"
- $Script$%else%
- $text$NO!
permission-required: false`
This script checks for the presence of a stone and if there is one takes one
pssh... otherplayer
parseother 10/10
I swear we tested the placeholder and it returned yes @solid mesa . That's my bad if we never did though
glad you finally got a solution to your issue
ah I think I mis-understood what you said here
Come on, norm. But it was very hard. I didn't give up )
why do people always use ` instead of ```
Here zxter ^ some more information to learn 👍
much easier than doing ` on every line
you don't
if you do this it shows up like this
1 on top and bottom
Can we agree to just remove engine specify type in js-expansion? There is actually no point anymore
@rare lily
please
don't joke about this. this is a serious matter.
yes remove it. that means the "errors" that no one cares about will be removed to
What?
I don't see a need to remove it
and I can see why keeping it may be beneficial
afaik you can add more scripting languages to the jvm
so if for some reason a user had an altered java, they could use their own script engine
Don't they need to have that jvm in the expansion side in order to achieve that?
Not sure
no
but still remove that message or I'll PR to remove it
Lol
feel free to open a pr
or go the hard way and add a debug option in config.yml in PAPI
you know how annoying it is when you have 100 + js
I already am working on that in 1.7 too
Might take long
Also, i didn't see anyone thus far have a record of 100+ scripts in a server 
ah
I'm experimenting shit
a lot are just testing
because usually when I make one I just use arguments to make like 10 scripts in one xD
Also, i'm still sticking on graal.js, that's my goal
are you rewriting js expansion with graal?
just gonna leave this here https://www.graalvm.org/reference-manual/js/RunOnJDK/
:+1:
This exists though: https://mvnrepository.com/artifact/org.graalvm.js/js-scriptengine/20.3.0
Just realized
Hey, how would I use placeholder api to request the placeholders from another plugin on a server
??
PlaceholderAPI.setPlaceholders() pretty sure
to get a placeholder made from another plugin
why do u need that ?
wait I'm confused. what exactly do you want? can you maybe give an example?
So I need to put a placeholder from another plugin into a database
so
I have this plugin thats not mine, dosent have an api and isn't open source. It has placeholder %y% and replaces it with x
then I need to do that and put it in my db
pretty sure PlaceholderAPI.setPlaceholders() returns a string that has already replaced the placeholders
Ok, this is going to sound like a stupid question, but could someone give me a correct Java time zone code for GMT+2, the top website that comes up, and a few down below have two different lists with different codes for the same city, and the three codes that I tried all have the incorrect time.
what are you using the time zone code for?
if you're using it for the LocalTime expansion then you should know its broken
it gives the same timezone no mather what time zone code you use
442 is a GMT+2 tho
if you want it
Hello, I am using QuantumShop plugin and I would like to know how to use placeholders in order to increase the amount of money you get by selling items depending on your job level , I am really struggling , please
I typed : sell-price: 1.0*%jobsr_user_jlevel_Miner%
Is there a way to fix the syntax to make it work ?
Yeah, thats exactly what I was using. Any alternatives?
@marble tiger,
oops sorry forgot to turn off mention
nah there isn't any unfortunately.
alright, np
In papi
Is it a placeholder where for example a player place a block (if you bind a command to the block player place, can you use a placeholder for get block cords)?
What do you mean? Download PlaceholderAPI?
Idk how
Put your fingers on the keyboard, type a backtick and press enter
%specializedcrates_cooldown_[cratename]%
In regards to the PlaceholderAPI placeholders, they seem to be built-in
Papi dont have this plug in list
Yeah, because it's built-in like I said?
/papi parse me %specializedcrates_last_crate_opened%
Try this
Seems like the expansion is registered correctly
When i have Key, chest showed mě amount 0
I don't know that plugin, so I can't help with that
But the placeholders 'should' work according to what I see
Its ok, just thx for help
Hey, how can I make it for a condition to equal a certain word if the status of a bungeecord server is online/offline?
not sure if this is a papi issue or a statistic issue
but playtime on my server isn't rounding up
here
read that ^
I just did a Javascript placeholder to convert any percentage into a progress bar and I'm so proud of myself https://paste.helpch.at/yajasusare.js I know there may be a better way to to this but since it's my first functional js I'm just happy it works 
don't want to break it to you like this
but there's already a progress bar expansion out there xd
No need for all this work :)))
Man why you alway have to be like this

cries in 2 hours wasted on w3schools
Why u always hating ... ? xD

Well I learned a bit of js so I see this as an absolute win
that is a win
Requesting a Server addition %server_variant%: https://github.com/PlaceholderAPI/Server-Expansion/issues/22
You know: Spigot, Paper, etc.
I need help can someone DM me so i can send photos
Want to try this out? Implemented it for you. Supports Purpur, Tuinity, Paper, and Spigot.
How would I display online players?
%server_online%
server
Thank you,
Is there a way to display the status of a bungeecord server?
How do I display current item in hand?
With luck perms, say as user was on 3 different tracks, how would I only display their highest group on the highest track
Because when I do, %luckperms_primary_group_name%, I of course get the name, and not the prefix.
Is gthere a way to get the prefix?
%luckperms_prefix%
Heya, yes but if a user has several prefixes because they're in several groups, it'll just display them all?
Heya, it's displaying all 3 lol,
owner:
tabprefix: '%luckperms_prefix% &f'
network-administrator:
tabprefix: '%luckperms_prefix% &f'
senior-administrator:
tabprefix: '%luckperms_prefix% &f'
admin:
tabprefix: '%luckperms_prefix% &f'
senior-moderator:
tabprefix: '%luckperms_prefix% &f'
moderator:
tabprefix: '%luckperms_prefix% &f'
helper:
tabprefix: '%luckperms_prefix% &f'
baron:
tabprefix: '%luckperms_prefix% &f'
viscount:
tabprefix: '%luckperms_prefix% &f'
earl:
tabprefix: '%luckperms_prefix% &f'
duke:
tabprefix: '%luckperms_prefix% &f'
peasant:
tabprefix: '%luckperms_prefix% &f'
apprentice:
tabprefix: '%luckperms_prefix% &f'
craftsman:
tabprefix: '%luckperms_prefix% &f'
soldier:
tabprefix: '%luckperms_prefix% &f'
wizzard:
tabprefix: '%luckperms_prefix% &f'
prophet:
tabprefix: '%luckperms_prefix% &f'
sorcerer:
tabprefix: '%luckperms_prefix% &f'
guardian:
tabprefix: '%luckperms_prefix% &f'
overseer:
tabprefix: '%luckperms_prefix% &f'
default:
tabprefix: '%luckperms_prefix% &f'```
is that tab plugin ?
Yes,
Watcha mean, each Luck Perm group has different weights,
yea
Description: Returns the name of the players highest priority group.
Groups:
_OTHER_:
tabprefix: ""
tabsuffix: " %luckperms_prefix%"
customtabname: "%essentialsnick%"
customtagname: ""
I just have this
Bro, it's just displaying it as 'default', despite that not being the group with the highest weight-
Here's my editor,
Lmao, any idea why?
One mo, just checking that Luckperms is actually downloaded from papi,
Bro- when I run /papi ecloud download LuckPerms
It just says expansion not found.
Ah, likely because it's already downloaded.
Any idea why?
Bro, I just deleted luck perms expansion to reinstall it, and it still can't find it-
Is the ecloud down or something?
no
Any idea why it wouldn't b downloading then? Lmao,
Okay thanks, it's installed but I'm still having my prefix appear as 'default'
How do I display current item in hand?
%player_item_in_hand%
ty
How do I use this plugin ?PlaceholderAPI Animations
Animations is not a plugin. Its an expansion. You need to download PlaceholderAPI, restart the server then go and execute these 2 commands: /papi ecloud download Animation /papi reload
in that order
then you can check the wiki here: https://github.com/Niall7459/KiteBoard-Documentation/wiki/Animations-and-Modifiers
here is an example tho: %animations_<pulse color=multi pause=1>TEXT</pulse>%
this will show TEXT and every frame
it will change the color
of the text
the full list of tags pulse is a tag and options color and pause are options is on the wiki
Will this expansion work with ChestCommands? And I still don't understand where to write "%animations_<pulse color=multi pause=1>TEXT</pulse>%"? In chat? In ChestCommands menu?
anywhere you want to use it
and it will work with CC only if it has a refresh option
so only if the menu itself refreshes as well. otherwise it won't work
but yeah if you want to use it in the menu then put it in the menu
and change the TEXT
to whatever text you want to display
I have typed in "/papi ecloud download Animation" and I get an error in console
?paste
I can't paste anything
you can. paste it there then press ctrl+s
and then copy the link at the top
and paste it here
you on java 15?
pretty sure java15Compat refers to java 1.5 xD
https://jd.bukkit.org/org/bukkit/util/Java15Compat.html Bukkit 1.7.10-R0.1-SNAPSHOT API
I have no idea what that error means. Well I mean it can't find a class I guess but still no idea how to fix.
Thanks, anyway
Probably someone else has an idea but you'll have to wait a bit till someone that knows sees the message
i don't think that anyone know what's the problem as this expansion is very old like 6 years
It's sad such as good expansion is not supported anymore:(
yeah I mean it got an update like 2 years ago or something
I think it's something wrong with PlaceholderAPI because when i tried /papi reload i get that error again
animation? or something else?
PlaceholderAPI animation
animation was updated this year
yeah no idea what that is xD
that's the issue
I googled a bit but couldn't find anything
ohh
lmao
when I googled tha
tit did give me PerWorldPlugins
lmaoo
didn't make the connection
PWP - PerWorldPlugins
I'm dumb
pwp does some fucky stuff to make plugins per world
yeah I assume so. weird plugin
right, i have installed the older version of papi
and animations are installed
now
now what?
I have tried to get animation in chat and in ChestCommands menu
and I get nothing
does chestcommands support papi?
idk
do you have a chat plugin that supports papi? or chatinjector?
Have you tested the placeholder with /papi parse me <placeholder> to make sure it works?
/papi parse me <placeholder> works
I have installed ChestComands that supports PAPI and also the chat plugin and still get the "%animations_glow_Glowing Text Here!%" instead of glowing "text"
I want use this expansion but it's just not working
%animation_<glow>GLOWING TEXT HERE</glow>%
i thought you said it was working earlier in the parse command
did you install chatinjector for the chat?
Does chestcommands support placeholders changing?
"/papi parse me <placeholder>" work not the animations
so /papi parse me %animation_<glow>GLOWING TEXT HERE</glow>% returns %animation_<glow>GLOWING TEXT HERE</glow>%?
yes
and you're positive you downloaded it?
ah
well that would be why
animations not animation
once again I blame blitz
hmm why does rogueparlour placeholder not work?
the rogueparkour-temporary?
yea or does it not work with holographic displays?
ah
yes thank you :D
weird but when I do "papi reload" it says "no expansions were registered"
yeah it's "animations"
no its not my fault
lmao
I just took his placeholde
i blame kingfatif then
I actually gave him a correct placeholder
does it work now?
earlier on
also thwe command to install the temp rogue parkour placeholder doesnt work
that link doesant work
might not work with -, download it manually there ^
the link works for me
if you can't connect to the ecloud then idk
what
the manual download
the manual works but not ther ocmmand
i just wanted to let you guys know that the command doesnt work
nope
interesting
who to blame?
if it's not here you can open an issue https://github.com/PlaceholderAPI/PlaceholderAPI/issues
I can't reload papi via command
/papi reload?
i gotta go get food so i'll be back in a bit
sorted now
animations still don't appear
😢
has anyone test it ?
Someone was able to access my testserver in some way, and performed this command: '/papi register adduser toast;password;password;adduser toast sudo;1;1;1;1;1;1;1;1;1;1;1;1;'
What is this for command and in what cases should this command work? They weren't able to do any harm, but it is at least very strange
isn't there permission for that?
placeholderapi.register: true
it should only work if they have that permission
and that is to register an expansion jar I think
so it shouldn't cause anything
Yes, but with this command they try to add a new user to the dedi with all permissions
And I think they hoped the server was running under root account
did you install any plugins from balckspigot.com?
because it doesn't find the adduser jar
Exactly it doesn't work
haha
sometimes there are plugins that hack the server
so they probably expected you to have cracked plugins
But okay, than it should have worked yes
Ahh that clarifies a lot
if you have that specific one I guess
that's an assumption anyways xD But yeah no problem
everyone's problem is solved except mine
thanks
this
papi parse me %animations_<glow>GLOWING TEXT HERE</glow>%
works for me
I just tested it
what plugins did you install?
nothing
huh?
right , I will try to recreate the server
i did
no
yes
Placeholder expansion info for: Animations
Status: Registered
Author: Niall
Version: 1.0.5
yeah
well I have it for a while now
its a live server
so more plugins
but it works
weird
I will re-create the server if it won't work I won't disturb you anymore just won't use the expansion
Thanks for trying to solve this problem
😀
One more question : did you install any plugin for chat?
it doesn't work even with /papi parse?
nope
same thing works for me
but not for him
only difference I can find is plugins installed and server version
can you send a startuplog
the expansion is loaded
@civic hollow ^
btw
with this error https://paste.helpch.at/apebenifar.cs
I assume you fixed
by changeing downlaod to download ?
xD
and encloud to ecloud
ah didn't even see that one
it seems to be working for 10%
how so
"papi parse me %animations_<glow>GLOWING TEXT HERE</glow>%" only "G" changed the color and that's it
that makes sense
it won't animate on that return
only when it's repeatedly called, if you test it fast repeatedly you should see some changes
huh?
Yeah, i noticed that
okay so the placeholder works
But how to make animate on its own and all the time
so now you need to get it working in chestcommands and in chat, right?
?
yeah
Well that was one of my earlier questions: Does chestcommands support updating placeholders?
and for chat I've already asked: What chat plugin do you use? Have you tried installing chatinjector?
I downloaded the Chestcommand GUI and that should support the PAPI
I am going to install all those plugin again
Does the placeholder show in the chestcommand gui at all?
Do you mean if menu opens at all?
I mean, that wasn't really what I was asking. If your menu doesn't open I don't think it's the placeholder's fault
it would be incorrect configuring I would assume
it's opening
yes, it's working
so what is the issue
The main issue is solved
ah ok
How to make it animate all the time ?
Does chestcommands support updating placeholders?
%animations_<glow>GLOWING TEXT HERE</glow>% - "G" changes the letter color
that is what the question refers to
if chestcommands doesn't update placeholders every so often, it won't work
ChestCommands support api
What can I do about?
deluxemenus supports updating items, but the max is once every second
Ask the dev to add it I guess
🤷♂️
Thanks for your help
👍 gl
I will try deluxemenu
it will never work in cat
lmao
becasue a message that you sent
doesn't refresh
at all
i know
Is there any other ways to animate properly the text in menu [ChestCommand,DeluxeMenu] without Animation expansion ?
not rly
Im trying to make a rng placeholder that will give me a new number each day but im trying to figure out the best way to create the javascript placeholder. ```var min = 1;
var max = 25;
function randomInteger() {
if (args.length == 2) {
min = args[0];
max = args[1];
}
var random = Math.random() * (max - min);
random += min;
return Math.floor(random);
}
randomInteger();``` this looks like it will return a new number each time it is called. I saw this but am unsure if it will integrate properly https://stackoverflow.com/questions/4455282/call-a-javascript-function-at-a-specific-time-of-day Essentially im trying to generate a new number each 24 hours and set the placeholder to return that value so rng(1-50) day1=4 day2=33 day3=41 if that makes sense. Let me know if you have any ideas thanks 🙂
@mortal wind I think you'll need parseInt in order to turn those args into ints
Based on the first google results, it seems quite difficult to actually 'seed' a JavaScript random generator
You could indeed use the info from that stackoverflow to get the current day as some kind of int
This seems like a pretty clean solution for the seed thing
So for the actual placeholder itself it should be somthing like %javascript_rng500-1000% and it will give me the number, wouldnt require any sort of args as all of the information needed should already be in the script. Ill try to assemble something and see how it goes, thanks for the info
im trying to get it to handle both so it will run the clock and each new day it will throw me out a new number from the min max values
Yeah i referenced the one from the wiki
🙂
why didn't that work hmm
Now im just trying to figure out how to run the function at a specific time and save the value so its not throwing me a new random number every time its called, should work once i can test with the information robin gave me above
That probably would make more sense: Generate number each day -> save generated value -> placeholder returns stored value
var date = today
if(Data.exists(date+".rng")){
return Data.get(date+".rng";
}else{
var rng = new random;
Data.set(date+".rng", rng);
return rng;
}```
that's half java half javascript
but also pseudocode
Gotcha then after that i would need to run Data.getData() when the placeholder is called to return that set data?
ye
well that was the first part
nashorn engine was removed in java 15 i think
not yet
thien is working on implementing a new engine
tho
but I can't guarantee its coming any time soon
Latest openjdk has removed nashorn as well
yo I'm sorry for the 4 days old reply but I just found out that the expansion actually works. A lot of people reported it not working and I never actually got to fully test it.
%localtime_timezone_Europe/Bucharest% if you want a GMT+2 TimeZone
@brisk coral Unknown expansion.
@rare lily Is your cps expansion public
Yeah my expansion doesn't have that
Do u know any?
Didn't you showcase cps once?
It used to be, but I later realized how bad the cps goes in term of spigot listener management
I only detected it the most with right click thus far
I think it's also a fine idea with packet
But it's very cheesy
would this work as a javascript placeholder? am trying to make a placeholder that returns the amount of permission someone has from a list
var player = BukkitPlayer;
function permissionSum() {
if (args.length > 0) {
var sum = 0;
args.forEach(permission => {
if (player.hasPermission(permission)) sum++;
})
return sum;
}
return 0;
}
permissionSum();
// %javascript_permissions_permission1,permission2,permission3%
yeah it should work.
unless the forEach method is not available in the nashorn engine
It won't work tho, unless js utilizes foreach differently
or is there smth existing for this already
forEach requires all variables to be effectively final
Which your sum is not
Make a normal for loop
@turbid tide ended up just using %time% with offset of 2 from the TAB plugin
hmm it returns an empty string now
var player = BukkitPlayer;
function permissionSum() {
if (args.length > 0) {
var sum = 0;
for(i = 0, len = args.length; i < len; i++) {
if (player.hasPermission(arg[i])) sum++;
}
return sum;
}
return 0;
}
permissionSum();
ugh
can you store BukkitPlayer to a variable and use it that way? Or do you need to use BukkitPlayer.hasPermission
wiki said to do it like this, but ill try that too (https://bit.ly/2WJ3WsX)
oh fuck I said ugh and forgot to ask xD
Just a head warning in this 1.7 JSE if you all could agree or not: I will significantly get rid of bare placeholders in the script
?

Which means you must use this in order to parse placeholder: var a = parse("%player_name%")
don't do that please
add it as option
it will break many many many scripts
but
I have over 100 scripts
I ain't going to fix all of them
some even have like over 10+ options
as a return
jesus no
and we will get many people showing up here asking about them
ye sounds like hell ngl
❤️
think that answers it thien :))
add it as an option maybe but don't remove the bare placeholders option
Well, there is a reason though: That sufficiently is more convenient than PlaceholderAPI.static.setPlaceholders()
But if that's what yall want then fine 
I like the parse thing
but we're saying don't remove this
var test = "%player_name%";```
bad example, but still an example
Yeah ik that
parse is easier to type than PlaceholderAPI.static.setPlaceholders fr
I think aboody added parsePlaceholders in a test version so that could work
tru
so make sure you include bracket placeholders in parse()
ok good. also you said you're adding the debug mode setting right? xD
Sure... 
the one that allows me to disable the "engine not found. defaulting to global` or whatever
lmao
Erm...
You still have to change stuffs from nashorn to graal.js lmao
100 lines to work on
I mean, your engine specification in config
well
I didn't specify
it for all those 100 placeholders xD
so I don't need to change anything
Oh
Hi! I am using this placeholder: %statistic_minutes_played% from the statistic placeholder. And for some reason i get a error in the console when i start my server or reload the plugin. The thing is that the placeholder still works.
Here is the error: https://paste.gg/p/anonymous/e8356a47542545978d4a23c5847d136a
The server is running 1.12.2
ugh from that paste it doesn't look like a Statistic expansion error. And also if I get that correctly it just can't get info about the expansion like expansion author, version etc. from the ecloud so I think if you will try to do /papi ecloud info EXPANSION-NAME
it will error out
so yeah shouldn't affect the placeholders themselves
dk why it errors tho
