#placeholder-api
1 messages · Page 194 of 1
also when i die it still keeps my killstreak at 1......
yes. because that shows your top killstreak
not your current killstreak
oh i wanted it to show current
@placid scarab check your config.yml.
make sure placeholderapi option is enabled
and restart the server
so is there not a one for current killstreak?
Which ?
%combatstats_killstreak%
bru-
your kitpvp config
i mean for the rank
okey bro
this returns your rank %combatstats_placement_killstreak_{player_name}%
this returns your current killstreak %combatstats_killstreak%
the first one doesn't return your top killstreak. it returns your placement in the leaderboard
yeah thats top killstreak not current
i want current
that's what the second placeholder is for
no. thats your placement
OOHHHH
in the top
OKKK
wait but what about this cos this is literally just showing the string https://imgur.com/a/JMgMvF3
but if you do /papi parse me %combatstats_placement_killstreak_{player_name}% what does it say?
okay this is bad and needs fixing quick because now people are joining my server with no rank..#
the one in my photo was KILLS not KILLSTREAK
well actually it was both
I just took one of them
what does /papi parse me %combatstats_kills% return?
1 which is how many i ave
the kills works but placement doesnt
i hate the imgur thing
i have to send sooooooooooo many
I think you're not understanding what the placeholders do
Alright you need to reply quickly, my entire server is broken rn over this and people are joining without ranks.
ok. I'll try.
thank you
yeah that shows #1 which is me
but how do i do it for all players
is the question
IC. I found the problem. I'll send you an updated plugin jar in a second
hey so i need this to be quick. its disabling my tab plugin and ppl are joining without ranks.
I'm trying. having some problems actually compiling it
when i do /tab reload it gives no errors in console
oh ok sorry thank you
@austere hawk I recommend you remove combat stats for now.
I can't get it to work and it might take a while
dont worry i already did lol but thank you anyway
im pretty sure thats what i just had?
its an updated version
%combatstats_placement_killstreak_{player_name}% should work now
i mean fine ill try it i guess
Hey i got an error but cant post an Link from hastebin 😄
java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.ConfigurationSection.getKeys(boolean)" because the return value of "me.gabytm.placeholderapi.config.ConfigExpansion.getConfigSection(String)" is null
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
ok.. nevermind after pasting it on the side i see the "config expansion".
After this i remember i forget to remove it in the Expansion folder .. 🤦♂️
I have a question regarding interaction with the menus using middle-click. I have a shop menu with a middle-click function which works in creative mode but not in survival. What might be the cause of this?
mojang. they removed that functionality from minecraft in 1.18. they only allow it in creative mode now.
Alright, thanks.
hey, so i ended up not using CombatStats but it literally won't go. I deleted the .jar and the folder and every time my server restarts the folder is back.
Please respect the rules, be patient and don't ping staff members!
can you do /papi dump and send the generated link here?
i think its in the placeholderapi config.yml
date_format: MM/dd/yy HH:mm:ss
@austere hawk in config.yml
you mean translation wise?
ahh oka
not too sure i know its possible as ive seen it before
I was trying to add papi to my pom
for a plugin, and I got this
Blocked mirror for repositories: [clip-repo (http://repo.extendedclip.com/content/repositories/placeholderapi/, default, releases+snapshots)]
Since Maven 3.8.1 http repositories are blocked.
Possible solutions:
- Check that Maven pom files do not contain http repository http://repo.extendedclip.com/content/repositories/placeholderapi/
- Add a mirror(s) for http://repo.extendedclip.com/content/repositories/placeholderapi/ that allows http url in the Maven settings.xml
- Downgrade Maven to version 3.8.1 or earlier in settings```
hello
i am creating a server with my friends and i want to add a top deaths scoreboard. I am using RealScorboard
But i dont know how i should do
Use a leaderboard plugin, like leaderheads or ajleaderboard
The wiki will help you do the rest
thx i did that
use https: instead of http
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
is there a player effect placeholder
ty
How would i make a placeholder for a plugin with Skript?
You don't
thank you gaby

anytime blitz
wym?
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
Literally that
Is it impossible, or is there a reason why I shouldn't
what if there is a placeholder I want but isn't available
I heard some ppl do it
impossible
Idk how someone else made then but okay
If I were to make placeholders for another plugin, would I need to make another plugin or edit that plugin?
you'd need to use java/kotlin/other jvm language to make an expansion
Hey, I'm getting this error after a server restart, I always need to reload the plugin to fix it, how to fix this issue so I would not reload the plugin?
https://paste.helpch.at/corusasahi.sql
first thing, try redownloading PlaceholderAPI
if not then it might just be one of your expansions that's broken and breaks the loader so maybe delete the expansions and read them 1 by 1 until it starts doing it agai
does papi work with java 8
is there a way to make the string a placeholder returns all uppercase
like
%player%
but all uppercase
%player_name%
Probably not
you could use the string expansion. to change the outputs of other placeholders
/papi ecloud download string then /papi reload and use %string_uppercase_<string>%
for example %string_uppercase_{player_name}%
Hello, is it possible to create a stats for multiple players with deluxemenus like (/stats <offlineplayer>)
Hello,
is there a placeholder for the blocks placed and for the number of sheep sheared?
I do not find anything :/
Thanks
Statistic expansion
hello, how can i change the lanuguage of essentials placeholders (for example %essentials_kit_is_available_<kitname>% or %essentials_afk%)
I changed in config of essentials language to polish but this placeholders are still in english - how can i change it???
(for example this placeholder: %essentials_kit_time_until_available_<kitname>% is in polish so i dont know whats wrong...)
is there a placeholder that returns your slot #?
I looked in the statistics but I couldn't find anything for the blocks placed/ crops placed and for the shearing of the sheep :/.
I manage to bring out the data for broken blocks , crafts, etc....
But these 3 actions I can't find a placeholder... :/
yes. in deluxemenus look for the args option. then use the parseother expansion to parse placeholder for the target.
not all placeholders return text from essentials. some its just internal text or from placeholderapi's config.yml
so like the item in that slot?
then you can use the checkitem expansion
you might have to use %statistic_use_item% for placed.
most statistics are just taken from spigot https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
so you can look there see if you find one but I couldn't find any other ones myself
nah, looking for a placeholder that returns what slot the player is on
1-9
ahhh. hmm wonder if you can even do that in spigot. don't know any placeholders. sorry
hmm seems to be possible. at least on latest. just no placeholder I can find on the wiki
Thank you vers much, I will look into it in more detail 👍
Please respect the rules, be patient and don't ping staff members!
👍
Hi all
Someone can help me with this warnings?
[10:56:45 WARN]: [PlaceholderAPI] Loaded class me.clip.ezblocks.EZBlocks from EZBlocks v1.5.0 which is not a depend or softdepend of this plugin.
I got several
you can ignore
its bcz some expansions (in this case the ezblocks) one is accessing data from another plugin
which is EzBlcoks.
Okay
Another question
For dev stuff i use ServerUtils to reload my core
And after i do that, all the placeholder stop to work
yeah. its really not recommended. you should restart the servers instead.
I've created a class in my core that extend PlaceholderExpansion
In 1.8 works and in 1.18 it doesn't?
We're going ahead or behind?
serverutils is not "going ahead". like the plugin does some weird stuff to do the reload. not even normal /reload is recommended.
does it break on /papi reload tho?
if it does just override the persist method and make it return true
Please note that reloading may not be compatible with each and every plugin! Plugins which depend on a reloaded plugin, are likely to be error-prone for reloading. Improper cleanup, or improper startup practises may break plugin (re/un)loading as well. Please be careful!
this is on server util's page btw.
well now that I read it, its not really the best thing I could come with
xD
I'm talking of PlaceholderAPI, not of serverutils...
Please respect the rules, be patient and don't ping staff members!
right. but you're saying that specifically supporting serverutils is "going ahead" which is completely wrong?
i'm talking in general
In 1.8 there's 0 error
No problem with serverutils
And no warning
now in 1.18 warning and no serverutils
That's what i'm saying
And the last version of placeholderAPI is of 6 months ago
these warnings?
you can "blame" spigot for those. they're literally just telling you that a plugin is loading stuff from another plugin. In this case your EzBlocks expansion (which is considered part of PlaceholderAPI) is loading stuff from the EzBlocks plugin (which it needs so it can get the data to display placeholders?).
this warning was probably added at a later version by spigot
its not a warning added by PlaceholderAPI
yeah. and? it works. and it is still getting updated. but there's no reason for weekly updates?
6 months = weekly?
Don't come with those excuses now bro xd
check the github repo. its getting updated.
excuses for what? I gain nothing from this
exact
So what's the point to find excuses
If there's no stable version means that they are doing something
excuses for what exaclty?
But it's still not working properly
Or not secure enough
ANd it's fine
I'm not saying that's a problem
The problem is that idk why but from 1.8 to 1.18 it's no longer working
But writing here will not solve anything
not exactly... it just means that they're waiting for more stuff to pile up so they drop a bigger update. dropping a few lines of text changed update every day is not something we really want to do?
So i will stop waste your time, i was just curious
I mean if you really think its a problem don't heistate to open a issue on github
Hope it will get support for serverutils in the future
hesitate*
It's sure a problem, reloading the full server for every test means losing 500% of time
Just bc who knows what placeholderAPI does
but do you know what ServerUtils does?
Spigot was literally not made to be reloaded.
and paper even warns you when you do /reload and makes you do it twice
its something very well documented and known. a few googles would probably find a few spigot posts explaining it
test != real server
test server = you can do what you want
and stopping me from fast reloading changes is a bullshit
once again I don't work on the plugin. so open an issue and a developer will give you an answer
It's fine
Thanks for your reply
ah here we go https://madelinemiller.dev/blog/problem-with-reload/
yeah. but that doesn't stop stuff from breaking. it doesn't just see its a test server and says "now the reload command can just work". I mean PAPI has a reload command itself. if you want to reload expansions do that. and for your core you should have a reload command if you want that reloads stuff safely
Just updated to 1.18.2 to see the damage 💀
I get this error, what's it saying https://pastebin.com/wVvZe7gq
I think there is a bug with this placeholder -> "%statistic_mine_block%" when I mine any block it adds 1 to the counter, but if I mine stone it turns into rock and counts as 2 mined blocks when it should really be 1, no?
is there a placeholder to check how long a player has been on a certain world?
after restarting the server it forgets what extentions i installed
[20:36:05 WARN]: [PlaceholderAPI] Task #12342 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
anybody knows why when i tried to use %server_tps% or %tps% placeholders into TAB PREMIUM plugin of Neznamy, placeholder prints me 3 times the tps?
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
What command should i use to remove a specific amount of item from the inventory to the user ? and what placeholder should i check for the amount of the item ?
https://paste.helpch.at/zisujomibe.bash
im using deluxemenu and checkitem PAPI
Ok, i just made it but, it doesnt check all the three requirement to be able to click if the player has only one they can click
https://paste.helpch.at/ozasodisol.bash
omg im so st*pid, al my requirements had the same name xd
is there like an item placeholder
the placeholder prints the values at 3 different times. iirc its 1 minute, 5 minutes and 15 minutes. or it might just be seconds. there's placeholders to get the values for all of those separately:
%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%``` first 3 just get it normally and the other 3 get it and also color it.
what exactly would this do? there's the checkitem expansion that works with items a lot but not exactly sure what "an item placeholder" is
@turbid tide sorry, i meant when i use those placeholders in a bungeecord or waterfall environment, it prints 3 different tps on the same line
Please respect the rules, be patient and don't ping staff members!
sorry, i meant when i use those placeholders in a bungeecord or waterfall environment, it prints 3 different tps on the same line
Ugh. PlaceholderAPI doesn't support bungeecord? not sure how you're using it there
java.util.concurrent.CompletionException: java.lang.NullPointerException
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1(1).jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NullPointerException```
seems like one of your expansions is broken. I'd recommend you remove them 1 by 1 until it stops to find out which is at fault
These are the ones i use [17:41:55 INFO]: A total of 23 placeholder hook(s) are active: auctionhouse, bountyhunters, broadcastplus, bungee, chatmanager, cmil, combatplus, crazycrates, ezcolors, jobsr oreannouncer, plan, player, robottags, rosestacker, server, spark, supervanish, tab, townyadvanced trademe, vault, vulcan
I´m put the Placeholder API on all of my paper backend servers, i'm not put them on the proxy
The TAB plugin is on the proxy and i put the TAB bukkit-bridge on my backend servers as the author says on the wiki
But i can´t resolve that bug on %tps% placeholder
I guess there's your answer. %tps% is an internal placeholder from tab, not placeholder api and therefore will most likely glitch out or even parse it for all servers connected within the bungee, using the bridge. so my guess is you got 3 that fit the criteria
Hi, I'm looking to add a permission that only activated at certain times of the year through contexts. I'm planning on using the ExtraContexts addon for LuckPerms and PlaceholderAPI placeholders, but I was looking at the "server_time_X" placeholder, and I was curious how I would make it so the placeholder would define a period of a month instead of one date, or do I have to add a placeholder for each day of that month? Any help is greatly appreciated!
Try this
%server_time_<SimpleDateFormat>%
M for 3
MM for 03
MMM for Mar
MMMM for March
So you'd do %server_time_M% to get 3
or well, 5 since its may
Will that last for just today, or can I make it last several days?
I think you have to put D if you want days as well?
can you give a better example?
Say I wanted a permission that lasted for all of this month (1st of May to the 31st of May), what would that look like?
Yep so what you could do is
%server_time_M%, then check if that equals to 5
and if it does, then you're in may
Not sure if you can run checks like this with ExtraContexts
oo yep you can
Hmm ok, thanks for your help, also, do you how to I define checks, say I wanted to make a permission for a month in the future?
You'd put this in your ExtraContexts config
placeholderapi-placeholders:
month: "%server_time_M%"
Then in your luckperm context you'd probably do like month=5
Ok, thanks, I’ll start adding this to my server, thanks for your help 🙂
yeah np
Hi, sorry to bother you again, but would “%server_time_MMMM%” work if I wanted to set December as the month in the context? Thanks again for your help!
yep that should work
I think numbers are easier to work with though imo
but, whatever fits your use case haha
Yeah they are, just want to make sure there’s no prob going from single digit number (like 5) to a number with two digits (like 12)
So 12 would still work under M, or would it need MM
No it should work with just M
Ok, and MM would make 12 012 or smth
Nah would be just 12
Ok, thanks, I’ll give that a try
Hmm, I’ve set the extra context to the permission, but it doesn’t seem to be doing anything, does ExtraContext need to be installed on Bungee and Spigot? And if so is there a specific Bungee version? Thanks again for your help 🙂
no idea, I've never used the plugin
But I know you can't have placeholderAPI on bungeecord, so
What you could do is link all your luckperm plugins with a database, then put extra context on each of the spigot servers
and it should carry through throughout the whole thing
Yeah, I do use a database for my LuckPerms, so that shouldn’t be the problem, I’ll go ask LuckPerms if ExtraContext needs to be on Bungee, thanks again 🙂
np
Hello, I downloaded Heroes-expansion, but noone placeholder works, example : %heroes_main_class_name%
I already used Statistic, Vault etc.. But this one doesn't show
.
And I have another question, the placeholder "%player_first_join_date%" returns this: https://i.gyazo.com/62a8af8682fc2af516b16cfe00cc141a.png
But I need only the date "03/12/22" and in my country format, is it possible?
what about %player_first_played% %player_first_join% %player_first_played_formatted%
prob easiest to use js
var date = new Date("%player_first_join_date%")
date.toLocaleDateString()
maybe
How do I use it as a placeholder?
An expansion that allows you to use javascript for processing
• Wiki
• Community Scripts
• GitHub
• eCloud
day/month/year is what you want?
yes!
might be easiest to just disect it then
date.getDate() + "/" + date.getMonth()```
to start
API for Heroes doesn't work for me, can someone help?
might get more help in #development
A friend of mine told me that by editing the date in the PlaceholderAPI config I can do it easily, I didn't remember that xD
I looked for that
But yes, this is another way of doing it, sorry ping
it types %heroes_main_class_name%
?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.
can you send that over
Also, you said you downloaded the expansion jar
from where?
the spigot page?
try the one from the spigot page instead
you can send it in a paste
but it looks like the one on the ecloud is different from the one on the spigot page
probably better
Can you send me the link?
all the placeholders are also listed on the spigot page for that one
bit different from the other one
%math_{Hub-1}+{Hub-2}%
Does anyone know why this doesn't work? I wanna get combined number of players from multiple servers
how could i use a % sign in a placeholder?
wym
if you are talking about math placeholders, it is [prc] I believe
MiniMessage support is coming in v3?
Does anyone know how to restart statistics?
World folder
If I delete playerdata folder, nothing bad will happen?
or stats
I mean If I delete the folder, it will automatically make new one or?
Hey, I want to make a javascript placeholder which returns the current time in unix. But all I get is like 1.652523635E9 which won't work with timestamp in discord. https://paste.helpch.at/oqibuvagub.js
Edit: Fixed it
Yes it will
Like inside the changeouput placeholder, I want it to output the text %
Basically I want the changeoutput placeholder to be able to output text with the percent sign in it
oh ok thanks
How can I divide the %player_health%
amount to make it display only hearts not half hearts
%player_health_rounded% maybe @drowsy jackal
I tried that
a 0
i want it to show 10
if im at max health
not 20
so %player_health% and %player_health_rounded% both return 20?
what shows 20
okay, so you're saying shows 0
can you test it with /papi parse me %player_health% %player_health_rounded%
and tell me if it still returns 0
20.0 and 20
install that one
done
if they have 9.5 hearts do you want it to say 9.5?
it works!
Hello!
How i can take permission for player but he are offline
i test papi: OtherPlayer , ParseOther, but nothing if player off
try luckperms if you are using it
fairly certain their placeholders do not work for offline players
welp
Please respect the rules, be patient and don't ping staff members!
How could I make a changeoutput placeholder where it compares the first thing to multiple texts?
like this: %changeoutput_contains_{checkitem_getinfo:40_mat:}_BEETROOT\_SEEDS OR POTATO OR CARROT OR WHEAT\_SEEDS_ADD_SET%
Trying to check if the offhand item is BEETROOT_SEEDS, POTATOES, CARROTS, or SEEDS
probably just want to use javascript at that point
An expansion that allows you to use javascript for processing
• Wiki
• Community Scripts
• GitHub
• eCloud
Sorry, had to go, could I use javascript like a placeholder in another plugin that supports PAPI?
yeah. with the Javascript expansion
ah alright
you can create your own custom placeholders that execute a javascript script
😭 I have no clue how to do this
I've been looking at it and i know not one thing of java script coding
An expansion that allows you to use javascript for processing
• Wiki
• Community Scripts
• GitHub
• eCloud
well that's what the "javascript" expansion is for xD
well I think I have a way to do what I need without it
But I do have another odd issue
so I have this placeholder: %changeoutput_equals_{checkitem_getinfo:40_mat:}_WHEAT\_SEEDS_SET_ADD%
Which should check the offhand item, and see if it's WHEAT_SEEDS, and if it is, then give me "SET", and if it isn't, give me "ADD", correct?
yeah.
I have COOKED_PORKCHOP in my offhand yet it's still giving me SET
Change it to %?
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
hmm.
but cooked_porkchop but all caps
So I changed the {} to cooked_porkchop (but all caps) directly, and it gave me "ADD"...
so it works fine there
can you try something like this: /papi parse me %changeoutput_equals_TEST_WRONG\_ANSWER_SET_ADD% and then /papi parse me %changeoutput_equals_TEST_WRONG_SET_ADD%
so these do work fine. hmmm
maybe I have to escape the underscores in the {} placeholder?
that shouldn't be the case. let me double check the source code tho
oh was it that? I thought it parses the placeholders first
then splits the arguments
yeah I was wrong. it doesn't
it splits first
so basically it was taking {checkitem as one argument then getinfo:40 as another and then mat:} as another
👍 got it, thanks
im back
%changeoutput_equals_{checkitem\_getinfo:40\_mat:}_CARROT_SET_ADD% should check my offhand for carrots, and if it is, then output as "SET", right?
It gives me "ADD" even though my offhand is carrots
I ran /papi parse me %checkitem_getinfo:40_mat:% and it gave me CARROT
I ran /papi parse me %changeoutput_equals_{checkitem\_getinfo:40\_mat:}_CARROT_SET_ADD% and it gave me ADD though
... I removed the \ from the {} placeholder and it works fine then
I'm so confused
if no one is answering I'm going to be taking another look in like 15-20 minutes. not doing very well rn
ah, your fine. I think I can figure it out on my own with some testing. I'll let you know how it goes
ok so, doing %changeoutput_equals_{checkitem\_getinfo:40\_mat:}_WHEAT\_SEEDS_SET_ADD% with the forward slashes doesnt correctly check even if I have wheat seeds. It always gives me ADD. Doing the placeholder without the forward slashes always gives me SET, even if having wheat seeds or another item. The only time it works properly without the forward slashes are when I don't have anything in my offhand
ok so I'm not feeling very well today and I just double checked and I was completely wrong. the \ in the bracket placeholders should not be needed at all
😬 I'm sorry to keep bothering you then, but if I remove the \ then anything I hold in my offhand is considered wheat_Seeds
no wait... Only cooked_porkchop does it
nvm, a lot of stuff do it
But oddly enough, carrots, potatoes, and wheat work normally
any chance the checkitem placeholder give a colored output?
you might want to try something like this:
%changeoutput_equals,ignorecase,ignorecolors_{checkitem_getinfo:40_mat:}_WHEAT\_SEEDS_SET_ADD%
nope, still gives me SET with cooked_porkchop
and the text is in full caps, white color
this confuses me a lot. anyways I think I could just give you the javascript code. should be just some simple if checks
yeah. that's basically the precedent for checkitem expansion
But I'm saying use the javascript expansion as an alternative of changeoutput.
function checkItem() {
if ("%checkitem_getinfo:40_mat:%" == "COOCKED_PORKCHOP") {
return "SET";
}
return "ADD";
}```
ah ok. is that all thats needed?
yeah. you need to set it up first in javascript_placeholders.yml and then in plugins/PlaceholderAPI/javascripts/
the wiki should tell you how to create a javascript placeholder step by step
An expansion that allows you to use javascript for processing
• Wiki
• Community Scripts
• GitHub
• eCloud
alright, thank you very much! sorry for all the trouble I've caused
you've caused no trouble at all. I'm here to help
whenever I do /papi parse me %javascript_change%, it just gives me a blank text in chat
can you put the stuff you have in javascript_placeholders.yml in a paste bin and send it here?
alright. and you've placed this code inside plugins/PlaceholderAPI/javascript/change.js?
oh yeah that's my bad
I forgot to call the function
function checkItem() {
if ("%checkitem_getinfo:40_mat:%" == "COOCKED_PORKCHOP") {
return "SET";
}
return "ADD";
}
checkItem();```
pog it works! ❤️
alright. and how do you want these all to work? do you want to check if its X or Y or Z? or just check if its X?
Yeah yeah. about this
ah, well basically I was trying to make a custom enchant that replants crops when harvesting them, but if the offhand item is a specific crop then it would plant that crop. So if you had nothing in your offhand and you broke carrots, it would plant carrots. But if you had potatoes in your offhand, it would plant potatoes
well, overall, I spent far too long on something extremely dumb and nobody would use 😂
but javascript is awesome! changed my file from: https://imgur.com/a/GAdkMK8 to https://imgur.com/a/03ZnMGW haha
well awesome for this. not in general tho xD
I actually use the changeoutput placeholder in so many places, javascript will definetly help :D
So im using a formatter inside a formatter what would I use when doing %{3rd placeholder}%
Can you access api from other plugins in JavaScript
Can placeholder api have bungee support/can be installed on a Proxy?
nope i guess
Where are the papi for this https://www.spigotmc.org/wiki/mvdw-placeholders/#tickspersecond ?
Can't find it anywhere
Where is the average tps and tps rounded tho
%server_tps%
%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%
Alrighty thank you
it will only return it rounded I believe
%server_name% isn't returning the correct name
its returning the name you set in plugins/PlaceholderAPI/config.yml
Ah okay
Does the Bungeecord server name return still exist under a different expansion than Bungeecord or no?
no
Hello, once in a few server restarts I get this error on my server. What could be the issue? Other times everything loads up fine.
Here's what happens when PAPI breaks:
https://pastebin.com/raw/McpgBfBB
AND here's what happens when it loads up normally with nothing changing on the server:
https://pastebin.com/raw/PUw2VNjR
Any help please?
it just seems like either a corrupted plugin jar (you could try redownloading PlaceholderAPI) or a broken expansion. you can try by removing all expansions from the expansions folder and seeing if this still happens
Thank you very much! Will do!
hello I have a little problem with my api i try to be the api kill stats on my tab but its does not work it downloads but it does not appear in the list of papis is normal?
do you have the KillStats plugin? Some expansions require you have some extra plugin(s) to work
this is the case for the KillStats expansion
it takes an extension for its work it is possible to have the name or the link?
usually if the name is blue on the wiki it means that there's a plugin required. you can click on the name for it to open the link to the download page
anyways. the killstats plugin was not updated in years
you might want to get a newer plugin
like CombatStats
the skript expansion was deprecated long ago. you should use this one instead https://github.com/Altruiis/skript-expansion/releases/
instead of what?? combat stats
oh. I Might've misunderstood your question
what exactly doesn't seem to work?
in fact it is a scoreboard that and made in skript on my other servers its works the api but not the one the
in fact I want to use the api killstats I implant it in my code but its does not work I have the plugins combat stats sa still does not work I do not know why I use skript for my scoreboard I do not know if it is the cause or not
you don't need to use the killstats expansion anymore
if you use combatstats, you use their expansion
I just told you that there is the extension but its does not work
Thanks again! Found it! It was the javascript expansion, I'm guessing that rather than being the javascript expansion though it's one of the .js files or such
are you dumb or are you doing it on purpose? have told you that we have the extension but it does not work. not complicated to understand if?
I can't be a photo otherwise I would have directly shown what I had
I am dumb. but the problem is not that right here. The problem is the language barrier. I understand only half of the stuff you guys say. I'm trying my best right here...
you speak french ??
Your english seems absolutely fine
not mine is the problem.
okay let it go, have you managed
me ?
yeah. what I understand from here is that you're still trying to use the killstats expansion. but you also said you've switch to combatstats
extention doesn’t work
its built inside the plugin
you don't need to download anything else
just the plugin itself
nothing actually works
do you have CombatStats installed on your server?
yes
if yes try this command: /papi parse me %combatstats_kills%
what does this command say? it should return a message in chat
0
1
ok so the placeholder works. now you use these placeholders in Skript. at least I believe Skript supports PlaceholderAPI
there's multiple placeholders. you can see them listed here
or on the spigot page
yes its function but when we want to use the extention it does not work
Or can I put the picture down for you to see?
which extension exactly?
you can use imgur.com if you want to send screenshots
I'm not sure how Skript works. The placeholder works as you've mentioned above so my assumption is that Skript either doesn't support PlaceholderAPI or it uses a different format for them.
on my screen that I sent you is HolographicDisplay which is use
Oh well HolographicDIsplay also uses a different format
I believe it is {papi: combatstats_kills} but let me double check
yeah
Is there a means to get information on the placeholders of an expansion if an expansion has no documentation?
either from https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/placeholders or from the expansion/plugin's wiki/spigot page
so if its not on this link and not on their wiki/spigot page then not really
Okay, thank you!
read first star btw. it explains the format
so this should work in HOlographicDisplay
I have this javascript: https://pastebin.com/9SAPpeYp but it keeps returning blank
I did /jsexp parse me <code>, and it returned carrot, which is what it should do
but if I do /papi parse me %javascript_block%, it returns air
you're probably using the wrong placeholder then.
send your javascript_placeholders.yml file in a paste bin
I'm trying to make a javascript where theres an argument, and it checks if that argument equals something, and return text if it does
I was trying to base it off of the community javascripts
yeah. this should work
as long as you use it correctly
might be bcz of this var crop = POTATOES;
might want to make it var crop = "POTATOES";
kk
since it probably doesn't find a variable named POTATOES
yeah. strings need to be declared in quotes
otherwise they're variables
and you have no variable called POTATOES
👍
Heyaaa! So I am using Mc 1.18.2 and papi 2.11.1 . But Everytime the server restarts or startup papi seems to stop working and only works after /papi reload. Can someone help me out with this issue?
Could you please tell me you solved this problem? I have the same problem as you. I am using papi 2.11.1 too. And i tried to use akarin 1.12.2 and purpur 1.18.2(1623) as server software. i tried to use dragonwell and zulu as jvm. This problem always happened.
I couldnt
incomprehensible error.. pls let me know if you solve it, thanks :)
The placeholder https://api.extendedclip.com/expansions/scoreboardtags/ seems not to be working because it returns just the placeholder. I see it is made by Glare, an admin here, so I hope he or someone else here can help me out 😄
Steps:
-
/minecraft:tag Itz_Robinnn list
feedback:Itz_Robinnn has 1 tags: KeyIngeleverd -
/papi parse Itz_Robinnn %sbtags_has_tag_KeyIngeleverd%
feedback:%sbtags_has_tag_KeyIngeleverd%
just seems like one of your expansions is broken. go to plugins/PlaceholderAPI/expansions/ and remove all expansions, restart and see if it happens. If it doesn't, then add half of the expansions back, restart and see if it happens, if it doesn't repeat. if it does then the expansion is in the half that you've just added so remove half of the half you just added and restart. if it still happens repeat if not you've found the expansion
you too. do the same thing as I've told them to do above 
the sbtags expansion uses Spigto's API to get the socreboard tags. its like a 4 lines of code. so if its not working, either:
a. spigot is broken
b. the expansion itself is broken and doesn't actually load at all on startup
c. the scoreboard tags that spigot gives are different from the minecraft ones.
now we can make sure its not b by you just doing /papi dump and sending the generated link here
welp its b. now we need to find out why its not loading. can you restart your server and generate a startup log?
and then send it here
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 Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
read the above ^
Failed to load expansion class ScoreboardTagsExpansion - One of its properties is null which is not allowed!
hmm
yeah. I assume its the version. this might be a plugin messing with the ClassLoader. or idk what else tbh
yeah it is the version. it says it
So, no 1.18.2 support yet?
can you try updating paper to latest development build? Its most likely not going to fix it but its worth a try
no no has nothing to do with the spigot/paper version
but rather with the actual expansion's version
Ah, okay, then I'll have to check with my colleague. He manages the version we run our server on
it uses reflection to get set the version itself. and so I believe that if there's a plugin or something like that that messes with the class loader the expansions that use this will just break
no no. idk how to explain it tbh xD
I could just give you custom jar where I make the version a fixed string, or you could try removing some plugins to see if it works like that. or just PlaceholderAPI and the expansion itself on the server
16.05 09:42:35 [Server] ERROR [PlaceholderAPI] Failed to load expansion class ScoreboardTagsExpansion - One of its properties is null which is not allowed!
how do i fix this error
we are just talking about this. above. it might be a plugin that messes with the class loader
what is that
if you wanna read https://www.baeldung.com/java-classloaders#classloader-intro
sure
Hahaha
Okay so presumably the ScoreboardTags expansion conflicts with another plugin and therefore doesn't work. What I can try is 1) update server to new paper version, 2) investigate with which plugin it conflicts and see if I can spare that plugin 3) buy a custom expansion
you don't need to buy it. I can just make 1 in a few seconds. the problem is that there's many expansions using the same system that you might want to use in the future and that won't work
for the same reason
anyways. if you want a fix just for this expansion, here it is
just go to plugins/PlaceholderAPI/expansions and replace the current Expansion-ScoreboardTags.jar with this jar
and then restart
Oh how wonderful! Even though that may conflict again in the future? So the most sustainable solution is to try option 1 first?
well this exact expansion no. unless you use another version of it. but others yeah
well first, will most likely not fix but you can try. seconds is probably best
hahaha, you have already made it! Thank you, I'll try it right away!
does it fix the error?
for this specific expansion yes
aight
btw
[Server] WARN [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend or softdepend of this plugin.
you can ignore those
nahh
k k
Update: it works!!! 😃 🥳
Thank you so much!
Lolll, definitely not
WARN [PlaceholderAPI] Loaded class com.bencodez.votingplugin.VotingPluginMain from VotingPlugin v6.9 which is not a depend or softdepend of this plugin.
do i need to care about this?
those Loaded class some.class.path from SomePlugin.... can be ignored, it's just a warning that Spigot shows because PlaceholderAPI doesn't specify that it's hooking into other plugins in its plugin.yml, but it doesn't affect anything
That's because of exploit fixer plugin or something like that
You can fix it dw
also, MilkBowl is the author of Vault :D nothing else
Slide into DMs if you need assistance
That's not the actual problem
he thought milkbowl meant there was an issue with milk
Are you sure about that
But by looking at his msg, we can figure out that he is having issue with using milk
he's asking if it can cause issue with players not being able to drink milk
well, you know what
@languid vessel
back
do yo have an issue wth milk?
oh
wait
explock?
or illegalstack?
Maybe
Use #general-plugins or #general-plugins-2 or DM me
oh okay
ohh i see
oh lmaoo
thx, I fixed this bug successfully :)
Please respect the rules, be patient and don't ping staff members!
👍
How do I clear PAPI stats? I am using ajLeaderboards and now im in a new season but the stats carried over after clearing playerdata..
i tried and he said to come here
or contact "papi support"
well what stats are you trying to reset? bcz like placeholderapi does not store any data?
every plugin stores their own data, placeholderapi just requests it and displays it
just statistic time played and player kills
or something like that
well i opened it and now the file explorer thing on minehut has crashed,
oh yeah so basically theres like thousands of .json
I have an item that's name is "Farming Helmet (Farming Set)", but with color codes. How do I use checkitem to see if the name is that? Do I include the color codes?
The real name is "#9B5D29Farming Helmet &7(&bFarming Set&7)"
I tried that and it didn't work
did some testing and seems like hex isnt checked
I just changed it to namecontains then
how would I make a javascript that checks if the helmet is something, if so, have 1. Then check the chestplate, if it is something, then add 1 to the first number. Same with leggings, boots, and mainhand
ok I semi got a thing for it to work
return "4";```
So I have this, but it gives 1111. how do I add the four numbers together?
of course, I could work with 1111, but I do want to learn how to add the four numbers. Which is probably common knowledge to everyone 😅
ok, I removed the " and it works :)
If you are going to use Javascript, it is better to use bukkit methods
hey, i was wondering how i can use placeholders inside of placeholders?
an example:
%luckperms_group_expiry_time_%luckperms_highest_group_by_weight%%
like this %luckperms_group_expiry_time_{luckperms_highest_group_by_weight}%
i tried that- maybe its a luckperms thing?
Alright, thanks
Hey, is anyone familiar with the CheckItem expansion? https://github.com/PlaceholderAPI/CheckItem-Expansion
im trying to use the remove function to remove just one item. Is this possible?
%checkitem_remove_namecontains:&d&lTest Item% (This removes the whole stack of the items all named the same thing)
Using checkitem_amount just returns the amount in the inventory
use the amt modifier @potent oxide
%checkitem_remove_namecontains:&d&lTest Item,amt:1%
Thanks so much 🙂
Hi so I was facing this issue. And someone told me that one of my expansions might be broken. I reinstalled and updated all the expansions and still face this, issue. Can someone help me with the same
Hey I'm Using NUVOTIFIER plugin and was wondering how to make it adter you vote a certain amount of times, you rank up
If you also don't know what I'm talking about go to my dms and I can tell you which server to join, as an example
@sharp jay can you help me with dis issue
Please respect the rules, be patient and don't ping staff members!
ok
i've just been waiting for so lonng, not on this server but 2 days to try to get this thing to work
Not by mentioning me
I have this on my scoreboard "Towny: %townyadvanced_town%" it works just fine, but if I'm not in a town it doesn't show anything, how do I make it so if I'm not in a town it shows [None] instead of just showing literally nothing.
you could use the ChanteOutput expansion
%changeoutput_equals_{townyadvanced_town}__[None]_{townyadvanced_town}% something like this might work
TYSM
Please respect the rules, be patient and don't ping staff members!
Oh oops, my bad
when I put %playtime_time% it shows the hour minute and seconds
how do I make it so it only shows hours like this:
playtime: 2h
don't think that's something you can do. Unless PlayTime allows you to customize it inside their own config
Okay, thanks anyways (:
For the checkitem placeholder can you make it ignore capitlization
no, but you could use it to retrieve the info and use javascript to ignore caps
👍
I made all of these already but nothing :((
/papi dump send the generated link
okay
can you execute /papi parse me %vault_eco_balance% and see what the output is?
yes
It says 0.0
Which is good because my balance is 0
hmm. the placeholder seems to work then. What scoreboard plugin do you use?
I make my own
you need to import it and use PlaceholderAPI.setPlaceholders(Player, String);. let me get the wiki link
Oh okay
what can I do with this?
send your entire pom.xml in a paste bin please: https://paste.helpch.at
Okay
Here it is
https://i.imgur.com/CUgYZAL.png you already have repositories and dependencies declared
you have to move PAPI's under those
Oh okay, I try it, thanks
like this https://paste.helpch.at/iyixowuzel.xml
check the paste I sent
use that
👍
yeah. since you're going to use it in your plugin
Oh okay
https://cdn.discordapp.com/attachments/713789404501508157/976548571685998672/unknown.png does it matter that it is with gray?
that means you've imported but you're not using it
in your actual codwe
code*
it will turn white when you'll use that class
@turbid tide Is that not the correct use of it? https://cdn.discordapp.com/attachments/713789404501508157/976554487458177084/unknown.png
Please respect the rules, be patient and don't ping staff members!
strings are not mutable. you have to work with the output of the setPlaceholders method
for example
val balanceParsed = PlaceholderAPI.setPlaceholders(player, egyenlegtext)```
and then you set it in the scoreboard
oh okay
Its finally working
Ahh thanks for your help 😄
no problem
Statistics placeholders don't show offline players in leaderboards, is there a way around this?
like %statistics_player_kills% or %statistics_hours_played%
the statistic expansion only works for online players. so unless whatever leaderboard plugin has a way to show offline player's stats then no
cool, thanks for answering i'll look around for a leaderboard plugin that does that
hello
when i use this placeholding in this format it works i get the value back but when a player joins i get this error but as the owner i can join and i dont get any errors i dont understand what i did wrong
19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_{aureliumskills_power}/15%
19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills' is not a valid number for precision!
i have talked to Levelled mobs support and they said i would have to talk to placeholder about my issue
/papi parse me %math_{aureliumskills_power}/15%
the math expansion requires you to set a precision now %math_0_{aureliumskills_power}/15%
Okay Ill try this thank you so much for your quick reply
Sadly this did not work
19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_0_{aureliumskills_power}/15%
19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.
seems like your aurelium placeholder isn ot working
if you execute /papi parse me %aureliumskills_power% what does that return?
I'm a bit confused. This command returns 1.88?
/papi parse me %aureliumskills_power/15% wait this exact command returns 1.88?
/papi parse me %{aureliumskills_power}/15%
ugh. you mean the math one?
/papi parse me %math_0_{aureliumskills_power}/15% right?
yes im sorry about that
hmm. and you still get an error?
while you execute the command I mean, if you check the console
you get an error?
yea
19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_0_{aureliumskills_power}/15%
19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.
19.05 11:16:36 [Server] INFO [ExcellentCrates] Auto-save: Saved 1 online users | 0 offline users
wtf. if it works why is it erroring. hmm 1 sec
it happens every time a player joins
oh. are you using the placeholder in a message or something like that?
featherboard Plus Levelled Mobs*******
can that be it?
its still works though featherboard
i can see the 1.88
i'm tech using it for my server combat level
its working real well aside from the error
you may be on to something i removed it from featherboard and theres no more error
can you show the exact placeholder you have in featherboard
like copy paste it here
and put it into ` here `
so it looks like this
&b&l> $setting_label-color$&lCombat Level: &b%math_{aureliumskills_power}/15%
i cant do the 0 on the scoreboard if i do it shows way do many Extra Numbers like this 1.88.888888888888888888888888888888888
but even more then that
can you put it inside ` not '
that character is above the TAB and under the Esc buttons
Edited not sure if you seen it but if yea and your busy take your time to reply 🙂
Please respect the rules, be patient and don't ping staff members!
hmm.
o i didnt mean to ping
try %math_2:_{aureliumskills_power}/15%
okay
I wonder if the scoreboard is just updated too fast and the aurelium placeholder just doesn't work bcz the player is not fully connected yet. that could also be a problem
let me lower the intervals
raise i mean but no that didnt work
19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_2:_{aureliumskills_power}/15%
19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.
weird i think your right when i turned up the intervals then logged on again i still get the error and the placeholder breaks this time not showing the value but the placeholder itself, Then on the next update its fixes the placeholder
if you put just %aureliumskills_power% in your scoreboard does it show correctly when you join?
yea it shows normally
Idk then. This is the best theory I have.
since the error you show, says its trying to divide the actual text {aureliumskills_power} by 15. so clearly the placeholder isn't parsed. And I've looked at the code and the only reason I see would be that
okay well it works perfect mixing it with Levelled Mobs so worse come to worse ill just take it off the scoreboard
the thing is, the placeholder just shows fine in the scoreboard right? so the only bad part is the message that you might get spammed with.
yea but only on Loggon so may i can just spam hide it
you could in theory use something like ConsoleSpamFix or whatever its called
cause it does make the rpg feel so much more like a real one
yea i have it ill give it a go, But i do owe you a big Thank you for your help! and time
no problem 👍
Is there a placeholder to list all the players on the bungeecord instance
just the amount. not their names
hey
is there a way to not use a placeholder by putting a certain character in front of it?
Or something of the likes
no. unless the plugin you're using it in specifically adds that.
it worked just fine but suddenly it changed and I don't know why
I've tried disabling my latest installed extensions but that didn't fix the issue either
as I was saying, that was never a thing in PlaceholderAPI itself. Unless the plugin you were using it in had this specific functionality.
the entire plugin? no.
if you want to disable it, remove it from the plugins folder and restart the server
btw there was a placeholder I unregistered and now I can't get it back
is that normal?
what placeholderand how did you unregister it
The placeholder was called "regionclaimplus" ||https://www.spigotmc.org/resources/regionclaimplus-full-recode-extremely-configurable-1-8-1-18.94961/||
I uninstalled it via command (unregister)
mind executing /papi dump and sending the generated link here please.
its fine to send plugin links here btw. as long as you're not directly advertising like "buy my plugin" its absolutely fine
if you restart the server its still not working?
ah ok good to know
I'm doing that rn
I removed it from the plugins folder and just added it again
It still sees player as a placeholder even though papi wasn't even installed anymore
Any idea why that is?
%player% is not a PlaceholderAPI placeholder
that's probably an internal placeholder of that specific plugin
every PlaceholderAPI placeholder has a specific pattern
%identifier_<arguments>%
if it doesn't look like that its not a PlaceholderAPI placeholder
could it be essentials that messes with the chat format?
hmm? what would?
ohh
misunderstood the question
I mean essentials only changes the format if you have the EssentialsChat plugin installed
prefixes:
- default;&a**[Player]** &f;&a[Player] &f
the [player] is used as a placeholder for some reason
I mean as I've said before, its most likely something that the chat you use for formatting has built in
plugins can make their own internal placeholders not related to PlaceholderAPI
so most likely whatever chat formatting plugin you use, has one
Hey, how would I set the material of a delxue menu itemto the item that successfully trigers %checkitem_mat:SHIELD,namecontains:&fSteel Guard%
Or alternatively does anyone know how to get the output of what slot # the checkitem placeholder finds an item in?
Does anyone know why this doesn't work? %math_%bungee_Hub-1%+%bungee_Hub-2%%
And presents this error
[00:55:21 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [00:55:21 WARN]: [PlaceholderAPI] [math] Placeholder: %math_% [00:55:21 WARN]: [PlaceholderAPI] [math] Cause: '' is not a valid Math Expression.
Use {bungee_Hub-#}
No one here is paid to help, so do not beg. People volunteer to help here
U need to download protocollib plugin
Also replace Essentials with ForgeEssentials since u arent using bukkit
Also I dont think papi works on non bukkit servers
Unless u have a reason, i suggest using paper as ur jar file and use plugins not mods
Mods are mainly for singeplayer worlds
nonsense
many, many mods are made with multiplayer in mind
think your vault expansion may be corrupted, try redownloading
the vault expansion
How can I register an extension that I have previously deleted?
it shows when I type /papi list but it doesn't work
Generated: May 20, 2022 at 2:23:59 PM UTC
PlaceholderAPI: 2.11.1
Expansions Registered:
regionclaimplus [Author: 3ricL (Ericdebouwer), Version: 1.1.4]
...
Expansions Directory:
Expansion-playertime.jar
Expansion-player.jar
Expansion-viaversion.jar
Expansion-autorank.jar
Expansion-statistic.jar`
and I know it's been in the expansion directory before (I deleted it 😅)
I’ve tries to add it back but it’s not working for me :c
ah and btw I don't get any errors in the console
So restart the server
https://paste.helpch.at/sebafexiqo.js I have this javascript, would this be correct in storing the placeholder %checkitem_give_mat:{deluxeshop_{args[0]},name},amt:{deluxeshop_currentAmount}% as a variable and using it in a function?
can you send your startup log please? restart the server first to generate a new one
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.
ok wait a sec
not exactly. you're doing a bunch of math operations and comparison in strings. plus you're using arguments in strings. that won't work. you need to concatenate. and also you don't use the amount variable at all
can you dm me so I can send it to you please :D
Sorry, I have basically 0 experience. So I need to move the argument and math operations out of the string, would this be it:
if (args[1] > "1") {
return eco give %player_name% args[1]*%deluxeshop_{args[0]},buy%;
}
return "msg dunescifye no";
}```
no. put it in a paste bin: https://paste.helpch.at
it's already a txt file
and you copy the content and put it on that website and send the link
or is this different?
ah I see
yeah. you place text there, and it generates a custom link so I don't need to download anything
and you don't need to send files
wouldnt the amount variable be args[1]
no. args are different
they're what you call in a placeholder
ahh ok