#placeholder-api
1 messages · Page 135 of 1
"%townyadvanced_has_town%" == "true" ? "Message If Player Has Town" : "&7Youre not in a town! But you can do /t new to start your own"
"%townyadvanced_has_town%" == "true" ? "&bTowny: &7%townyadvanced_town% <<SPLIT>> &bTown Bank: &7%townyadvanced_town_balance%" : "&7Youre not in a town! <<SPLIT>> But you can do /t new to start your own"
can you try this javascript? https://paste.helpch.at/colilalahi.nginx
you will use it like this:
%javascript_NAME_1% and %javascript_NAME_2%
you put the one that has 1 in it in the first line
and the other one in the second line
huh
nothing is there
what if you do /papi parse me %javascript% and of course you replace the placeholder with your actual javascript
var noText = ""
var yesText = ""
switch (line) {
case "1":
yesText = "&bTown: &7%townyadvanced_town%"
noText = "&7Youre not in a town!"
case "2":
yesText = "&bTown Bank: &7%townyadvanced_town_balance%"
noText = "&&But you can do /t new to start your own"
}
"%townyadvanced_has_town%".toLowerCase() == "true" ? yesText : noText```
its the thing you had in the link
no no
the actual placeholder
/papi parse me ...soemthinghere...
what goes instead of somethinghere
/papi parse me %javascript_NAME_1%
NAME_1.js
what
oh
show me your javascript_placeholders.yml
file: NAME_1.js
NAME_2:
file: NAME_2.js```
ok that makes sense
you don't need all that
so
towny:
file: towny.js```
instead of those 2 you sent put this one
then do /papi reload
then go to towny.js and put this code inside ```js
var line = args[0]
var noText = ""
var yesText = ""
switch (line) {
case "1":
yesText = "&bTown: &7%townyadvanced_town%"
noText = "&7Youre not in a town!"
case "2":
yesText = "&bTown Bank: &7%townyadvanced_town_balance%"
noText = "&&But you can do /t new to start your own"
}
"%townyadvanced_has_town%".toLowerCase() == "true" ? yesText : noText```
then use %javascript_towny_1% for line 1 and %javascript_towny_2% for the second line
@gentle summit
ok sorry im back
it repeats the message "but you can do /t new to start your own" on both lines
can you do /papi parse me %javascript_towny_1% and tell me what it says
then do /papi parse me %javascript_towny_2% and tell me what it says
towny_1:but you can do /t new to start your own
towny_2:but you can do /t new to start your own
sorry for using so much of your time
it repeats the town balance message
also i changed the % to a { around the placeholders in the code
because they dont work with % and you have to do {}
what?
what are you talking about?
they do work
but still
that's not going to affect the result
ik it wont affect the result
but when they were %s it didnt work
and i remembered i saw somewhere they need to be { if they are a placeholder inside of the java placeholder
ohh
it still didnt work when i had %s
but when i changed them it shows the balance
var noText = ""
var yesText = ""
switch (line) {
case "1":
yesText = "&bTown: &7{townyadvanced_town}"
noText = "&7Youre not in a town!"
case "2":
yesText = "&bTown Bank: &7{townyadvanced_town_balance}"
noText = "&7Do /t new to make one"
}
"%townyadvanced_has_town%".toLowerCase() == "true" ? yesText : noText```
don't you have to change it here as well then? https://i.imgur.com/K0IDM1f.png
...
i guess not
because when i did that its showing the message saying to create a town
but im in a town
hmm
var line = args[0]
var noText = ""
var yesText = ""
if (line == "1") {
"%townyadvanced_has_town%".toLowerCase() == "true" ? "&bTown: &7{townyadvanced_town}" : "&7Youre not in a town!"
}else {
"%townyadvanced_has_town%".toLowerCase() == "true" ? "&bTown Bank: &7{townyadvanced_town_balance}" : "&7Do /t new to make one"
}```
can you try this code please? @gentle summit
oh finally. you're welcome xD
I have a question about adding my plugin to the papi wiki listings. I'm about to create a pull request, but the docs say I need to ask about doing that on this discord server first. Is there anything special that needs to be done prior to creating a pull request?
i have a quick question about featherboard (or really any scoreboard plugin) when someone has a sec.
what is the placeholder to show the rank WITH the rank color? right now I use the vault rank placeholder, but id like to know how i can display the rank with its color. also, my online player placeholder doesn't show up. its just blank.
ERROR [FeatherBoard] Error in placeholder: {playtime_hours}
I'm not aware of anything that needs to be done. You can make a PR and they'll probably tell you if something needs changed etc.
If your scoreboard plugin supports PAPI then its %vault_prefix% if your scoreboard plugin is FB tho you have to use {placeholderapi_vault_prefix}
Hmm, ok. I'll try again. Hold on.
make sure you have the Vault expansion installed for both ways tho
/papi ecloud download Vault and /papi reload
Yeah, I've done that.
well then those should work
Its just blank.
as long as you've set your rank prefix
are you sure you've set your rank prefix correctly ?
I've set it in TAB and PrefixSystem (are the plugins I use for the prefixes) and I use pex. I have vault installed but don't know where I would set prefixes there.
K
can you send link to the plugin? xD
Well, I've been using pex since 2017, so i just know it best. Even though its outdated.
which one?
pex
bcz the first search results
are some random plugins that also include pex in their name lol
try search permissionsex
oh
I see
its not on spigot
btw aidan you should look into LuckPerms
has an import feature as well to import pex configs
BlitzZzZzZzZ: Thanks for the reply. I already opened a pull request. But the documentation that it tells you to read prior to creating a pr says you must first contact the repository owners to discuss the pr prior to creating one. I guess it was just a copy and paste statement. lol... Thanks again for the response. 🙂
Hmm, ok.
would that really be the issue tho? where can i set prefixes in vault?
so where does vault get the prefix from?
oh shit
i dont have prefixes set in pex lol
hold on ima try that
oh you know how to set them? xD I was searching for how to set tthem
also found the wiki https://github.com/PEXPlugins/PermissionsEx/wiki/
/pex group <group> prefix [newprefix]
that's how you set it
trying rn
ahh there we go xD
now its showing up
and what about the playtime? my console is being spammed by this
ERROR [FeatherBoard] Error in placeholder: {playtime_hours}
well there is the statistic expansion
instead
so /papi ecloud download Statistic and /papi reload
then use {placeholderapi_statistic_time_played}
youre the man! thanks.
is there a way I can change/shoten the layout of the time?
i dont need the seconds, and would like it to be displayed in only hours, if thats possible
thanks so much.
How could I combine the player count of multiple servers into one number?
-paoi bungee
I am well aware, but I am looking to count specific servers, not all of them.
Oh math + bungee then
Appreciate it 🙂
One more question though. Is there an if function, to set the text to something else if the server is full for example
Javascript expansion if you want more customizability
Hmm let me see if I can find the links
On phone rn
Thanks again
Once again, how am I gonna edit the wiki on JS expansion though?
you ain't got access to it?
Define "isn't working"
Hey, my countdown timer is showing as 1d 32h, my plugin is up to date, is there a way to fix this?
This is what I'm using as well:
%server_countdown_dd.MM.yyyy_30.11.2020%
update to the dev build
of PAPI
link ^
Thank you, I'll give that a try 🙂

everytime i try to /papi reload i get this error and im unable to reload my placeholders
@humble nymph hi
How would I display the persons information that I'm running a command on?
For example, I'm using Statistics so there is this placeholder: %statistic_days_played% . It displays my playtime on the GUI when I want it to display the information of the player I'm running the command on. Anyway to make that happen?
Hi, I'm trying to use %server_countdown% to count down to midnight - using format HH.mm - just shows up as zero. Anyone know why?
is this deluxemenus?
Yup
use args
Can I get a example?
i havent used args myself, but heres the wiki if that helps https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/gui#args
all ik is that its possible 🙂
Thanks, I'll take a look
Oh args like {player}
Yes I know that
But I'm talking about placeholders
As far as I can tell args don't work with them
Didn't make a difference :/
):
i tried using the %player_item_in_hand_level_Sharpness% placeholder and it brings up an error
Try making sure the item has the sharpness enchantment, but I've never used that placeholder before
it did
Enchantments Lists:
ow it uses a different naming ok
Nope
https://pastebin.com/8KBUiaEd how can i fix?
try to open the papi plugin.yml and add EssentialsX as soft depend
it worked thanks
@pulsar locust,
Please respect the rules, be patient and don't ping staff members!
np
does anyone have any experience with the ScoreboardObjective placeholder? I am currently trying to parse the displayname of the objective, but it keeps returning ObjDNE
how do I make top kills in holographic display?
LeaderHeads support a leaderboard for HD
its a premium plugin tho, and it could be pretty performance-heavy sometimes
Hey! How can I remove comma using javascript from %jobsr_user_jmaxexp_(jname/number)%?
args[0].replace(",", "")```
thanks
if you need help setting up the js placeholder there's a wiki as well
but yeah the code should just be one line
Hello, it seems that PAPI for LeaderHeads isn't working. (PS: I'm not sure about what im saying, maybe i'm just noob.
https://i.imgur.com/5DWz0c6.png
Is there anyway to resolve it?
idk what that is supposed to be
but is not correct, leaderheads have other placeholders
lol
What you're showing has nothing to do with PlaceholderAPI?
Someone know how to transfer placeholders across bungee/servers? I have minigames server and some minigames does not support MySQL and I want to show player stats in Profile menu on Lobby server and I didn't found any plugin that can transfer Placeholders across servers, if someone knows, help me please 🙌 ...
there are some APIs and plugins out there. just search PlaceholderAPI Bungee Bridge and you should find some
Thank you for respond but I didn't found any plugin 😦
This is actually something that I'm trying to integrate into LeaderHeads
To make it more easy to see your own stats (as well as daily/weekly/monthly stats)
Cross-server as well
@turbid tide does that depend on whether the expansion on the other server (in your Bungee network) supports retrieval of data for offline players?
how do I make top kills in holographic display??
you got a top kills placeholder first?
Like DeluxeCombat or LeaderHeads or whatever
then its pretty easy
just install HolographicExtension, ProtcolLib and you're good to go
if not
then you need to have a leaderboard plugin first
or you can check this
idk if it has kill tops
oh nvm xD
that's just palytime
not sure if this is the right place to ask but, i wanted to know if it is possible to show what player a server is currently on with a placeholder. this would be meant for bungeecord. i don't know much about making plugins or anything lol
well if you want to show that info in the same server then its possible yes
%server_name%
Oh alright, so it wouldn't be possible to show it over a network? I wanted to make my friends menu show what server their friend is connected to but it doesn't seem like it would work
well not using PAPI alone no.
But probably possible with this: https://www.spigotmc.org/resources/bungeeplaceholderintegration-placeholderapi-bungee.79900/
it does require some plugin development knowledge tho I'm pretty sure
can you help me?
huh?
https://imgur.com/a/279Qeca why is it like this?
ugh what're you using?
/hd setline topkills 2 &e&l1. &d&l%player_name% &8&l- &c&l%deluxecombat_ranking_KILLS_1% This is the placeholder I used
DeluxeCombat?
oh
well because there's no one to take the spot
DeluxeCombat takes the stats from what it has saved itself. So if you just added it it has no stats to fetch
Also did you just purchase DCombat for the Leaderboard part? xD
yes
smh
make sure you look thru the entire plugin and configure it
it has a lot of great feature but some are enabled by default and you might just not want them on your server
blitz, what is the placeholder again for playtime using statistics etc.?
@mild gale,
Please respect the rules, be patient and don't ping staff members!
%statistic_time_played%
got it thanks! ❤️
I'm getting this error on all my javascript placeholders since I updated my papi:
[Server] WARN [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder Cooldown isn't initialized! Defaulting to global
How could I fix it?
@mossy helm,
Please respect the rules, be patient and don't ping staff members!
Not rly an error. Just a warning. You can disable this by declaring the engine in javascrip_placeholders.yml
Oh my bad lol. I use val instead of var
Here
Alright thank you! Gonna update here if I get it solved lol
Yes Ravensky
@rare lily please make it off by default and add a debug option in config.yml or something
This is like the 10th persons in the past week
It works fine now
but some of my javascript placeholders aren't showing any values when parsing them. This happened when I updated from 2.10.6 to the last version.
A placeholder example that isn't showing any values now is this one:
var placeholder2 = "%luckperms_check_permission_CustomEnderChest.level.5%";
var placeholder = "%luckperms_check_permission_mejoras.enderchest%";
function permission() {
if (placeholder == "&aSí" && placeholder2 == "&cNo")
return "&fDisponible";
if (placeholder == "&cNo" && placeholder2 == "&cNo")
return "&cEn mantenimiento...";
if (placeholder2 == "&aSí")
return "&2¡&aMejorado al máximo&2!";
}
permission();
Does anyone have any idea of why isn't this working?
@mossy helm,
Please respect the rules, be patient and don't ping staff members!
Nevermind, I could fix it
now you need to put "§" instead of "&"
why lol? xD
we can fix that. xD
hmm
so by the looks of it .split is not a function? hmm that's weird.
ohhh
had to convert it to a string first
https://paste.helpch.at/evawuzabic.js try this please @mossy helm
are you sure about that? & works for me
^
||wiki for all values: https://github.com/Tanguygab/PlaceholderAPI-PlayerList-Expansion/wiki||
k lol xD
Thank you for the expansion
well if you try to understand the placeholder with only what you see here, you can't really understand anything 😅
I had the papi wiki open :p
There's no way to somehow make it so people who can been seen by certain groups get returned, right?
(for vanish)
%playerlist_online,cansee,no,list% is apparently a thing but doesn't return anything
@junior musk help this guy out smh. xD
:pepehands:
PremiumVanish
I just want a list if players which can be viewed by a default user
yepp I did
But then it shows everyone except me (me, who is in vanish)
%playerlist_online,normal,yes,list%
I parsed it as another players who can't see me in vanish and it shows my username
:pepehands:
I'll see if I can change the cansee thing to support PV
Please @ me / dm if that becomes a thing
I have a temp solution for it, best of luck with them homeworks!
Do I have to put placeholderAPI on the bungee with the bungee placeholders
Is there a placeholder where I can find out how much money I have with vault and if so what is its name and which eCloud do I have to install and where can I set where the placeholders should update themselves?
@torpid plume ^
Thank you!
And you can still set where the placeholders should update themselves because, for example, in my sidebar it is not so nice if you have to rejoin so that it is updated
well the placeholder itself updates. The sidebar needs to update as well
because if you do /papi parse me %placeholder% then give yourself some money and do the same command you'll see its updated
no xD
Yes, I'm sure. Well only for conditions, but for returns you can still use & without any troubles
lmao
just ask away. oh you're writing a bible xD
I'm trying use %math_<math expression>% to divide %mcmmo_power_level% by 5 and return the lower multiple of 5 for example, If player's power is 109, it must return 20, and if 110, must return 21
I just can't think of a formula for that
@atomic trench do you mean floor division?
probably need a js expansion instead
I'm 100% sure a math expression is enough.
I'll check that, thanks!
%math_floor({mcmmo_power_level}/5)%
Not sure if that would work, never used it myself
wait
use {} for mcmmo placeholder
@atomic trench
O wait precision is a thing
i mean, either work

floor or precision
floor gang
xD
What would be the most lightweight one for a server?
I mean at that point does it rly matter?
It wouldn't make any difference most very likely

Yeah you're right, I don't think some placeholder will be harder to process than most villager farms that are on my server
1500 villagers loaded at the same time it's just not fun
I mean a math division is the latest thing you'll have to think about when you make a minecraft server.
Oh let's not talk about Jobs formula then 
Hey guys
using the API, I'm trying to set relational placeholders regarding faction
Let's imagine the situation
Two player, A & B
A is enemy for B, but B is neutral for A
then, when using PlaceholderAPI.setRelationalPlaceholders, who is Player one and Player two when sending the message to player one
public static String setRelationalPlaceholders(org.bukkit.entity.Player one,
org.bukkit.entity.Player two,
@Nullable String text)```
I need to figure out who is target and who is source between the two args
PAPI API API
🐔
🧑🦯
so what is the issue here?
i'm trying to send custom JSON message
with hover effect things
and i'm using the rel placeholder to show color (red for enemy etc)
when using the method
idk who is "one" and "two"
like
it's not
explicit
oh
I mean logically one is the source
but maybe just try both?
idk i've not actually used papi much lol
is there a specific reason why registration is turned off for ecloud
it's been like that forever I think. Might be wrong. Contact @funnycube#0001 he'll help you make an account
thonks interesting thanks
Hello, can you help me, how add statistic enchanted golden apple? (%statistic_use_item:<Item Material>%) because ENCHANTED_GOLDEN_APPLE dont work...
what's your server version?
Hey there
i have a problem with hex color codes not showing up from luckperms in the Anmated tablist plugin
is this a papi problem?
1.8.8
@marble sandal,
Please respect the rules, be patient and don't ping staff members!
%checkitem_remove_amt:1% placeholder is taking twice the amount if twice of the required item is available
so like, if i have one required item, it will work. if i have another copy of the required item, it will take the copy.
issue conducted from Command Panels
how do i have to use the ceil function with the math placeholder?
i tried %math_ceiling({vault_eco_balance}/10)*10]%
From what I see on github there is no ceiling method
It's part of EvalEX, which is supported according to the documentation
Yeah that was the problem
many of my placeholders are broken and i cant reload my papi. it just gives me this error
am i missing an update or something im completely lost
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Put the papi config in there
iv pretty much just put it in my server and done eclod things in game
Its not, unless it has a different name
so i have something i need to add to my config myself?
Last commit 2018 @warm topaz
🥲
I did update it this year lol
ah
ok well where do i get this update to fix my issue?
do you see where javascript, vault are?
Like the level?
Add this and reload papi again:
config:
configs:
example: example.yml```
im not sure exactly where you mean? im really dumb sorry
its in my placeholder config?
use this config https://paste.helpch.at/yegovuxoli.bash\
its just showing up as a white screen for me
remove the slash at the end
ok that did it. so you want me to replace all my config with this then run /papi reload in game right?
yes
great, np
ok so bascailly i need help on getting placeholderapi to show my 'playercount' on bungeecord servers
@turbid tide Unknown expansion.
use this expansion ^
ive done that
you need to have PlaceholderAPI on all servers (not proxy) and same for the Bungee expansion
yep
k
and it still doesn't work?
nope
wdum parse?
/papi parse me %placeholder% but of course change the %placeholder% part to the placeholder you want to use for example %bungee_total%
ok but what if its an MVdW placeholder?
im tring to get it on featherbaord
and that uses MVdW
xD nah no worries
Hey I'm having some weird issue that started out of nowhere on my bedwars1058 server. The vault placeholders aren't working with bw1058 in the language.yml
I'm running luckperms on a bungee network and everything looks properly connected
it's vault then?
whats the error msg in console?
should I go to vault for this issue then?
{vPrefix} works because it's a BW1058 placeholder
yeah it does
you should go to BW1058 if anything
well
it's supported in its files
hmmm
justiceblade whats the error msg in console?
Ive been through bw1058 and Luckperms support
do you have vault?
and do you have LuckPerms on the spigot server?
all associated extensions for PAPI as well
I have luckperms on all spigot servers connected properly to mysql
if you do /papi parse me %vaut_prefix% does it work?
what does it say
it says the appropriate prefix
assigned on luckperms
it's super strange
I just restarted as usual yesterday and when I re-entered it stopped working
but the chat format is still being used by bw1058, it just doesnt show '{vPrefix}'
is ur expansion registered in /papi list?
theres no way
you are the creator of discordsrv
lmfao
your status gives a direct link to that spigot page
but your spigot name isn't blue tree
ur right
what error does /papi reload give?
so you have your class that implements PlaceholderExpansion right? in that class
wait np
no*
my bad
in your main class
extends 🌝
yes
in onEnable
it extends it
whatever xD
I have to implement it in the main class?
no
then?
there's an example on the wiki ```java
package at.helpch.placeholderapi.example
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class SomePlugin extends JavaPlugin{
@Override
public void onEnable(){
// Small check to make sure that PlaceholderAPI is installed
if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null){
new SomeExpansion(this).register();
}
}
}```
new SomeExpansion(this).register();
SomeExpansion is the expansion class?
doesn't work
import com.bluetree.discordsrvutils.DiscordSRVUtils;
import com.bluetree.discordsrvutils.commands.DiscordSRVUtilsCommand;
import me.clip.placeholderapi.PlaceholderAPI;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Expansion extends PlaceholderExpansion {
private DiscordSRVUtils plugin;
@Override
public String getIdentifier() {
return "DiscordSRVUtils";
}
@Override
public String getRequiredPlugin() {
return "DiscordSRVUtils";
}
@Override
public boolean persist() {
return true;
}
@Override
public String getAuthor() {
return "Blue Tree";
}
@Override
public String getVersion() {
return plugin.getDescription().getVersion();
}
@Override
public String onPlaceholderRequest(Player p, String identifier) {
if (identifier.equalsIgnoreCase("tickets_opened")) {
try (Connection conn = plugin.getDatabaseFile()) {
PreparedStatement p1 = conn.prepareStatement("SELECT * FROM discordsrvutils_tickets");
p1.execute();
ResultSet r1 = p1.executeQuery();
int count = 0;
while (r1.next()) {
count = count+1;
}
String counts = count + "";
return counts;
} catch (SQLException ex) {
ex.printStackTrace();
}
}
return "Unknown Placeholder";
}
}
what is wrong?
please move to #development since this is more of a development question and use paste.helpch.at or hastebin to paste code or errors.
more experienced people might be able to help you there
On command panels plugin. Can someone who works at checkitem placeholder check for a fix?
Hey, Is there a setting that needs to be toggled on for the pinger placeholder to work? All my servers except for the hub ones work with the placeholder, and since the hub servers pretty much run on the same server files, I think a setting might be enabled/disabled which is preventing them from working with the placeholder. Anyone what this setting could potentially be?
nah. pretty sure the only thing you can change is the interval at each it pings
Hmm, I've set it to 3
Do you have the pinger expansion on all your servers?
maybe you need to have it
on all servers
I do, the other servers work fine, it's just the hub servers
1.0.1?
idk xD
Most likely do, I've run the download command a couple hundreds of time by now lmao
xD
and you're 100% sure its set to 3 in all configs.yml ?
also I hope you're not pinging the :25565 port right?
because that's for the bungee
Btw with this I mean the Hub server is able to ping the other servers, just not the other hub server
I'm not
Yeah, they're able to ping all servers, just not each other
The pinger expansion is known to have a lot of problems lmao. I just don't know why this
Yeah lmao, not sure why it's able to ping a server but refusing to ping another :(
are you trying to see if the server is online with the pinger expansion?
Yeah
I've also tried placing it's server.properties, bukkit, spigot & paper files onto another server and pinging that server and it's able to ping it.. so maybe it's a plugin or something?
hmm
you can't afford to go thru all plugins one by one and remove them can you?
or remove all of them
restart
see if it works
and if it doesn't then its a plugin 100%
Was going to try uploading the entire server onto another server, but thought I'd ask in here just in case someone knew why it might be acting up
Yeah, I'll try something like that
Thanks for the help :)
Yep.. It's a plugin
Now to figure out which plugin exactly... :D
%checkitem_remove_amt:1% placeholder is taking twice the amount if twice of the required item is available
so like, if i have one required item, it will work. if i have another copy of the required item, it will take the copy.
issue conducted from Command Panels
no one replied to my question so i copypasted it here
Wait so you specified amount 1 and it always takes 2 if you have 2 or more of those items?
yep
when you make an icon from command panels run a console command
i talked to an admin from command panels discord that it's a placeholder issue
before i went here
and it only happens in the CommandPanels plugin? Have you tested it outside of the plugin?
you tried it somewhere else and it works fine?
ye
ye its weird
maybe the plugin parses the placeholder 2 times
somehow
I recommend you use the essentials /clear command
or whatever it was
i was using that placeholder to clear specific items
because the /clear command is only limited to amounts and enchants
im trying to clear specific items with specific lore too
"command panels is open source"
that is what one of the discord server admins said
How would I go about utilizing placeholder %world_players_<world>% with worlds utilizing underscores, for example world_nether?
yeah what they mean by that is you could take a look at the code and if you know where the problem is, edit it yourself
on death of player:
if player is in world "vs":
add 1 to {VsOldurme.%attacker%}
Skript leaderheads
how can i show
I have a huge ram problem, when I join the server ram usage is somewhere about 1gb, then I stay in the server (doing nothing) and the ram usage don't stop going up until the server crashes coz the max ram usage is reached, disabling placeholderapi using disableme stop the ram issue, how can I fix this?
Hey would anyone know how to display your health on the scoreboard in a nice way
What he asking specifically is how to show this using PlaceholderAPI, the question has nothing to do with Leaderheads
Tbh the examples here are quite clear
Is there a problem with Vault (and Placeholder-api) at the moment? My variables from other plugins, (Jobs reborn), are working, but my Vault variables just display as %vault_rank%, %vault_eco_balance%, etc? (Sorry I'm a bit of a noob at this).
Make sure you installed the vault expansion
/papi ecloud download Vault
/papi reload
If it still doesn't work then try deleting all the expansions in /plugins/PlaceholderAPI/expansions then running the two commands
how do i use papi in a json tellraw thing
You can't
ok
downgrade PAPI to 2.10.6
Is there any way i can make a placeholder go from %placeholder% to %ph% ? in any form, like script or YML, any way ?
not with PAPI. Maybe with another plugin but none that I've ever heard about
Is there a placeholder with which I can display the entire online time of the network?
Hmm i wonder if there is a way of making a palceholders placeholder so like %this% replace with %thisisafullplacehodler%
as I said its not possible. Not with PAPI
Not possible with only PAPI. Papi doesn't have Bungee support
bump
Run /timings on
And let it run for some time
Then see what is causing it
Or show us if you dont know
Also probably its not papi
But an expansion (?)
For some reason I am on 1.16.4 Using place holders
I run /papi ecloud download player
But it is not working and It also says no hooks
you did /papi reload after?
Yes it says loaded
It might be a different plugin fucking with it
Plugins: AnimatedSidebar, Essentials, EssentialsChat, Essentials spawn, Factions, Luckperms, placeholder api, vault, via backwards, via rewind, viaversion
Can u quickly hop onto my server and see for urself ?
138.201.23.118:26549 <- ip
Any version
https://api.extendedclip.com/expansions/ultimatevotes/
Anyone has to repository for this expansion? I want to add some stuff to it.
check clips repo list or PlaceholderAPIs
is it just me or does the vault placeholder not function? I'm doing /papi ecloud download Vault followed by /papi reload, but nowhere does it actually apply
for example, if I then do /papi parse me %vault_eco_balance% it's not replaced by the money value I have, nothing happens to it
What happens when you do /papi reload?
nope
i did try to do this with other placeholders like Player or Essentials, which works just fine
just vault seems to be having a stroke
Are you sure you have the vault plugin installed?
yes
I made a separate placeholder unrelated to papi using vault and that functions
im not the only one having this issue btw, i made a sidebar plugin and one of its users was having the issue too
Did you try what I said?
not yet but ill try that
k
another thing is that when i do /papi list it doesnt show up
then its either not installed correctly or its not installed at all
i just tried it and nothing happens, its basically like its not there at all
it is present in my expansions folder though
also make sure your /papi list installed matches what's in the expansions folder
(except for Vault)
that it does
yes
how many expansions loaded?
"PlaceholderAPI configuration reloaded!"
"3 placeholder hooks successfully registered!"
yo just restart your server while the expansion is in the expansions folder
and send the full startup log
which should be 4 with vault
?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.
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
oof
xD
i feel like im starting to get alzheimers even though im only 22
damn this is great
._ .
im sorry
Im the person with the problem, I have vault and all plugins needed and it wont work
?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.
fully restart your server and send this ^
No
Oh
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
ye no need to ping. I've looked at it and seems like everything is working fine
the vault plugin is loaded same for the expansion
which placeholder have you tried and isn't working?
all of them? all Vault placeholders?
No place holders work at all
wait like if you do /papi parse me %player_name% that one doesn't work?
Nothing happens in the chat when I do that
what's your server? like spigot, paperspigot etc.
Paper
can you try a dev build? https://ci.extendedclip.com/job/PlaceholderAPI/
When I do /papi parse me %player_name% It just writes %player_name% in the chat
In console it says this [22:58:15 WARN]: [PlaceholderAPI] Loaded class me.clip.placeholderapi.PlaceholderAPI from AnimatedSidebar v1.0.5 which is not a depend, softdepend or loadbefore of this plugin.
download the development build of PAPI and use that instead of PAPI 2.10.9
yes
alr
alr server turning on with it now
Did it all
Did /placeholderapi ecloud download player
Then /papi reload
And /papi parse me %player_name%
Still said %player_name%
Installed expansion page 1:
- Vault
- Essentials
- Player
Thanks @silver minnow I did /papi ecloud download Vault and it worked! I thought it was enough to put it in my /plugins folder.
👍
dkimi do yk whats wrong with mine?
@silver minnow Im trying to use it and it just wont install, I keep doing /papi ecloud download Vault and when i do /papi reload then /papi list it doesnt work
....
Please don't ping me if we didn't already have a conversation (and pinging to reply)
also on
Installed expansion page 1:
- Vault
- Essentials
- Player
@austere hawk
It says that it's installed
Explain what means it doesnt work
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
I did that ^
@austere hawk You need the player expansion
I got it
Yeah...
hi
I am having big troubles
first
do I have to shade the expansion in the plugin?
why doesn't the register call work?
First of all
You need to tell us about what this expansion is
and we also have no idea what the register call is
are you using maven or gradle?
For my plugin...
like
DiscordSRV?
you want to shade that into your plugin?
I won't spoonfeed but I can give you an example on how to shade
I know how to shade
expansion for the addon
the addon has features
I made the expansion
Yeah
but it doesn't register
no
[15:05:34 INFO]: [PlaceholderAPI] Successfully registered expansion: tab
this is for another plugin
I don't even have the expansion
but
this doesn't happen for my plugin
uhh
do people need the expansion to use the placeholders?
Why are my extensions not updated?
Neither with the command, nor downloading them.
for exp. Bungee
Hey there, is placeholderapi already compatible with 1.16.4?
Yes
Yes
Thanks
hey, i found a bug. I use cmi dynamic signs and when I set a javascript placeholder that depends on the argument on two signs with different arguments they sometimes show the same text although they should actually display different things. I think thats because there is no queue system, would it be possible to add a queue system to placeholders? so that there are running different scripts on there own
Hello, i just want to ask... is skript expansion working?
there's an updated one somewhere. The one from the ecloud doesn't work with PAPI 2.10.7+
@rare lily ^ when you got time read this
could you tell me please where can i find it? if its on that discord or spigot or github or i dont know where?
@uneven rapids,
Please respect the rules, be patient and don't ping staff members!
believe me I have no idea either. xD
I'll try and search it
maybe I can find it but not sure
thank you so much
Is there a way of using 1.16 rgb colors in Javascripts?
&x&r&r&g&g&b&b probably
Tried that as well
Like &x&f&f&f&f&f&f for white
Then how would one utilize it for such lines?
Hex is parsed as $x$r$r$g$g$b$b by the game @turbid tide
So all plugins that translate colors support hex
Right
Idk if you can use js to return that sort of thing. Unless your plugin supports other hex formats like &#xxxxxx
Ugh yeah figured it out, my scoreboard plugin just doesn't support hex colors for scoreboards in my version
Hey, with a placeholder that I use %ghostscavengerhunt_player_found% it shows up as a hook for ghostscavengerhunt but when I try to check the ecloud it says it doesn't exist. I'm trying to use it in LeaderHeads. The placeholders work fine when I /papi parse it and it's numeric but still.
If its not on the ecloud means its an internal expansion. that means it comes inside the plugin
If the placeholder works you should be able to use it in LH.
if its numeric
No need for it to be on the ecloud
I'm trying to use %leaderheads_name_ghostscavengerhunt_player_found_alltime_1% and I've also tried %leaderheads_name_ghostscavengerhunt_player_found_1% since the time isn't required, both come out blank in the hologram
@cosmic rapids,
Please respect the rules, be patient and don't ping staff members!
It was a reply, but alright
have you tried /leaderheads validate <placeholder> ?
to see if the placeholder is going to work with LH?
it says it correctly got the numeric value of 55
and then you've enabled the leaderboard using /leaderheads enable <placeholder> ?
yep
and if you go in the statistics folder and open the folder for the placeholder you want is there any data saved?
yep, shows all of it
I haven't, but I will do that thanks
@cosmic rapids what is the placeholder statistic you're looking for? player_found?
It's ghostscavengerhunt_player_found
%ghostscavengerhunt_player_found%
o ye ye
Hmm
well 1st thing I know is that time is required
ye he tried with and without and same thing
but i also don't know why it's not working
I'm gonna try to remove the hologram and just remake it to see if something different happens
did you set up tracking for that placeholder?
yep
/leaderheads enable <placeholder> right?
yep yep
you're just asking him the same questions lmao
also Robin said when its trouble with LH to send them to him
but seems like someone unpinned the message
ye he said the stats are there
Okay, for some reason it now shows only the #2 spot, not #1 or any others. But at least it's showing something
Nope, but somehow it fixed itself... It now shows...
lmao
did you just enable it? because there's a time you can chose for how often the data is updated
I had it enabled a good 10-15 mins ago
