#placeholder-api
1 messages Β· Page 87 of 1
I really need help
I can download expansions but cant reload so they dont get loaded in
whats the error
console error
?luckperms
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
do what the bot says
This is not my server and im just helping this guy out and dont get it why it isnt working
it works fine on my test server
Not just luckperms tho
Its anything
player
aswell
because luckperms is breaking it prob
So i'm trying out
var faction = "%factionsuuid_faction_name%";
function getFacName() {
if (faction === "") {
return "wilderness";
} else {
return faction;
}
}
getFacName();```
and it's still showing [no-faction]
But if i'm in a faction it shows the faction name correctly
In game what does /papi parse me %factionsuuid_faction_name% show when you're not in a faction?
@oblique sentinel
[no-faction]
Alright so you're currently checking if faction === "" where you should be checking if it is equal to [no-faction]
Oooh okay, i didn't even think of that, i'll post back with the results
Yeah cause that script is just checking if nothing is returned
but something is, so it's showing it
Do color codes take in account?
Yeah you can use color codes
Like in the if (faction === "") the [no-faction] didn't work, i was wondering if it mattered if it was colored ingame
FactionsUUID
What files does that have in its folder?
xD
It has Config folder, Data Folder, Lang.yml Tags.json
In config it has default_permissions.conf default_permissions.conf dynmap.conf and main.conf
Check the lang.yml and search for no-faction
xD
@short flicker Where is it being used, and could you show the crash report
Hello,
Do you know if it's possible to parse offline player with the %parseother_{top player placeholder}_{data placeholder}% ?
Mhh I have the 1.4.0 but I can't parse offline player
Not all placeholders support offline players.
Probably the data placeholder doesn't support that.
If anyone could help with my javascript papi placeholder that would be great.
javascript.yml
fCloseBracket:
file: fCloseBracket.js
engine: nashorn
fOpenBracket:
file: fOpenBracket.js
engine: nashorn
fOpenBracket.js
var name = "%factionsuuid_faction_name%";
function fOpenBracket() {
if (name != null) return "[";
return "";
}
fOpenBracket();```
I tried to test it with the following command, papi parse smadger %javascript_fCloseBracket%
It just writes the %javascript_fCloseBracket% part out
Console is most likely outputting an error
let me try again, just restarting the server
No error.
Just outputs it right back
As if nothing is different
Using papi parse smadger %javascript_fOpenBracket% now so it is the same command you're seeing above
It's like it's not even trying
@brisk coral Any idea what's wrong
@plucky wadi
Please respect the rules, be patient and don't ping staff members!
Hello where i can get the api docs ?
of?
Whenever reloading placeholderAPI I get the following error which I think related to luckperms. Anyone know why this could occur?
https://hastebin.com/ozepagijaf.bash
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
@vivid sparrow for the chat part i wan't create a tags plugin
@plucky wadi double check that you have the JavaScript expansion by checking if its listed on this command output /papi list.
If it is, then reload PlaceholderAPI plugin and send everything you get on the console.
Anyone able to help with this?
26.01 19:27:41 [Server] Server thread/ERROR [PlaceholderAPI] Failed to init placeholder expansion from class: com.vk2gpz.papi.randomteleport.RandomTeleportExpansion
26.01 19:27:41 [Server] Server thread/ERROR [PlaceholderAPI] com/vk2gpz/randomteleport/RandomTeleport
Does anyone know why the place holder isnt working?
Which one?
heeyyy any reason my expansions aren't loading?
Which expansions?
@full kettle any errors
does anyone know what's going on? https://pastebin.com/9M1P3bs9
@twin lintel
This error occurs when there is a mismatch in versions between the expansion and luckperms itself,
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion
Once installed restart your server.
I don't use this expansion luckperms that the bot indicated "!
Caused by: java.lang.NoClassDefFoundError: me/lucko/luckperms/api/LuckPermsApi Seems you have the expansion installed
Just remove it if you dont use it
/plugins/PlaceholderAPI/expansions/
It's in there
Cubed
Apparently one of my menus is requesting players heads to fetch for a menu similar to baltop menu but It says Iβm sending too many requests to Mojang servers
Likely due to the method and not using a plugin for it
hdb is the best option against that
@sharp jay no errors, just isn't loading upon /papi reload
@full kettle
Please respect the rules, be patient and don't ping staff members!
both PlayTime & DeluxeTags are in my expansions folder, they're just not loading in when i reload
You got the plugins? And as in not loading, do you mean not displaying in a certain place or? And do they show up on /papi list
Restart the server
i've tried that lol
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
Can you throw your server startup log into a paste and provide the link?
We can see if they are actually registering or not.
patched her up, just re-installed the plugins & expansions manually
not sure what was going on
anybody know of a placeholder that displays ALL of your vault ranks?
All as in?
if a player has multiple ranks
...it'll output all of their ranks
ie moderator/vip
%vault_ranks% outputs Moderator, VIP
Javascript perhaps
Open an issue requesting that on Vault expansion repository (https://github.com/PlaceholderAPI/Vault-Expansion/).
Q: i'm having a weird issue, and i'm only guessing that PlaceholderAPI might be involved:
When command lists are being generates (Tab-auto-complete) it's pulling in the formatting codes as well https://gyazo.com/4def00e4efe7466d6b7b472e8a05cba8
while AdminAnything claims to be using the default SpigotAPI, something funnky is going on. (Prefixes set with LuckPerms, through ServerControlRelloaded's chatformat via PlaceholderAPI)
[this only disconnects the client with illegal characters in chat]
Disable papi and try again
I doubt papi has anything to do with that
As it doesnt manage chat or anything on it own
Is there a way to get %deluxechat_pm_recipient%'s vault prefix somehow?
javascript I'd assume
Parseother?
How could I do that?
For bungee, there is no way of getting that without another plugin.
If bungee is disabled, you do %recipient_<any PAPI placeholder without <> and %%>%
ty!
i may be confused about placeholderapi .. is their any way to get it to work with /broadcast or /m ?
also things such as signs ?
How does the percision function work on math?
Tap, if the plugin supports PlaceholderAPI, yes. Otherwise, no.
is there an expansion that allows if/else statements for other placeholders
for example:
%formatted_guild_tag%
if %player_guild% is '':
set %formatted_guild_tag% to No Guild
else
set %formatted_guild_tag% to [%player_guild%]
@wet ferry javascript
function hasGuild() {
var guild = "%player_guild%;
return guild == "" ? "No Guild" : "[" + guild + "]";
}
hasGuild;
How come I keep getting an internal error message when I try to reload papi after downloading the Ecloud expansions?
?luckperms
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
Guys
Hey i have no idea about the right channel, i have prblem with one placeholder. Ich diwnloaded the mvdw extension from ecloud and insert in infinity scoreboard %mvdw_money% an it shows nothing. Can someone help me pls?
What does /papi parse me %mvdw_money% return?
And btw, PAPI has its own money placeholders
https://helpch.at/placeholders#vault
Ok i try it later at time not at home. Im looking for dezimal placeholder for money
requirements:
name:
type: javascript
expression: '"%player_item_in_hand%" == "DIAMOND_PICKAXE"'```
Can i make it so their can be more than one
so u can hold swords
would i just put another name:
example
requirements:
Pickaxe:
type: javascript
expression: '"%player_item_in_hand%" == "DIAMOND_PICKAXE"'
Sword:
type: javascript
expression: '"%player_item_in_hand%" == "DIAMOND_SWORD"'
deny_commands:
- '[message] &5Enchants&7 Β»&d Please hold a Pickaxe or sword while trying to enchant.'```
What does
/papi parse me %mvdw_money%return?
@bronze bison it returns %mvdw_money%
@fading basin
Please respect the rules, be patient and don't ping staff members!
@mental night just make another part of the javascript
"%player_item_in_hand%" == "DIAMOND_PICKAXE" || "%player_item_in_hand%" == "DIAMOND_SWORD"
but I think you want ===
both work I think actually π€·ββοΈ not too sure
Alright ty cj β€οΈ
im using spigotboard right now with acidisland but the placeholders are not working in the scoreboard
π¦
idk why
Does spigotboard support placeholderapi
yes
what placeholder are you trying to use
nope ):
Do /papi parse me %acidisland_level% too
and then
What does it return
%acidisland_level%
What version of placeholderapi you got
1.8.8
1.12.2
1.13.2
1.14.4
1.15
v2.10.4 - Latest
v2.10.4 - Latest
v2.10.4 - Latest
v2.10.4 - Latest
v2.10.4 - Latest
Lemme look
What?
it's whatever placeholder plugin it supports...
PlaceholderAPI uses %% and MVDWPlaceholderAPI uses {}
Iβm dumb donβt judge
{} but ive tried both
make sure to also get your placeholder expansion
it supports papi placeholders it says
Did you run those commands to get the expansion? @noble root
Yepp
Server? or the placeholder plugin
Server version, acidisland version, and papi version
BentoBox right?
Yap
Yeh
so,
- they have a v1.11.0 now
- There might be different placeholders for bentobox
might be built in to their plugin
anyone help come room
?help
Β» Give the helpers some details
Β» Ask suitable questions
Β» Be polite
Β» Wait
'2. There might be different placeholders for bentobox' Yeppp, THANKS
i want just help
@mint fable and @mental night
?
thxx
Np
@mint fable come room and put mut
did you get it fixed?
nice
im dumb srry xD
Same here
Chicken dance
so that's good
@young iron what ya need help with
@young iron if you want support for TokenEnchant I recommend joining his discord so we can verify you have TokenEnchant purchased
@fading basin hmm, you sure mvdw expansion is loaded?
/papi list is it there?
Or just use PAPI's economy placeholders?? https://helpch.at/placeholders#economy
are there dev builds available? i've seen a few issues pop up noted by some plugin authors since 1.15.2
Yes there are, see the pinned messages.
Report issues on the github so we can take a look
Thanks! π
any news on PAPI v3 ?
Still in the works π
πβ’οΈ
Gl with it, I hope it be out soon !
just one clarification, the bungeecord support that is planned, what will it do exactly ?
- support bungee plugins to hook into it and create their own placeholders ?
- support bungee plugins to show placeholders from the current servers !
- support for plugins from the current server to show placeholders from other servers/proxies ?
or all ? (idk if you understand me x))
@carmine veldt can we have the last one? :0
Maybe as an expansion if you dont want another type of placeholders
Hello, I have got plceholderapi install and pinger downloaded and i am trying to check to see if my skyblock server is online with %pinger_online_serverIP:PORT% but it just comes back Offline but the server IS online?
even if I try to ping any server EG hypixel it just comes back offline...
Set the update interval to 1 inside papi config, after that it should return correctly on the second parse
Still doesn't work just comes back offline
Checking it using papi parse or?
yeah papi parse and then displaying it on my title manager sidebar
Have you change the update interval (it sometimes does funky stuff and doesn't actually change it)
Try also changing the placeholder update rate
how?
@nova flame its in the config for PlaceholdeAPI ```expansions:
pinger:
offline: '&cOffline'
check_interval: 1
online: '&aOnline'
Yeah mine looks like that
in your menu you may need this ```open_commands:
- '[refresh]<delay=20>'
I mean that wouldnt change anything as it doesnt even work with papi parse?
He ain't using dm for it Ironic
%pinger_online_127.0.0.1:25256%
shows offline still
yes cause my ip and the port I'm using may not match your settings
1.8.8
might need older version of Pinger
there arent any old versions?
yes I just noticed there is only one version, I know there was an update
@nova flame I assume you have rebooted the server after the changes to the config
yep
don't change these and see if they work%pinger_online_testplugins.com:25565% %pinger_isonline_testplugins.com:25565%
well the online one doesnt work but isonline does
guess you will need to use the isonline one
Just tried using it for my server doesnt work
Well ok, my domain name works eg play.hyrealm.network but my number ip for skyblock doesnt work
not working meaning you get offline return
yh
Meaning it ain't the expansions issue
sometimes you have to check it twice
Hmm okay ty
thats why you change the timing in papi and refresh the placeholder to make sure it's correct
I really dont know what going on with this
@bronze bison it returns %mvdw_money%
@fading basin
@fading basin
Please respect the rules, be patient and don't ping staff members!
Anyone have an idea how can i have an dezimal number in money placerholder?
Use the vault eco balance placeholder
I'm having issues with the McMMO placeholder on 1.15.2. The weird thing is that it works on my local server but not on my live dev server. Both servers show the error when I do /papi reload though. Same plugins and versions. Any help would be appreciated.
There's an error too but it doesn't seem to be related to McMMO, and the vote party placeholders work fine. This error shows when I do /papi reload.
https://imgur.com/a/GFi3FCi
It seems that it's just not installing properly. On my local server it shows up on the installed list, but not my live dev server.
https://imgur.com/a/8X8YnWZ
The vault eco balance is not showinh the dezimal numbers
@fading basin hmm, you sure mvdw expansion is loaded?
/papi listis it there?
Or just use PAPI's economy placeholders?? https://helpch.at/placeholders#economy
@bronze bison
I want to use %seasons_weather_world% as shown on https://github.com/Harieo/Seasons/wiki/How-to-use-Placeholders
The problem is that my worlds are named bskyblock_world, bskyblock_world_nether and bskyblock_world_the_end.
When I change %seasons_weather_world% to %seasons_weather_bskyblock_world%, it returns that the world 'bskyblock' does not exist.
How can I make sure PlaceholderAPI knows the entire world name is bskyblock_world?
Appreciate any help.
Contact the plugin's author, they should fix that.
So there is no way I can fix this?
As in, adding some kind of '', "" or something else around it?
You can by forking it and fix that yourself as its open source.
I don't have the knowledge to do that.
Seems like it can't be fixed without changing things in the source code.
Ok then contact the author
I rather change the world names in all the plugins and such, than trying to fix it in Seasons.
Ok
Changing the world name would be an option too, yeah.
Hello, can I have some help with the papi api? My plugin implements the api but when I try to use the placeholder it does not work..
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
sourceb.in/3342693afb (can't send links)
Use that paste
Also show the main class
Also if you're using IJ that would immediatly show you an error (the String method requires a return method), all your returns are in statements
there are no errors
but it doesn't work when I try the palceholder
Im using %minetwist_level%
Any reason you're delaying the registration of the class?
Even with ```
softdepend: [PlaceHolderAPI]
so it doesnt initialise the placeholder otherwise
should that fix it?
I am using spigot 1.12
forcing depend is bad
I just
papiEnabled = true;
new PlaceholderAPIHook(this).register();
}```
How so, the plugin uses the plugin for some of it's classes, meaning it depends on it
I do that too @mint fable but my plugin loads before PAPI so it doesn't work

good poinrt
@brisk coral not necessarily
My plugin has placeholders, but it doesn't need placeholderapi to run
hence why it would be bad to force depend
We'll yea, but if you're activelly using papi methods in most ur classes it's better to depend on it
It would be best to use a if(has papi) use papi, then else return the stirng
like deluxemenus
I mean you could simply make a util for it
aha
you can add loadbefore to placeholderapi
π€·ββοΈ
loadbefore: [YourPlugin]
effort
yup
but figuring out a way to do it otherwise without forcefully depending on it? no effort
insert drake meme
wow spigot is poop
org.bukkit.plugin.UnknownDependencyException: PlaceHolderAPI
``` And i have `depend: PAPI`
wot
why..?
Lmao
goodnight π€
cya
im so confused
I even added loadbefore: in papi and my plugin is still loaded before it?!?
It works it works!! yay
thanks for the help π
Hello, do you know the placeholder I want in DeluxeChat the date and time of sending the message?
Example - Message sended 01/02/2020 16:08
Head over to #spigot-linking
?ecloudblock
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
@austere hawk ^
Heey, after updating to 1.15.2 im getting this warn in console for my plugin and others: "[PlaceholderAPI] Loaded class ... which is not a depend, softdepend or loadbefore of this plugin."
My plugin actually has PlaceholderAPI as a softdepend in plugin.yml , do you guys know why im getting this warn?
Ignore the warning
It's something that's been changed in spigot 1.15.2, you can safelly ignore it
Ohhh okay, yeah im also getting it with ProtocolLib
Do you know if it can only be removed on PAPI's side or just something we will have to live with? (so I can tell people if they ask me)
Not sure, it's spigot sided so unlikely I think
Someone here I can tlak to? This is super weird
I have installed PAPI and FactionsUUID and SavageFactions
and am using the right placeholders
But I cant get any palceholders working in any tag editing plugin
Any ideas?
@mossy ledge SavageFactions is a fork of FactionsUUID use one not both or it will be buggy
But Savage wont load without fuuid
I recommend joining there discord and asking for help if it doesnt load it means its just using factionsuuid and not savagefactions
Savage is abandoned
No discord, no support, no website
even with savage removed the placeholders wont load
Its a premium plugin now pretty sure
Factionsuuid?
savage
both are premium
Hi, why any placeholder do not work and any /papi ecloud download command shows "No cloud expansions avaible at the moment"?
I was testing it with TAB plugin
java.lang.NullPointerException: null
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.lambda$fetch$4(ExpansionCloudManager.java:172) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.1.jar:git-Paper-34]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.15.1.jar:git-Paper-34]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.15.1.jar:git-Paper-34]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_161]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]``` :c
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
@tame lantern ^
Hey, Can someone tell me how to properly do this as a javascript palceholder?
I want the following:
expression: '%player_has_current_quest_Miner% == false'
type: boolean
true_result: '%quests_player_current_objectives_Miner%'
false_result: 'No active quest!'```
Been trying for a while but couldn't understand a thing
var quest = "%player_has_current_quest_Miner%";
var objective = "%quests_player_current_objectives_Miner%";
function hasMinerQuest() {
return placeholder == false ? "No active quest!" : objectives;
}
hasMinerQuest();
Try this
Alright trying it now
Are you familiar with how to setup a js expansion?
I will follow the example jr
Placeholder still returns empty results, What i am basically trying to do is, If %quests_player_current_objectives_Miner% returns nothing, It displays "No active quest!"
var objectives = "%quests_player_current_objectives_Miner%";
var objective = "%quests_player_current_objectives_Miner%";
function hasMinerQuest() {
return objective == false ? "No active quest!" : objectives;
}
hasMinerQuest();```
This made it work
Thanks Frosty
Atleast remove one var then, since they're both the same
Oh alright xd
var objectives = "&atest";
var objective2 = "%quests_player_current_objectives_Fishing%";
var objective = "%quests_player_current_objectives_Basics%";
function hasMinerQuest() {
return objective == false || objective2 == false ? "No active quest!" : objectives;
}
hasMinerQuest();```
i have tried doing objective,objective2 and with [] and even tried putting both of them in the same var
but it will always only check one of them and ignores the other
So it'll only check for objective2 and never objective
Don't think this return style supports or
Also, I'd recommend either having a seperate placeholder for every different quest, or let me know and I'll show you how to make one for everything together
The thing with having multiple ones, It will display No active quest! multiple times
Which is not what i am looking for
So basically i want if a player has atleast one quest active, that "No active quest!" won't be there
no possible way to do if %1% or %2% == false ? "no active quests!"
?
var fishing = "%quests_player_current_objectives_Fishing%";
var basics = "%quests_player_current_objectives_Basics%";
var objectives = "&aTest";
function hasActiveQuest() {
if (fishing == false || basics == false) {
return "No active quest!"
}
return objectives;
}
hasActiveQuest();
It still only takes fishing into consideration
You are right, There is no support to | |
It shouldn't tho, switch them up and see if it uses only the basics
Alright
var fishing = "%quests_player_current_objectives_Fishing%";
var basics = "%quests_player_current_objectives_Basics%";
var objectives = "&aTest";
var noQuest = "No active quest!";
function hasActiveQuest() {
if (fishing == "") {
return noQuest;
}
if (basics == "") {
return noQuest;
}
return objectives;
}
hasActiveQuest();
Now it's always displaying No active quest! doesn't matter what, Sorry for confusing you with my issue
Parse the seperate placeholders using papi parse and see what they return
shouldn't it be else if for the second ?
I just did, When quest is not active, it returns an empty line, When quest is active, it returns the quest objective
so placeholders work fine
now i need BOTH quests active for it to return Test
hmmm, i'll try the old method
with ||
without false
set it to ""
yea
I missunderstood so it might work
using js var fishing = "%quests_player_current_objectives_Fishing%"; var basics = "%quests_player_current_objectives_Basics%"; var objectives = "&aTest"; function hasActiveQuest() { if (fishing == "" || basics == "") { return "No active quest!" } return objectives; } hasActiveQuest();
it still needs both quests active to display Test
so || is basically being ignored
@vivid sparrow Can you confirm that || indeed doesn't work with js, or am I fucking something up
I'll try
actually, that works
That should work yea
I'm talking about OR
Or didn't work, i needed both fo them active to display "&aTest"
or should work yea, since it's either or
I mean didn't you say that's what you wanted
use && then
Yea got that, I really appreciate the help! Thanks alot β€οΈ
Just add more if you need them from now on
Yep, I figured that out thanks :)
Any way of getting kd using %statistic_deaths% and %statistic_player_kills% using javascript?
You can use math for that
Oh, will try it out
Ok so it works fine, just unsure about using it with featherboard
is this right? {placeholderapi_math_statistic_player_kills/statistic_deaths}
featherboard usually supports %% placeholders so try the normal one, otherwise try this one ye
Might just be because I am using an older version, but it returns this https://gyazo.com/4624de45d03335e9438d86c5c1233198
Check console
Only error is https://paste.helpch.at/zahofuciyu.shell but don't think that has anything to do with it
odd, and have you made sure the placeholder returns correct values?
cause using placeholderapi /papi parse me %math_{statistic_player_kills}/{statistic_deaths}% it returns everything fine
make a js placeholder then, cause I don't think it'll work if you add the 2 more {}
Alrighty
I am using Papi to display the time on my server, but it is stuck at a terrible time zone, I want to change it how do i do that?
&7%server_time_E%, %server_time_MMM% %server_time_d% %server_time_yyyy% %server_time_h%:%server_time_mm%
This is what i am using
I want to change it to America/Chicago time zone
It uses the servers timezone
My server is hosted in Chicago, ironically its not using that time zone
Its 9:54 and it says its 7:54
I used this to help with the format but it is very unclear with timezones
Using something like this, how would I round the KD to only 1 decimal? e.g 1.2
return Math.round(parseInt('%math_{statistic_player_kills}/{statistic_deaths}%') * 100) / 100;
no need for the Math.round
%math_{statistic_player_kills}/{statistic_deaths}[precision=1]%
So is it impossible to change the timezone?
@meager ember Check the config of papi to see if maybe has an option
Hi, I have simple problem with PAPI as dev. I have registered simple placeholder in mvdw's papi, here is the code:
if (Bukkit.getPluginManager().isPluginEnabled("MVdWPlaceholderAPI")){
boolean oldVersion = false;
try {
Class.forName("be.maximvdw.placeholderapi.PlaceholderReplacer");
} catch( ClassNotFoundException e ) {
oldVersion = true;
}
if (oldVersion == false){
PlaceholderAPI.registerPlaceholder(this, "mox_title", new PlaceholderReplacer() {
@Override
public String onPlaceholderReplace(PlaceholderReplaceEvent placeholderReplaceEvent) {
Player player = placeholderReplaceEvent.getPlayer();
PlayerData playerData = MoxChatTitles.getInstance().getDataManager().getPlayerData(MoxChatTitles.getInstance().getDataManager().getPlayerID(player));
if (playerData != null){
if (playerData.getLastTitle() != null){
return playerData.getLastTitle().getTitle();
}
}
return "";
}
});
} else {
Bukkit.getLogger().warning("["+getDescription().getName()+"] You are using old MVdWPlaceholderAPI version! Update it if you want to use placeholders!");
}
}
And when I use string with "$" symbol, then it does not getting replaced. There is visible %mvdw_mox_title% instead of correct string. When I use anything that do not contain "$" symbol, then it gets replaced without any problems.
How to avoid this problem?
here is screenshoot (can not send images here :c):
https://imgur.com/rdSsmie
Why are you trying to register with MVDWPlaceholderAPI and regular PlaceholderAPI?
You can simply just do regular PlaceholderAPI, and MVdWPlaceholderAPI will support it also.
I was first using it on featherboard but then I wanted to use it on TAB plugin and here is the problem :/
is there any way to avoid "$" breaking replacement?
Never heard of that before. I just use regular PlaceholderAPI and it will support with mvdw
Uh it might
so .replace('$', "\\u0024") should help?
Hello! I'm using the SuperBVote and HolographicDisplays plugin and I can't figure out how to make the top voter show up on the HD using papi
I don't how to use the %superbvote_votes% placeholder
@austere hawk Try replacing the % with { and }
@austere hawk Download ProtocolLib and Holographic Extension, HD doesn't support PAPI on it's own
Any way to use placeholderapi placeholders into essentialsxchat on 1.15.1
chatinjector is only updated to 1.13
i dont think so?
Idk
I've never tryied lol
But maybe try ChatInjector
Sometimes plugins work even when updating versions
Like LP
may aswell try it
It works but it gives everyone access to color codes in essentialsxchat
Then disable the perm
essentials.chat.color false
Think thats the perm node
@hearty flame
how to check if player have fly mode set to true? %essentials_fly% this is always false
@quartz dagger tried that already
Any ideas? https://paste.helpch.at/utuqoyomub.shell
kdtwo script: https://paste.helpch.at/fejasehako.js
@cerulean ore move the first } to the right
Tanguygab, where exactly do I install it? Is it a .jar extension, because I can't seem to find a /papi ecloud download holographic extension.
This one ^
Thanks! π
How can i add Papi PlaceHolders in Hologramsdisplays Plugin?
@brisk coral can you help me?
@austere hawk
Please respect the rules, be patient and don't ping staff members!
Oki
install holographic extension for papi placeholders. i believe protocollib will be needed too
@warm topaz When i type /papi ecloud download Holographicdisplays
It says no expansion found
there is no expansion for HD. holographic extension hooks into PAPI which allows ur holograms to use any placeholder found on papi. such as vault, luckperms placeholders etc.
https://hastebin.com/neyikosuba.nginx is this an issue with placeholderapi the server owner has told me its the latest verison of ezranks and papi
Head over to #spigot-linking
ah right cool thanks π
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
@austere hawk Holographic Extension is a plugin
Oki
how to check if player have fly mode set to true? %essentials_fly% this is always false
@bronze bison You work on the Essentials expansion right? I think you're misusing the %essentials_fly% placeholder. You should be checking user.getBase().getAllowFlight() vs essentials.getUser(p).isFlyClickJump().
1.15.2 Dev Build
I've seen a few people have issues with PAPI lately and sometimes it can be for the stupidest thing like PAPI not being compiled under the latest version (1.15.2) so here's the latest dev build which is now compiled under 1.15.2
I probably did add few placeholders or cleaned the code a little bit but i didn't rewrite it.
If there's an issue with something or any request, feel free to open a new issue on the expansion's repository on GitHub @tame lantern
I'll go ahead and open one for it.
Testing a fix for it now.
Fixed.
@tame lantern In a bit you should be able to re-download the expansion and it'll start working again.
why its color not working : https://gyazo.com/d9e6cd919a3ef2deb77ee6ebd353c4c6
Use & instead of the other one
its have on the config whit this & only bannerboard makes this whit Β§
Good I have a problem with LeatherBoard when wanting to use it on FeatherBoard does not recognize the statistics and gives me a constant error in the console
does placeholderapi not work correctly in 1.14.4?
it keeps spouting errors and refuses to work with mvdw
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
I'm trying to put my LH on featherboard and I get an error from "[LeaderHeadsRevamped] Placeholder players: damage-give_1 has an invalid number of part"
and this is the sentence I write on featherboard "'{leaderheads_players:damage-give_1}:{leaderheads_score:damage-give_1}'"
RedisBungee extension does not work. I have latest RedisBungee but it do not initialize at server start:
[00:37:46] [Server thread/ERROR]: [PlaceholderAPI] Channel must contain : separator (attempted to use RedisBungee)```
@tame lantern
Please respect the rules, be patient and don't ping staff members!
so I bet that you have to change just this:
Bukkit.getMessenger().registerIncomingPluginChannel(getPlaceholderAPI(), "RedisBungee", this);```
to this:
``` Bukkit.getMessenger().registerOutgoingPluginChannel(getPlaceholderAPI(), "legacy:RedisBungee");
Bukkit.getMessenger().registerIncomingPluginChannel(getPlaceholderAPI(), "legacy:RedisBungee", this);```
Alright, that's cool, but I also don't have the source to the rest of it and I don't really have the time to remake it.
Alright, I will try to do it myself and I will update resource here if I will success
@tame lantern I got the source and I'm going to push the old source to the GitHub Org so you can modify it from there if you wish.
I have trying to change it to legacy:redisbungee, it started initializing but all values are "0" :/
I do not know exactly channel name. I will try to decompile redisbungee and check it inside
RedisBungee is open source so you can probably find it on their GItHub.
I have absolutely no idea if this will work, but feel free to try it.
Same error as before due to "RedisBungee" channel :/
spigot I see requires ":" symbol up from newer versions
I added those in there. Guess it didn't want to work.
But redis bungee registered channel as "RedisBungee"
I told it to also register the legacy stuff.
Can I get possibility to send screenshoots here :x?
=imgur
Please use imgur to share screenshots and other images.
β’ Imgur
This does not throws error
But it returns "0" value to everything
Maybe there is requirment to use it something like bungee:RedisBungee in newer spigot/bukkit versions?
or names of strings like if (subChannel.equals("PlayerCount")) are different now?
This channel legacy:redisbungee should work because it is same as RedisBungee so it is weird :/
ah, there is no "GetServers"
oh wait, I see mistake here
event.getTag().equals("legacy:RedisBungee")
but in main class he registered:
getProxy().registerChannel("legacy:redisbungee");
thats probably why values are 0 :/
Ahh
https://github.com/minecrafter/RedisBungee/issues/71
Reported it, when it will be fixed this version should work:
Oh, I can not send file here :c
You can also just compile a custom version for your server instead of waiting on him to fix it π
I think it requires tons of dependencies and it scary me to add them all just to compile it xD
Oh, its maven project. I will try then
nope, it will take hours to make it working in my IDE
Can I extend the ChatReaction offical expansion placeholder for github & ecloud? I wanna make more variables of it
When is the api getting fixed?
Or is there a working version for 1.14?
When is what api getting fixed?
Placeholder api
I do the /papi parse download commands but none of the placeholders work
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
with askyblock and papi is there a way i can get a island leader placeholder for the island a player is part of, not just the island they are currently in
Iβm working on a placeholder extension right now and it does work, however the function of it is to get the players team color set with the in game command /team so if they were on team called sky and their team color was blue the placeholder would return either the string βblueβ or the color code for blue if possible
Anyone know how to grab team color off of a player like that?
Never mind I found it was getPlayer().getScoreboard().getPlayerTeam()
Is Listener acceptable in an expansion .jar (without external plugin type)?
That is definitely possible if that is used on a full plugin
But not sure about it being accepted on ecloud or not
You can have events in expansions.
If you're asking if it would be acceptable on the eCloud or not, then yes. There's no reason for not accepting it if everything is fine.
Ohh damn
I still don't understand how core plugin register the listener class though
I'm assuming using getProdividingPlugin and get the main class and register it?
Could be wrong tho
papi provides a listener util in it's expansion api, so it's acceptable
Fine
But I want to make extra placeholder in ChatReaction, which clip already owns
I prepared 6 placeholders in the expansion already π€·
Ask him to OS it kek
Do I have to tag him or what ._.
lol gl trying to get him to OS it
PAPI doesn't provide anything for listeners? Current PAPI, idk about the new one
Piggy spoiling shit again smh..
Its like a plugin but you register the listener by PAPI
Also for the ChatReaction expansion, guess you mean make a brand new expansion with the new placeholders only? You can do that but I don't know about verifying it on the eCloud, would need to ask.
Or just ask him to open source it and you can contribute to the current one.
Bit confused as to why expansions aren't OSd from the start
I've got the source to a lot of the expansions that aren't on the github, if theres a need for one I can os it
Can you os my desired one please ._.
How can I show another player's money using placeholder?
use the ParseOther Expansion
I have an error . Can I use an example?
%parseother_Destin_vault_eco_balance%
When error?
Destin - nickname
%parseother_{Destin}_{vault_eco_balance}% try this @reef galleon
Help. I need to show red glass when the player's balance is Destin >= 100, and green glass if it is less than that. What did I do wrong?
https://paste.helpch.at/atoxewiwed.bash
My balance is $ 192. Why do I see green glass?
https://paste.helpch.at/megezoniti.sql
You only need requirements on one, which is the one with priority 1
@brisk coral
Is there any placeholder that shows player with most kills ??
Can you not? You've asked the question, now wait for some to answer
There isn't one currently.
You can probably get one using leaderboard plugin afaik.
Yeah since play kills are stored via statistics those only work for online players.
well everything is working fine no errors and i get %player%
like it doesnt really work well
anything known at this point?
i use join tags and chat
why is the default config then %player% xD
join tags and chat
Deluxe plugins made by clip?
yes
DChat will use %player_name%
/papi ecloud download Player
/papi reload
rest should work with %player%
iirc dtags doesnt have papi support in the config, but could be wrong
never used djoin myself
nope still nothing
servus what are you trying to do and doesn't work?
uhm basically this
hmm
cant share screenshots
i want to use the variable player name
in what plugin?
you will need PlaceholderAPI installed
%player_name%
and you did: /papi ecloud download Player and /papi reload after?
Then the expansion isn't actually loaded.
hey
basically, I do own a plugin which has added PlaceholderAPI support. I downloaded a scoreboard plugin I first saw (https://www.spigotmc.org/resources/quickboard-free-scoreboard-plugin-scroller-changeable-text-placeholderapi-anti-flicker.15057/) which ways supports PAPI. If I put the plugin's PlaceHolders, they don't work. What's the problem?
@trim mist have to go in few mins, can you help?
@inland cliff
Please respect the rules, be patient and don't ping staff members!
@inland cliff
Please respect the rules, be patient and don't ping staff members!
Why are you tagging if you're sorry and you know it's against the rules?
It's not helping anyone and it's making people not want to help you. You can leave and come back later for the answer.
I am using Deluxetags and keep getting this: https://imgur.com/a/9akynf7
cause I have to go and I wont able to stay at pc for a long time so wanted to have an answer
%essentials_nickname% is just showing as %essentials_nickname% - what on earth did i do wrong
Make sure you have the expansion ^
I did the commands and then restarted after changing my chat manager config but that didn't work
although it does say only 3 placeholder hooks. That's not meaning only 3 of them are being registered?
cube u still didn't os ChatReaction for me ._.
What are the 3 expansions @sweet terrace
Not sure what the 3 were but I have the Expansions-Essentials jar in my PAPI expansions folder
O
O indeed
Done
Added some 2 new placeholders after cube sneaked on me creating more extras that my code already have ;p
o, i just saw the api and added a few that could be useful since i had it open
Yeah
A little bit weird is that why there is ReactionAPI class when you can just use ChatReaction.getDisplayWord() (static method from core plugin)
Β―_(γ)_/Β―
Better to not use static
@austere hawk cleaned it up a bit, as brackets didn't line up and there was a random return null in the middle. But seems latestWinner isn't working
possible i broke it whilst cleaning up
cube breaks something :()
smh
hes trying his best leave him alone @brisk coral
At first i was like: wow, I would think if the PlaceholderExpansion implemented Listener
Actually no... ._.
xd
All cleaned up and released now
fc da dev
nah yeah
thats how good i am
sue me

can someone help? still having an occurring issue from yesterday with deluxetags: https://imgur.com/a/9akynf7
we need these @balmy marten
DeluxeTags showing in essentials chat:
- Turn of the DeluxeChat option in the DeluxeTags config.
- Turn off the format_chat option in the DeluxeTags config.
- Replace all the
%placeholders%(%deluxetags_tag%) with{placeholders}({deluxetags_tag}). - Restart the server.
^
I've done that bud
force_tags: false
check_updates: true
deluxe_chat: false
format_chat:
enabled: false
change the %% to {}
what is this?
[20:17:39 ERROR]: [PlaceholderAPI] BattleLevels is currently using a deprecated method to hook into PlaceholderAPI. Placeholders for that plugin no longer work. Please consult [RobiRami] and urge them to update it ASAP.
Contact the author of the expansion and telll him to update his shit
Cough @steep thorn cough cough
Wait, wasn't that updated already? Guessing you're using an outdated af version or.. @daring ether
Last update was dec 2017
Any way to open players dat files located in the world config?
Oh wrong chat lol mb
x)
Bit confused as to why you're returning the same thing @cerulean ore ?
Just wanted to make sure that it returned that same thing incase something happened
But I figured it out tho,
You don't even need JS for that
I do because for some reason the math expansion doesn't seem to working on my version of featherboard
1.8 I'm guessing?
Yeah
Ah I see
Message_Format: '{pl_prefix}{pl_suffix}%essentials_nickname%: {message}'
I didn't write it wrong right?
If that's esschat @sweet terrace use {essentials_nickname} or install ChatInjector and you'll be able to use %% placeholders
Chatinjector still use {} @brisk coral
Trash
I'm using one called Chat Control and I've just installed ChatInjector and changed the config to {%essentials_nickname%} but now the actual chat is just showing {%essentials_nickname%} now
Remove the %%
That's worked, thanks!
true and false in colors probably
How do I make it so that a player needs a certain rank in PEX to buy something off of deluxemenus
i already have expression: '%vault_eco_balance% > 50000'
so they need 50k to buy it
now i just wanna make it so they have a certain rank to buy it
Okay so in deluxe menus you can make it require a permission, just make it require a permission that only that rank can access
Heres an example
Ok. Figured that would work as well. Can I just create a custom perm?
example:
menu_title: '&cToken&oShop'
open_command: tokenshop
size: 45
open_requirement:
requirements:
permission:
type: has permission
permission: zedshop.toggle
deny_commands:
- '[message] You dont have permission to open the example menu'```
Yes you can
As long as the group has it π
Awesome. Thanks!
No worries mate
Wait I have one more issue
So lets say I have 4 ranks. Rank 3 inherits rank 2's perms, rank 2 inherits rank 1's perms, and rank 1 inherits rank 0's perms
I'd like to make it so that rank 2 can buy this item from the deluxe menu, but not rank 3, even though rank 3 inherits the perms.
Do you use pex or luckperms
Pex
Just survival
There are 3 default ranks you can buy from an NPC that opens my rankup deluxemenu
which runs the command
/pex user %player% add example.permission
And then make the rank up to rank3 use the command
/pex user %player% remove example.permission```
Im trying to use PAPI-TokenEnchant to setup my placeholders for TokenEnchants
The issue is that when I use them, it only displays 0, everywhere
Im not sure if I am using the placeholers wrong or something?
For example, if I want it to display the current level of haste on my pickaxe, is %tokenenchant_Haste_level% the right placeholder?
I need some help,
FactionsScoreboard seems to give me an error and it messes up all of the Placeholders when it's broken.
Does PlaceholderAPI have a thing for how large the worlds are in memory? So like if my overworld is 1GB nether is 1GB and end is 1GB it will output 3GB?
If it does I cant find it on the wiki I would assume it would be under stats or server
hey how come placeholderapi stuff dont work for me
recently.
%vaulteco_balance%
STuff like that
it used to work liek a month ago
Anyone know why it stopped working?
%vault_eco_balance% and make sure you have the right expansion
oh wow
How come these dont work for me:
%statistic_time_played%
%statistic_player_kills%
%statistic_deaths%
%statistic_mine_block_SUGAR_CANE%
@brisk coral
NVM GOt it thx
If anyone here could help me with my question please ping me
SO I got it to work BUT its not tracking the actual statistic of mined block sugar cane or player kills or deaths
Actual?
%statistic_mine_block_SUGAR_CANE% doesn't go up
when i Mine sugarcane
please tag me if anoyne finds a way to do this
whilst finishing up my menu and having it all work perfectly fine. I began working on new menus and for some reason the menu broke. what i mean by broke is that it removes random items and disables commands. https://hastebin.com/alolucecon.cs is the menu (not full menu for security reasons but its exactly the same throughout the menu) and this is the MAIN javascript used ```js
var permission = "%askyblock_has_island%";
var permission2 = parseInt("%askyblock_team_size%");
function anything() {
if (permission == "yes" || permission2 >= 2) { return "yes"; }
else { return; }
}
anything();```
Jesus
var island = "%askyblock_has_island%";
var size = "%askyblock_team_size%";
function island() {
return island == "yes" || size >= 2 ? "Yes" : "";
}
island();
try it
Change the function to islands()
script error
How would I use %server_unique_joins% in a plugin that im making? I have a plugin that displays a message I set in a config to players who type /info and I want to add unique joins to that info command but dont know how to use this api.
Parse the message and use the %% placeholder within it
PlaceholderAPI.setPlaceholders(player, String);
Frosty I get script error
so its just return island == "yes" ? "yes" : "";?
Yea
Remove your javascript expansion and redownload it
ok
Still get Script Error
Frosty I chucked the js into yamlchecker and it gives this in return
return island == "yes" ? "Yes" : "";
^```
I wish there was a guide on how to use this api
There is a guide
Frosty. I still get Script Error
Can you show your full code again?
@austere hawk me?
Show me how you're putting it in the .js file
var island = "%askyblock_has_island%";
var size = "%askyblock_team_size%";
function island() {
return island == "yes" ? "Yes" : "";
}
island();```
which is what you told me to put it as
var island = "%askyblock_has_island%";
var size = "%askyblock_team_size%";
function islandRequirements() {
return island == "yes" ? "Yes" : "";
}
islandRequirements();
Try this, might be cause the function is the same as var, but not sure
And if you don't have an island
let me see
And?
That's correct now, now try this
var island = "%askyblock_has_island%";
var size = "%askyblock_team_size%";
function islandRequirements() {
return island == "yes" || size >= 2 ? "Yes" : "";
}
islandRequirements();
parse it and see if it works
returns a blank chat π
yeah I did
great
Also with DeluxeMenus for some reason The filler blocks in my config arent showing
You've got a requirement from what I saw, why's that?
priority: 1 and 2
paste the config again
switch the priorities
so 2 becomes 1 and 1 becomes 2?
Yea
Still shows nothing
i can try setting it as priority 2 and have no view requirements so it just shows and whatever item has priority 1 over rights it?
but only have 1 item1:
nope it still doesnt work xd
Do the rest of items show?
Yeah
everything else shows but the glass panes
and it broke again
without doing anything
Is there a placeholder for your amount of deaths?
And the most amount of deaths /which player
Awe.. thanks tho
How to i wipe a players k/d?
in the world playerdata folder. idk if u can delete a statistic 1 by 1. but u can wipe all the stats by just deleting the files
unless u use a separate plugin for kills/deaths then no
or you have to delete all their statistics = data
if i delete the player data will their enderchest and inv go?
I think you should be able to open your stats file with a NBT Editor and remove the data you want
i deleted all the the files in the playerdata & stats folders in the world directory, but even after multiple restarts its still showing what it did b4.
%statistic_player_kills%
%statistic_deaths%
/papi ecloud download Statistic
/papi reload```
So although no one could help me on how to use placeholder-api I decided to make my own thing that goes like this, I would still really like to learn how to use this api for future project though
public List<String> getMessageLines() {
Server server = Bukkit.getServer();
int unique = server.getOfflinePlayers().length;
if (!YMLConfig.contains("rows")) {
ArrayList<String> obj = new ArrayList<String>(Arrays.asList("Text1", "Text2"));
YMLConfig.set("rows", obj);
}
ArrayList<String> info = new ArrayList<String>();
for (String s : YMLConfig.getStringList("rows")){
s = s.replaceAll("%unique_join%", String.valueOf(unique));
info.add(s);
}
return info;
}
What are you trying to do?
I was told there is a guide for this but was not linked
I wanted to use the %server_unique_players% but was not helped so I had to make my own thing
PlaceholderAPI.setPlaceholders(player, "String with %placeholders%")
what is the player parameter for?
You have to pass a player argument if the placeholders you want to parse require it
For server placeholders you can just pass a null value
so this string would output the number of how many unique players join my server?
String count = "Unique Joins: %server_unique_joins%"
count = PlaceholderAPI.setPlaceholders(null, count);
if not Im still confused about this lol
@vivid sparrow ai idee?
@peak cape
Please respect the rules, be patient and don't ping staff members!
Hello how can I "display" all People from all Worlds?
With the api
Is there a way?
@sharp jay can you help me?
@honest nacelle
Please respect the rules, be patient and don't ping staff members!
Oh
Hey did deluxechat remove placeholders.yml in the config section?
example:
layouts:
<placeholder without %>:
has_value: '[%value%]'
no_value: '%value%'
'factions_faction':
has_value: '&8[&f%value%&8]'
no_value: '%value%'
Like this?
@final shadow did u remove this functionality from the plugin?
@covert ermine
Please respect the rules, be patient and don't ping staff members!
@covert ermine See #spigot-linking to get help with DeluxeChat
hello, im new to coding and i ran into this problem when trying to create an expansion within my plugin. java: package me.clip.placeholderapi.expansion does not exist
i did import papi-2.10.4.jar
@unique solar You always need to parse a player, it will still show the correct values, but that's how it's made
@shut nova Use maven instead of manually importing the jar
Since the %pinger_online% player holder returns Online and Offline. how would i make it so it says ONLINE and OFFLINE within a js?
