#papi-updates
1 messages · Page 6 of 1
Hi,
I want to translate the Essentials Gamemode Placeholder.
For example if you are in /gm 1, I want that the placeholder says "Créatif" and not "Creative".
Survival --> Survie.
Spectator --> Spectateur.
Thanks ! :)
Does essentials expansio even have a gamemode placeholder? 😅
@Gaby-TM There is not, but you can just use the Player placeholder for that.
@TheIntelloBox Essentials doesn't have a placeholder for that. You'd have to clone the Player expansion and write statements for each gamemode possibility and tell it what to parse. Has nothing to do with the Essentials Expansion.
OP never responded. Closing until reopened if still an issue.
The placeholder gets the number of online players without including vanished players.
This isn't a very extensible format to write code in.
Observing this code block, you will notice that the config path is directly reflected in the name of the associated enum constant. This entire block of code could be effectively one line.
I would highly suggest taking advantage of the TimeUnits made specifically to do these sort of conversions. It would make the code a lot less verbose, and increase general readability in a function like that which tends to becomes a "wall" of code.
seconds -= instead of seconds = seconds -.
Also, putting these statements on the same line as an initialization of a variable greatly decreases readability.
PlaceholderExpansion#getPlugin
This method is named "getPlugin", but it doesn't get a plugin. A proper name that conveys its true meaning would be requiredPlugin or getRequiredPluginName
The methods
both have documentation that describes their return as
placeholder identifier that is associated with this class
...
I would highly advise against this change. The more you weaken this type, the harder it will be to handle in the long run.
If you truly want it to be any object, at least wrap it in Optional rather than relying on null, or make use of annotations to signify nullability status to the IDE.
Yeah, it's pretty bad for a method to return String like this most of the case
%askyblock_online_members% - Show how much members online you have on your island.
%askyblock_max_members% - Show how much members limit you have on your island.
Add more placeholder:
%askyblock_top% - to display player rank
%askyblock_top_level_<rank>% - to display level of player rank
%askyblock_top_name_<rank>% - to display name of player rank
%askyblock_members_max% - to display max members
%askyblock_members_online% - to display online members
[PlaceholderAPI/ASkyblock-Expansion] New comment on pull request #5: Update ASkyBlockExpansion\.java
I'll update this to ecloud later on. For now the latest build can be found here http://ci.extendedclip.com/job/ASkyBlock-Expansion/3/
2894d52 Add deprecated setPlaceholders(Player) methods ... - extendedclip
Bossmessenger and deluxechat can't load PlaceholderAPI 2.9.0
Yep. All is fixed in 2.9.1
[PlaceholderAPI/PlaceholderAPI] New tag created: 2\.9\.1
b0f0050 Add OfflinePlayer support. Now requires Placeho... - extendedclip
fde0c0b No need to check if player is null - extendedclip
9216685 removed .classpath - extendedclip
3fa16d1 Remove target directory - extendedclip
07781a0 Merge branch 'master' of https://github.com/Pla... - extendedclip
e4a672e Require a player be specified when using /papi ... - extendedclip
287ab16 Set version for 2.9.1 dev builds - extendedclip
Any way to add a placeholder that display the current in game tick time like {time} HH:MM:SS
Thanks!
I'm aware of that but it's not what I am asking.

I am asking for the current in game ticks. 0 ticks or 14000 ticks
You can get it by making a JS placeholder I guess.
Get the milliseconds and do calculation.
1k ms = 1s
20 tick = 1s;
You know what I mean
This means that the plugin no longer has to be manually reloaded after server starts when using PAPI placeholders within the configuration.
9fe893c Update to PAPI 2.9.x with support for OfflinePl... - extendedclip
Rather than loading up the PAPI plugin.yml with tons of plugins it should load before, don't you think it may be wise to have the depending plugin softdepend or depend on PlaceholderAPI which would give the same result? I think that would be better. That way PlaceholderAPI is not worried about load order as the depending plugin can ensure it loads after PAPI.
cb02350 Added all OfflinePlayer placeholders from Playe... - extendedclip
I was gonna do that but TAB isn't open-source afaik
Recipient placeholders for deluxechat stopped working after updating.
This issue is with DeluxeChat. It interacts directly with the PlaceholderAPI placeholder map to handle parsing recipient placeholders (since they use a different regex pattern than normal placeholders). You can downgrade the expansions for the time being until an update is pushed for DeluxeChat.
Used the plugin AdvancedBan and was testing it out. Everything is fine with the console until I use the command /ban on a player and then it spams a bug in the console.
I submitted an issue on the github of tablist but the author told me there's no bug that causes that in his code but the error leads to PAPI.
Bug: https://pastebin.com/eN41djGm
Console spam
https://pastebin.com/WbeWq2Az
https://pastebin.com/C9SKLLtU
Issue opened in Tablist: https://github.com/montlikadani/...
Issue has been fixed now. Removed the island border placeholder from a config in tablist and spam no longer shows up.
I am having an issue with calling placeholders if a player is offline, I am using discordsrv and trying to grab a javascript placeholder and %player_displayname%. The placeholders work when the player is online, but if they are offline it will not work. How can I fix this?
37beda8 I think I fixed adding new items - darbyjack
5e889a5 Added this by default to prevent confusion - darbyjack
44567e4 Added in more detail to lore info - darbyjack
Compromise: in config, we have a section that you can put plugins to load before PAPI then have something in the onEnable dealing with this. Thoughts @extendedclip?
This server is running Paper version git-Paper-1475 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
PlaceholderAPI version 2.9.1
Can you post the full error
But it is the the full error.
Nope. It's not.
Every Stacktrace (error) normally has a "caused by:" section, that gives details on what caused the error in the first place.
Plugin Used: "DeluxeMenus 1.10.5", "PlaceholderAPI 2.9.1"
- Expansion: "Pinger"
Server Version: Spigot 1.8.8
Issue: The placeholder check is broken. Having 2 items with the proper "priority" and "setup", the placeholder :%pinger_online_servername:25858%" is not pinging the server correctly and giving an output as the server is always online.
Even after shutting down the server, opening the GUI the second item is taking priority and showing the server as offline, but whe...
Not doing the actually calculation. I simply need to get current game ticks.
the default check interval is 30 seconds check_interval: 30 change it and it should work with you
its in papi config..
@aBo0oDyy , i've tried that and it is not working. And if you'd go and read my post again you will see that the issue is not only/or atleast not the only one.
Even if the server that i'm pinging it is offline it will display it in the GUI as it is online. Tested with check_interval: 30 , check_interval: 1 , check_interval: 2 .
`menu_title: '&8Server Selector'
open_command:
- servers
size: 27
update_interval: 1
items:
KITPVP_ONLINE:
material: DIAMOND_SWORD
data: 0
slot: 11
hide_attributes: true
priority: 1
view_requirement:
requirements:
server_online:
type: string equals ignorecase
input: '%pinger_online_###.###.##.###:25858%'
output: '&aOnline'
display_name: '&d&lKitPvP'
lore:- '&7 * Status: &aOnline'
- '&7 ...
its working fine for me...
i used it with testplugins server and its displaying online item, when i change it to another offline server it displays the offline item
u need to wait after running/shutting down the server then it should work fine
@aBo0oDyy , yes you are right. Everything works flawlessly.
I was pinging the wrong server... (face-palm)
Thanks, cheers.
lol
glad u solved it tho 😁
PlaceholderAPI #39
Build: 39
Status: success
Changes:
No changes.
Artifacts:
Jenkins v2.121.1, Discord Notifier v1.1.0
PlaceholderAPI #40
Build: 40
Status: failure
Changes:
No changes.
Artifacts:
No artifacts saved.
Jenkins v2.121.1, Discord Notifier v1.1.0
PlaceholderAPI #41
Build: 41
Status: success
Changes:
No changes.
Artifacts:
Jenkins v2.121.1, Discord Notifier v1.1.0
PlaceholderAPI #44
Build: 44
Status: failure
Changes:
No changes.
Artifacts:
Jenkins v2.121.1, Discord Notifier v1.1.0
PlaceholderAPI #45
Build: 45
Status: success
Changes:
No changes.
Artifacts:
Jenkins v2.121.1, Discord Notifier v1.1.0
@madtomic Those are not the current game ticks, that is the Minecraft world time expressed in ticks
Bug "TAB" plugin author with this, or just patch the plugin.yml in "TAB" plugin =)
So having issues in version 1.13 with placeholders. just dumping them here (well the ones i use).
%statistic_player_kills%
%statistic_time_played%
Most of the Entities for killed/kill
%statistic_kill_entity_<Entity>% (example bottom)
%statistic_kill_entity_GHAST%
i guess Statistic mine and use items... mostly stats.
%statistic_mine_block_COAL_ORE%
%statistic_use_item_COAL_ORE%
@mikroskeem see my second above message. (I was gonna do that but TAB isn't open-source afaik)
You can literally unzip the jar, modify plugin.yml and repack it
Any errors in the console?
I want it to be open for others
If the original author is not open enough, then making changes locally is the best you can do.
@darbyjack I think we can try to replicate this by using the placeholder itself. I don't think these stuff relies on the Spigot/Bukkit but instead invoking it with reflection/etc.
@Banbeucmas It these placeholders come directly from the MC system.
@instantout What exactly is the issue you are having?
Resolves PAPI not loading expansions in latest dev build.
Adds Version#compareTo method for easier version comparison.
Cosmetic code style fixes.
9cc5a96 Reformatted project to conform to google style ... - Mishyy
efc6a63 Added compareTo method for easier comparison in... - Mishyy
838f947 Resolve expansion loading bug. - Mishyy
27ca32b Updated .gitignore to ignore .iml project files. - Mishyy
83e64ee Merge pull request #33 from Mishyy/master - extendedclip
I'm not sure where the issue is yet because I haven't had a chance to look into it but after switching to the Ender Zone repo for Essentials X it seems we are having issues with building the expansion in Jenkins. Just posting this issue so I don't forget....
What exactly is the issue senor clip.
Glare added some placeholders to the expansion and changed the essentials repo to the official instead of mine today. He said everything builds fine locally but on Jenkins the build failed with this error. https://paste.glaremasters.me/uvomejeyid.sql
https://www.spigotmc.org/threads/need-help-with-deluxemenus.329656/
https://www.spigotmc.org/wiki/placeholderapi-placeholders/#player-placeholders
I believe there is an issue with the %player_hasitem-mat:<MATERIAL>-amt:<amount>-data:<data value>% placeholder. I covered the issue in the thread I linked above <3
Try the checkitem expansion:
%checkitem_mat:<material>%
%checkitem_mat:STONE,amt:10,data:3%
%checkitem_mat:<material>,nameequals:&cname%
%checkitem_namecontains:&cname%
%checkitem_namestartswith:&cn%
TokenEnchant Expansion Won't Update
It stays orange in the list to be more specific
When i use %ezrankspro_rankprefix% it wont work
- Make sure ure using latest version of papi.
- /Papi ecloud download ezrankspro.
- /Papi reload.
- Make sure the plugin u want to use the Placeholder in it supports papi and reload it.
It would be nice if you add support for BungeeCord, even if the placeholders in the BungeeCord plugins are not widely used
Should return the cardinal direction the player is facing...
So, I was adding Placeholder so I could add more things like uptime. But when I restarted my server on server.pro it says enabling, and then almost instantly an error. This is it:
`[ERROR] Error occurred while enabling PlaceholderAPI v2.9.1 (Is it up to date?)
java.lang.NoClassDefFoundError: com/google/gson/Gson
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.<init>(ExpansionCloudManager.java:54) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPIPlugin.enableCloud(Placeholder...
Alright,
I've actually seen this error. So basically what's going on is that in Spigot 1.8.3, something was added called Gson into the server jars that basically helps store data and whatnot, Gson is Google's version of JSON, which I'm sure you probably know what that is since you've seen it before in different plugins (files that end in .json).
Your current issue is that you are trying to use a Spigot 1.8 jar, and since PlaceholderAPI uses the Gson inside of the server jar, it's not po...
I don't really see a point for this. The reason being is that some expansions will throw errors due for the way the authors designed it because if it can't find their plugins, they will throw errors on loading. That's why it's a better idea to handle it per server vs having it globally.
Can we get an update from the OP on the latest 1.13 release?
@darbyjack I'm saying to add support to set placeholders in the BungeeCord, to use placeholders with BungeeCord plugins
That is up to the authors of the plugins themselves to add PlaceholderAPI support.
@darbyjack But PlaceholderAPI doesn't support BungeeCord plugins, I'm asking to add support to it
Of course it supports BungeeCord plugins, they just have to make their own support.
This is most likely an issue where expansion names do not match (the name of the project on the expansion cloud site and the expansion its self).
Re-open if this issue occurs again.
Some plugins such as BungeeTabListPlus already support PlaceholderAPI at the proxy level:
https://github.com/CodeCrafter47/BungeeTabListPlus/blob/master/bukkit/src/main/java/codecrafter47/bungeetablistplus/bukkitbridge/placeholderapi/PlaceholderAPIHook.java
@extendedclip I meant support for native BungeeCord placeholders, not the taking of Placeholders from Bukkit for use on BungeeCord
Ah I get you.
Would the placeholder system be specifically used with Bungee plugins or would there need to be communication between the proxy and server?
Ex: ability to register "Bungee placeholders" in the "Bungee PAPI" then these placeholders are accessed from the Spigot server
@extendedclip The placeholder system will be specifically used with Bungee plugins
Well, this is not a problem, but thanks for telling me how to fix it.
Good thing my other plugin supports 1.8 - 1.13.
Is this something I can fix? Do I have to be more specific when I type "/papi ecloud download TokenEnchant" in chat like include the version name and stuff?
VK will need to set the getName field in his expansion to match the name his expansion was uploaded as. If the expansion is currently enabled just disregard the color in papi ecloud list for now until he does.
[PlaceholderAPI/LemonMobCoins-Expansion] New branch created: master
5ad6fcc Commit they said, it'll be fun they said - LemmoTresto
I would like to reference this issue I posted at enginehub: https://dev.enginehub.org/youtrack/issue/WORLDGUARD-3955
According to them, the issue lays with PlaceholderAPI itself.
Thank you for the report. It looks like this is still a developer version for WG so this will be updated once a stable release of WG for 1.13 is out.
650d5a1 Initial commit for glare - extendedclip
9cd37c0 Add WorldEdit as a dependency - extendedclip
049b46f Set scope for dependencies - extendedclip
[PlaceholderAPI/Towny-Expansion] New branch created: master
Cleaned up project, updated .gitignore and removed ignored files.
I wish to suggest a new vault placeholder.
Currently available if %vault_rank% but you are not able to specify which rank it should show if the user has multiple.
What if there was a variable option on the end of it to specify which rank ladder it should prioritise?
Like %vault_rank_ladderName%
I don't believe this functionality is native to Vault itself, rather specific permission/group management plugins. Such a feature would most likely need to be implemented within their specific placeholder expansions, if they have any.
I believe LuckPerms has a PApi expansion here.
Cheers. This may be the way I have to go.
Could it be possible to add Armor variables?
Here are some examples:
Held items:
%player_mainhand_displayname% = Main hand's display-name
%player_offhand_displayname% = Offhand's display-name
%player_mainhand_durability% = Main hand's durability
%player_offhand_durability% = Offhand's durability
Armor slots:
%armor_helmet_displayname% = Helmet displayname
%armor_chestplate_displayname% = Chestplate displayname
%armor_leggings_displayname% = Leggings displayname
%armor_boots_dis...
Buildin support in Premium version.
https://github.com/Eniripsa96/SkillAPI/wiki/Premium-Features
On the bottom you see OTHER there you will find PAPI, and it goes to this:
https://github.com/Eniripsa96/SkillAPI/wiki/_PlaceholderAPI
MythicMobs Expansion
MythicMob Spigot
Possible Placeholders:
I have no idea, don't use the plugin. There was a request for MythicMobs suport on my plugin (InfoBoardReborn) without options on what placeholders they would like...
It was requested
Can you link me to the where the user has requested this expansion? I need to know what all they are looking for.
Hey there, thanks for that. Do you know if in MM you can already see how many mobs they have killed? Such as a message or something?
I have no idea, I don't use the plugin myself..
I think these are a good idea. I don't have time rn but if you have time you can add them yourself.
added:
%player_item_in_offhand%
%player_item_in_offhand_data%
//Armor based
%player_armor_helmet_name%
%player_armor_helmet_data%
%player_armor_chestplate_name%
%player_armor_chestplate_data%
%player_armor_leggings_name%
%player_armor_leggins_data%
%player_armor_boots_name%
%player_armor_boots_data%
Hey,
I'm using the 1.13 devbuild, however the total playtime placeholder shows incorrect information.
A lot of players have over 60 days which is totally not correct while one of the most active staffmembers has only 4 days..
Why are you checking if the item in his hand is null? You need to check his offhand.
Also seeing errors on startup.
ya this is the only issue I saw
Will work on this soon...
Won't this throw a npe if the player doesn't have armor equipped. Also calling getMeta#getDisplayName etc without checking if the armor has meta?
Yea good eye, I’d fix it because I’m adding a placeholder too but my internet is down.
@extendedclip ItemMeta#getDisplayName won't throw an NPE, but it will return null.
I think we should still add a sanity check for if the meta or display name etc is null. Returning a null value will display the raw placeholder in PAPI. I think we should add the check if the value is null then return an empty value instead.
This now must be permanent
Holy nice PR. This gonna give me a lot of feature and performance boost
every time i load server or type /papi reload. Running Devbuid 1.13.
(else expansion works it self)
b90d2e8 Fix shitty issue with the plugin loading after ... - LemmoTresto
baf2871 Oopsie forgot about the version - LemmoTresto
Hi there,
I'm currently using PaperSpigot 1.7.10 for HCF (Hardcore Factions) purposes. I would like to know why this error is happening and how I could fix it.
Full error: https://pastebin.com/raw/DxVUpNGm
I am using the latest PlaceholderAPI plugin.
Thank you.
1b997db Remove reflection to gather valid material type... - extendedclip
You can probably just disable the "cloud" feature in the config and that would prevent the plugin from interacting with gson. The only bad thing is you have to manually download your expansions for placeholders....
@extendedclip I suggest shading and relocating GSON instead.
The errors are gone but the playtime is still incorrect.
Ya I haven't got to that yet but glad the other errors are fixed. Will work on this later today
@extendedclip Any time? :P
197aa5d Added 1.13 R2 NMS to the enum - extendedclip
0bfd42d Set 1.13.1 Spigot API as dependency, Shade and ... - extendedclip
ce1ca35 Merge branch 'master' of https://github.com/Pla... - extendedclip
c205a9a Just make the damn directory - extendedclip
Why on earth do we want /daddy as an alias for this ..
It's not spanish .. it's an abbreviation for placeholder api.. papi, not d.addy .. in translation.
i enjoy the lil things, like this guys sense of humor!
I believe a lot of people wanted the official bungeecord dedicated placeholderapi. Simply change all org.bukkit.entity.Player to net.md_5.bungee.api.connection.ProxiedPlayer, sending messages, etc. to make it compatible with bungeecord. The structure of the placeholderapi remains the same. However, since this is dedicated for bungeecord, another ecloud may be required. Bukkit (spigot) placeholders cannot be downloaded to bungeecord papi, while bungeecord placeholders cannot be downloaded to s...
If anyone submits a PR removing the alias,. I guess I will remove it. It was just an inside joke we enjoy on discord so I thought it would be cool to actually add. @mrfloris sorry if this upset you...
@extendedclip Hey, any time for this issue yet? Would like to fix the playtime placeholders.
@Sikatsu If you shoot me a DM on Discord (Glare#8499) as a reminder, I'll see if I can fix it by the time I go to bed tonight.
[WARNING] [MVdWPlaceholderAPI] There is no MVdW placeholder plugin installed!
[WARNING] [MVdWPlaceholderAPI] Put on of Maximvdw's premium placeholder plugins in the server!
[INFO] [NametagEdit] As the error above suggests, you do NOT have any placeholder plugins installed. The placeholder API is merely an interface, it requires other plugins to function. This is NOT an issue with NametagEdit.
I've added
PlaceholderAPI
MVdWPlaceholderAPI
MVdWUpdater
and I'm still getting thi...
Well .. it literally say
[WARNING] [MVdWPlaceholderAPI] There is no MVdW placeholder plugin installed!
You need one of maxim's premium plugins
Idk if nametagedit support papi if it does then make sure u have the latest version of papi
For mvdwpapi u need at least one of MaximVdW premium plugin to use mvdwpapi (like featherboard, animatednames, etc)
Well .. it literally say
[WARNING] [MVdWPlaceholderAPI] There is no MVdW placeholder plugin installed!You need one of maxim's premium plugins
I have the plugins...
Idk if nametagedit support papi if it does then make sure u have the latest version of papi
For mvdwpapi u need at least one of MaximVdW premium plugin to use mvdwpapi (like featherboard, animatednames, etc)
I don't feel like adding these as I don't need them. How could I disable the message?
You can't, because mvdw api is made to work with maxim's plugins :D
U cant use mvdwpapi placeholders if u don't have one of maxim's premium plugins.
Check the config file if it has option for disabling the message but i don't think it has one for that
You can't, because mvdw api is made to work with maxim's plugins :D
So why is nametagedit spamming this?
Remove mvdw api and use papi placeholders
Remove mvdw api and use papi placeholders
Already tried that. Didn't work
I downloaded factions with /papi ecloud download factions
it tried using it but it didnt work
i saw in extansions that it was indeed downloaded but when i did /papi list or /papi ecloud list installed it didnt show up can somebody please help me with this problem
What factions plugin do you have?
/papi ecloud download factions
Is for Factions
And if you are using FactionsUUID or SavageFactions both have build-in placeholders (no expansion needed)
This doesn't have to do with PlaceholderAPI.
Will open back up when WG 7.0.0 has been released.
Add player locale placeholder
- Add the jobs expansion to the org ;)
@darbyjack Thank you
Having issues with latest statistics expansion is it corrupted I noticed this version is much smaller in kilobytes
replacing the expansion with an older version fixed the issue, so latest version must be corrupted
Forwarded the issue to the proper issue page https://github.com/PlaceholderAPI/Statistics-Expansion/issues/3
Other expansions are still working fine on 1.12.2
using 1.12.2 all other expansions are working as normal
Maybe I'm wrong but the latest version is for 1.13 only
If you mean the plugin itself this was in the latest updates section
( 2.9.2 The legacy versions update
2.9.2
This update adds support for any relevant minecraft version...)
The statistic placeholder is the only expansion out of 15 that I'm using that isn't working all others are working
I'm just lucky I had a backup of my server and reverted to the previous expansion version
No, I'm talking about the expansion, Glare have updated it yesterday for 1.13 and I'm not sure if it still work on the previous versions. You can download other versions from https://api.extendedclip.com/all or https://ci.extendedclip.com
It's the only placeholder I noticed that requires it to be minecraft 1.13 probably wasn't updated properly, also none of those links provided a download link for a previous version
that one is way outdated what happened to all the others?
Don't know. Just use the previous one, I'll get around to fixing it.
k thanx all other expansions still work fine in 1.12
Added the placeholders to get the home's name and coordinates.
This allows to do some pretty nice things like a GUI for homes with a correct TP to the location and their name.
Here is an example of it ingame: https://img.mattmoreira.me/image_8ada0e.png
// Removes all the letters from the identifier to get the home slot.
String homeNumberString = identifier.replaceAll("\\D+", "");
// Checks if the number slot is an integer or not.
if (!isStringInt(homeNumberString)) return null;
// Since it is easier for users to type from 1-x I subtract one from the original number to work from 0-x.
int homeNumber = Integer.parseInt(homeNumberString) - 1;
This entire process can be replaced with
Integer homeNumber = Ints.t...
if (identifier.endsWith("_x")) {
try {
return String.valueOf(round(essentials.getUser(p).getHome(getHomeName(p, homeNumber)).getX())) + ".5";
} catch (Exception e) {
return null; ...
try {
val home = essentials.getUser(p).getHome(getHomeName(p, homeNumber));
val data = 0;
switch (identifier.charAt(identifier.length() - 1)) {
case 'x':
data = home.getX(); ...
@Sxtanna Thank you for the changes, didn't think about that!
I'll change them in a bit.
Though when trying to do the int homeNumber = Ints.tryParse(identifier.replaceAll("\\D+", "")) - 1; I get Unboxing of 'Ints.tryParse(identifier.replaceAll("\\D+", ""))' may produce 'java.lang.NullPointerException' Should I just ignore that or would be better to add a check on it?
@ipsk That makes sense, as Ints.tryParse returns either the int or null if it couldn't be parsed.
You absolutely should do a null check, however take a loot at my code again. The type should be
Integer
and not
int.
You should also move that - 1 to where the home is actually looked up.
@extendedclip I would highly recommend some slight changes to make the code comply with the DRY principle a bit more, and remove some of these repeating String.valueOf calls.
Hi. I center my MOTDs using spaces and Pinger is, of course, including these spaces as part of the MOTD. I'm wondering if you could add an option to filter out any spaces at the start of each line?
Nvm. HolographicDisplays uses it's own built in "Pinger"
@darbyjack The fix you applied for Statistic expansion for 1.12 on Oct. 5, 2018, 5:32 didn't seem to fix it :(
Here's a copy of an older 1.12 compatible statistic expansion for reference, this older version doesn't seem to be on the ecloud versions section anymore for some reason, I had it still from an old world backup https://www.dropbox.com/s/a37a1cfsge3zjcn/Expansion-Statistic.jar?dl=1
It's weird though I can still parse the statistic placeholders to players but for some reason deluxemenus can't recognise it anymore after a certain statistic expansion update and as a result is the WARN message you see above in deluxemenus
It is not updated for 1.13 materials yet. That fix I implemented for 1.12 was for the playtimes.
{iteminhand:typeid} {iteminmainhand:typeid} are both the same and they both show only the base ID unlike /itemdb command in essentials which shows base:data
For example when I have a jungle plank in my hand, but instead of just "5" I want there to be an option to make it "5:3"
or for grass "2" -> "2:0"
Please add this it is very important for my creative server and will help a lot! All help will be greatly appreciated.
This is a MVdWPlaceholderAPI issue. This is not the right place to report it.
Ah, all good I'm still using the old statistc expansion version for now
please help me the mvdwp github is inactive and i dont know where to fix this problem

It would be very useful if a new placeholder was added that counts all your mob kills
for eg. %statistic_mob_kills%
Updated my environment to Java 11 recently since Java 8 is EOL. Noticed this warning during initialization.
May want to look into a possible replacement for Nashorn engine to keep future compatibility with Java 11+.
[05:08:24] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.9.2
[05:08:24] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[05:08:24] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: ...
tried to use a placeholder of the PlaceholderAPI in Tab of CMIs %server_tps% this placeholder seems not to work
in result the tab shows me the word "%server_tps%"
Placeholder API and the server extansion is installed.
othes like %server_ram_used% work

the latest spigot Version..why?
Alright thanks, I'll look into this shortly.
4af2a1c Update to 2.9.2-DEV and add in more info when t... - darbyjack
%server_tps_5% %server_tps_15% %server_tps_1_colored% %server_tps_5_colored% %server_tps_15_colored%
Gaby …
These are just other varants of %server_tps%
but yes to be complet it it may be Right to list them too.
This fix the check_interval in the config: check_interval is add to the config, but the expansion never get the value in the config, so the interval is always 60 seconds
The curly bracket seems to be repeated. Should "<>" be added?
[PlaceholderAPI/Math-Expansion] New branch created: master
1aa809a Created Math-expansion v1.0.0-SNAPSHOT - Andre601
866956d And like always removes IntelliJ spaces - Andre601
you need to download the server addon use /papi ecloud download server
that is what we did allready...
I have not been able to reproduce this issue (working on 1.13.2)

Can not reproduce. Are you still on 1.13.1?
It's not %server-tps%, it's %server_tps%
well sorry the - came from later Tests..

Yeah, don't know what to tell you, I can't reproduce this.
Well i tested now just PlaceHolderAPI 4.9.2 + Spigot 1.13.2 + Pex 1.23.4
The Result was the same :(

How are you on a version PlaceholderAPI that doesn't exist?
this only works on statz 1.5.1

/plugman list -v
shows the version number written in the plugin.yml
the version is the normal version from spigot
You said 4.9.2... Anyways, like I said, this can't be reproduced.
well 4.9.2... im so stupid it was my error hehe
But there still need to be a reason why the placeholder is not accepted :(
if u scroll above u see the user Gaby-TM also has this problem
so my TestServer and the Servver of oner owner are not alone..
is this an easy file? or should i try to replace it with the placeholderAPI?
Just replace the current one in the expansions folder

That's so weird, I didn't change anything really, but glad it's working.
i just saw the old file (i got im the papi command was 11kb) this one was 8kb..
so there must be a little difference
Alright, good to know. Thanks for being a surprise tester.
Honestly don't even know, maybe the way it was compiled, I just changed a single line of code and that wasn't even in the placeholder class. Anyways, glad it's working.
We will look into it when it becomes an issue. We still work under Java 8 since it seems to be the most popular for MC right now. Thanks.
This regex is looking for something between curly braces that isn't containing curly braces hence the [^ in the regex See here for an explanation of the complete regex
Oh i didn't recognize it as regex, since i usually escape all my non-regex characters.
Added support for latest WorldGuard (7.0.0-SNAPSHOT) as this is the only WorldGuard version to support Bukkit/Spigot 1.13+ and PAPI is considered to support the latest spigot builds.
- Did not change internal version number in pom.
Hey there,
Thanks for this. When you get time can you show a few pictures to show it still works? When it does, I'll push it live. Thanks!
Regards,
Glare
Using "%world_region_name%"
Using option in config for a chat plugin: https://i.imgur.com/LUA8wLI.png
Inside of worldguard region (named "adamo"): https://i.imgur.com/crs6YCx.png
Outside of worldguard region (global): https://i.imgur.com/0cXuGkv.png
PAPI confirming Expansion was registered successfully: https://i.imgur.com/KfgpCCt.png
Maven showing successful compilation: https://i.imgur.com/oOceJcg.png
Console showing no errors on chat event: https://i.imgur.com/QxWsi2y.png
- Fixed item in hand placeholders (item_in_hand/offhand return material instead of displayname)
- Changed item in hand placeholders to support 1.8.8
- Added %player_in_hand_name% and %player_item_in_offhand_name%
tested it in 1.8.8 and 1.12.2 and 1.13.2
jar file http://aboodyy.net/PAPI-Expansion-Player.jar
%askyblock_members_online%
%askyblock_members_max%
%askyblock_team_leader%
%askyblock_has_team%
don't work in the latest version.
So basically whenever I put PlaceholderAPI on my server, it starts spamming the same thing over and over, and it won't let my server start up properly. It goes up to a point then eventually crashes when I try 'plugins' or something through the console.
Im using the latest Paperclip.jar build #426 and the latest PAPI build available on spigot site -> 2.9.2
I have reinstalled the latest PAPI a few times but it never seemed to work.
Log with spam -> https://pastebin.com/MYnSQte5
I woul...
Now correct me if I'm wrong, but it sure looks like those are being generated by ProtocolLib.
I don't see anything that would indicate that these exceptions are caused by PAPI
Could it Ben that they're clashing? I shall see what happens when I run PAPI alone
Think you have the wrong plugin like @Sxtanna said, I see nothing with PAPI here.
getItemInMainHand() doesn't exists in 1.7 and 1.8, so using a check for it.
[PlaceholderAPI/Player-Expansion] New comment on pull request #12: Fix for 1\.7 and 1\.8 compability
#10 Little duplicate from this pull request, but I'm checking for version, and he's not.
Hi, I have a private server with 1.8 spigot. I wanted to have like a /stat command using MyCommand and PlaceHolderAPI. I did /papi ecloud download Statistic but in the command, it shows like normally in the text: %statistic_mine_block% instead of a value. Please let me know if it's for me or everyone and what to do. If you want more information let me know.
Latest version of statistic expansion is for 1.13+
Download v1.7.0
/papi ecloud download Statistic 1.7.0
/papi reload
Thank you for helping me! :)
Hi. I got a private server running 1.8 with PlaceholdersAPI 2.9.2 When I try printing in chat simple placeholders such as %player_ping% or %server_online% (with any expansion) it doesn't print it out like it should do with values. When i try /papi ecloud list, it says "No expansions available." even though I downloaded expansions through /papi ecloud download. When I try doing /papi reload, an error keeps popping into the console: (click here)
If you need m...
This should fix 1.13.2 tab-complete list from showing commands that a player doesn't have permission to use. We could also default it to true and allow people to negate the permission to stop it from showing in tab-complete for people who shouldn't have access to it.
Expansion %player_last_damage% always return 0.0, No matter how damage you dealt.
Expansion Test:

monster health:

Hey
So, my problem is, that the %pinger_motd% doesn't update/just gets the server.properties' motd.
Imagine, you want to have the motd be the motd set by a plugin, for example BedwarsRel, which sets it to something like <status> <players>/<maxplayers> e.g. ready 0/10.
Well, unfortunetely that doesn't work for some reason. (In my case it just returns A Minecraft Server)
Please fix, thanks!
Basically, whenever I use PAPI (latest version, tried from spigot and the dev build) it makes everything go unstable. All the normally working plugins stop working and eventually crash the server. No crash report is generated. And this only happens when I use PAPI.
Server version : Paper version git-Paper-446 (MC: 1.13.2)
PAPI works fine(ish) when run on its own but as soon as I add any other plugin, (PEX specifically) it crashes the server.
Something I see only every time I use PAPI
_...
When running /papi ecloud list installed then the shown expansions have wrong numbers.
The first one has the number 2, the second one number 3 and so on.
Screenshot:

%askyblock_island_size% - output YOUR island size (not the size of the island you are staying on like %askyblock_island_owner% ...)
Example: 150
I'm trying to get a placeholder from PlaceholderAPI on my own plugin and I have the softdepend: [PlaceholderAPI] line in my plugin.yml, but when I try to use PlaceholderAPI I get the following error:
java.lang.NoSuchMethodError: me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(Lorg/bukkit/entity/Player;Ljava/lang/String;)Ljava/lang/String;
at me.checkium.reloadcraft.basics.scoreboard.ReloadScoreboard.initBoard(ReloadScoreboard.java:43) ~[?:?]
at me.checkium.re...
There have been multiple betas of 7.0.0, I'd consider it pretty stable at this point. Any update on this issue?
I would like to reference this issue I posted at enginehub: https://dev.enginehub.org/youtrack/issue/WORLDGUARD-3955
According to them, the issue lays with PlaceholderAPI itself.
Is there still errors? The WG has been updated since then.
Yes, it's the same issue. I tested on a newly installed server with only PlaceholderAPI, QuickBoard, WorldEdit and WorldGuard as plugins. Trying to use the placeholder for the name of the current region in QuickBoard'
s scoreboard results in QuickBoard not being able to reload and giving this error: https://hastebin.com/udanusuduz.md
(The only difference to the first report ist that this time QuickBoard was used instead of CMI for the scoreboard)
https://hastebin.com/ifitixodon.bash
Tried out all the WG placeholders with /papi parse, all of them getting the shown errors.
I've fixed an error discussing on issue #2 . This PR solves NoSuchMethodError arising from WorldEdit, due to changing its implementation for Vector3.
And I tested this in my local server. It seems work very well.
Below is a list for changing point by this PR:
- Version.
1.2.0=>1.3.0 - Name.
Expansion-WorldGuard=>WorldGuard-Expansion - The code.
Regards,
akaregi
If you want to test this, you can download this PR's build at my forked repository!
https://github.com/akaregi/WorldGuard-Expansion/releases/tag/pre-2
I tried this on my main server and can confirm that it works great!
Thanks. Will add it in shortly!
Ty @akaregi. One concern is this does make the expansion compatible with newer versions of WG / WE but does this new method break backwards compatibility? If so I think we should use some abstraction and version checking to provide compatibility with older and current world guard versions. What you think?
There's a repo we can use called a World guard wrapper if we need to.
@extendedclip
Propably no. It seems that WorldEdit only leaves new Vector3 function and doesn't support backwards compatibility. Also, WorldGuard depend on new things of WE. It means we have to use the wrapper or something to support former function.
But I have no idea how to do this, so now I won't support backwards compatibilty(i.e. WE with old "Vector" function). Sorry.
set ur server name in server.properties file its Unknown Server by default
server-name=Unknown Server
I've added compatibility for WorldEdit 6.x and WorldEdit 7.x.
And I tested this code in my server, seems working well.
Regards,
SiroQ
@SiroQ awesome! Ty for the contribution. I'm sure many will appreciate it.
Until we push an update to ecloud, this build can be found here:
http://ci.extendedclip.com/job/WorldGuard-Expansion/5/
I've added missing value that written in here.
And I tested this code in my server, seems working well.
Regards,
SiroQ
Add a has flag placeholder which checks if a flag is present in the players current location.
Hello ! 🗡
Here is the error:
[18:13:06] [Server thread/ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.MCoreFactionsExpansion
[18:13:06] [Server thread/ERROR]: [PlaceholderAPI] com/massivecraft/factions/RelationParticipator
Thanks for fixing it ! :D
TheIntelloBox. :D
By default plugins are loaded later. (post world) This complicates hooking into PlaceholderAPI from other plugins that load directly at startup as PlaceholderAPI isn't available yet at that point.
Besides that I feel like such a library should be available as early as possible as it itself doesn't depend on anything else but lots of other plugins and plugins depending on them might depend on it.
@extendedclip This seems to break a lot of things for me. Using ChatControl-Pro with PAPI expansions and MobArenaExpansion plugin.

Downgrading to dev 58, all is back to normal.
@mibby this might be because the expansions are registered before the plugin is actually loaded, but as far as I can tell this case is checked and then cached for registering when the plugin is actually loaded?
We already have placeholders for total players on the whole network and the online players on one server. It'd be nice if you can add one more placeholder (%bungee_total_<servername>%) to display max. players from given server.
This PR updates the README.md with new links and also adds the following issue templates to make the move from help-chat/PlaceholderAPI complete:
- bug_report.md: Used for general bug reports of PlaceholderAPI.
- feature_request.md: Used for requesting the addition of new placeholders/a plugin to the wiki.
- change_request.md: Used for requesting a change to the wiki.
This ecloud is almost like apt-get in the debian environment, except I cant list what expansions need updating or any way to quickly update them. We are all used to apt-get update && apt-get upgrade
Can I suggest we have /papi ecloud upgrade that will auto download the updates for the modules.
This would be an idea.
At the moment can you update the expansions normally with the same command, that you use, to download the (apt-ge uhm... I mean /papi ecloud download <expansion>).
It's finally up to the maintainer of the wiki (Clip and Glare) to deside, if that's an idea.
I myself give this idea a thumbsup.
Alright, do I need to restart the server after this? An upgrade would be nice to do them all in one go and not need to type them all out.
You just have to reload the plugin after that with /papi reload
Are you referring to %bungee_<server name>%?
Simply means you don't have MCore Factions installed.
Can't reproduce. Please re-open if still happening and provide a server startup log file.
Yes, but %bungee_server% gives me the online player count. I want a extra placeholder like %bungee_total_server% to get the maximum online players the specific server are allowed to join.
Why can't you just use %server_max_players%?
Seems like this issue no longer exists...
Could've been a issue related to a expansion that was installed.
Anyway it works for latest paper spigot for 1.12.2 and 1.13.2, so it seems it was a random bug.
The issue with %server_max_players% is quite obvious in case of a bungee: You only get max players of the server you're on, not of the other ones.
There is a bug with expansion statistic, placeholder %statistic_mine_block%
/papi parse myname %statistic_mine_block%
[23:04:07] [Server thread/WARN]: Unexpected exception while parsing console command "papi parse myname %statistic_mine_block%"
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.9.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
...
I'm no expert in that, but afaik do you have to provide a block through the statistic-placeholder.
For example: %statistic_mine_block:STONE%
apt-get is deprecated use apt instead which is also faster
@LemmoTresto holy crap, had no idea. Been using apt-get for, what 10 years? Haha if I've been using apt-get this entire time can I just move to using apt?
@FrozenBeard yea you can move to apt fine
[PlaceholderAPI/PlaceholderAPI] New comment on issue #56: \[BUG\] %player\_last\_damage% not working
@TNG-China, the placeholder %player_last_damage% show the last amount of damage taken.

case "last_damage":
return String.valueOf(p.getLastDamage(
%statistic_mine_block:STONE% works fine, but I need %statistic_mine_block% to show total count of blocks for user
Exception: The supplied Material does not have a corresponding statistic
Not all blocks have statistic
I have made pull request https://github.com/PlaceholderAPI/Statistics-Expansion/pull/6
Look it please.
You can also consider to remove "bad" materials from mine_block in case of an exception.
:smiley:
I am running Spigot 1.12.2 with PAPI 2.9.2. I am currently using the EssentialsX and Towny expansions without issue. I installed the Statz and AutoRank expansions today in an attempt to use the %statz_mobs_killed_husk% as well as the %autorank_current_rank% placeholders in DeluxeMenus. However, when using these placeholders in DeluxeMenus they did not return anything so I attempted the parse command. When using both of these placeholders in the parse command, they don't return anything othe...
Additional info: I am using AutoRank 4.2.5 (latest stable release for 1.12.2) and Statz 1.5.2 (latest stable release for 1.12.2).
Did you try the names in Uppercase?
Also please provide any errors through https://paste.helpch.at
Changing case does not seem to impact the results. The error that occurs when trying %statz_mobs_killed% is here: https://paste.helpch.at/ajorapejeg.cs
This does not occur when typing %statz_mobs_killed_husk% or any other mob name.
Hi,
When trying use placeholders from the worldguard papi expansion. I'm getting this error: https://pastebin.com/cggqzZzQ
I think placeholderapi needs a more updated expansion for worldguard. As both plugins are using the latest version. So it has to be the expansion itself.
Thanks,
Imortalshard.
Hello,
So my Hub is running (Spigot 1.12.R0.1-SNAPSHOT PlaceholderAPI 2.9.2)
My Survival is running (Spigot 1.13.2-R0.1-SNAPSHOT PlaceholderAPI 2.9.2)
My Creative is running (Spigot 1.12.2-R0.1-SNAPSHOT PlaceholderAPI 2.9.2)
In the hub I am trying to use %pinger_isonline_193.70.81.122:35540%
35540 is my survival server port the server is online and I can play it fine but when I try and use the placeholder it displays "Offline"
but then when I try to ping my 1.12.2 skyblock se...
The above command isn't working in 1.13.2 tried reinstalling the expansion reloading PAPI and still only the name of the placeholder shows not the placeholder itself
[PlaceholderAPI/PlaceholderAPI] New comment on issue #56: \[BUG\] %player\_last\_damage% not working
@iGabyTM Oh, I see, It's the amount of damage taken, not dealt. But i need dealt amount , Any chance add?
Should I create a ticket for this issue? Because this commit is quite breaking in my environment. :(
Na just use the current release until I work this issue out. I have an idea on what I can do to fix the issue which won't break any compatibility with plugins being loaded before or after papi but I need to try it out and see.
I updated some other links in the readme and added additonal badges for the API-version (on clips nexxus-repository), the latest GitHub-release (Which still isn't updated) and the current License.

Suggestion/request to add an essentials placeholder that outputs player AFK reason messages
In essentials you can do the command "/afk (reason)" where reason is the extra arguement(s) that the player types in to explain why they are AFK and have a placeholder that might suit it here "%essentials_afk_reason%"
Referred by essentials dev md678685
https://github.com/EssentialsX/Essentials/issues/2390#issuecomment-456805062
Can you even set custom messages for /afk? When I do it, it just says "player not found".
Closed, but was it fixed?
Months ago. I believe it was you in the Discord I gave the copy to check and you okayed it. If it wasn't you, it was someone else.
Alright, don't think it was me but you helped me out with another expansion yes.
Oh thanx, it came back as 322634313 after trying that. That's right, right?
| Essentials | afk | essentials.afk.message | Allow access to settings an afk message. |
|---|
Ahh I see it now. It just never tells you the message you set when you're AFK. I'll add it in shortly.
9687704 Added AFK reason || closes #9 - darbyjack
It's in, just get the updated expansion from the ecloud and you're good to go.
ow wow thanx heaps that was quick
Ahh I see it now. It just never tells you the message you set when you're AFK. I'll add it in shortly.
and its does tell you the afk reason in chat just as long as it was typed in after /afk, auto-afk won't automatically set the reason the reason must be set everytime if wanting the reason to show
and did u use this? %essentials_afk_reason%
Expansion verison 1.2.1? Can't seem to get it to parse...
Don't forget to add to the list on github and/or spigot
Btw found an error when trying to use the parse on thy self
https://pastebin.com/97NRqWev
@darbyjack
Actually the error returns when the player doesn't have an AFK message set can you plz fix?
I can't use it in deluxe menus that's all
When I try to use the placeholder in deluxe menus I get this
`[19:14:20 WARN]: [DeluxeMenus] Plugin DeluxeMenus v1.10.5 generated an exception while executing task 47793
java.lang.NullPointerException: null
at org.bukkit.ChatColor.translateAlternateColorCodes(ChatColor.java:324) ~[patched_1.13.2.jar:git-Paper-508]
at com.extendedclip.papi.expansion.essentials.EssentialsExpansion.onPlaceholderRequest(EssentialsExpansion.java:177) ~[?:?]
at me.clip.placeholderapi.Pl...
You will need to reboot your server and make sure you have expansion version 1.2.2
Thanx that fixed it, that was quick!
latest version wouldnt download ingame so I go it manually from the site
If you want changes to be made... reads better than If you want changes being made...
Any updates or ideas on how to resolve this?
When I remember correctly does the Statz expansion require you to have the Statz plugin installed.
Other than that can I only guess that it doesn't work with that particular mob, which would be weird tho.
Issue
What is the issue? Describe it like you would tell a friend.
<!-- Please type below this like -->
I'm running the latest jenkins build of PAPI and the latest public release of PlotSquared. I downloaded the PlotSquared placeholders using the command as shown in the documentation. However, the placeholders don't show the data, and when I run /papi after installing the expansion PAPI itself gets disabled and I get an error:
`30.01 20:57:46 [Server] ERROR null
30.01 20:57:46 ...
The latest Plotsquared release had breaking API-changes.
Since the expansion is still using the old API,it breaks.
At the moment can we not fix this issue, since the main maintainer of the expansion (Clip) is busy with real life stuff.
You could however ask the devs of Plotsquared, if they don't want to make a own expansion, which would have some benefits.
Is this issue still a thing or can it be closed?
Notes
This template is for reporting a bug and not for requesting changes to ...
This is an issue with the PlotSquared-expansion which has nothing to do with PlaceholderAPI itself.
Just remove the expansion, or use an older version of PlotSquared to fix this issue.
We can't give an ETA on when the expansion will be updated.
The issue
PlotSquared released an update some time ago, that had API-changes, causing plugins to actually break.
This break also affects the PlotSquared-expansion and causes PlaceholderAPI to throw errors on load, due to it not being able to load the expansion prop...
[PlaceholderAPI/PlaceholderAPI] New comment on issue #56: \[BUG\] %player\_last\_damage% not working
Sorry for the late response.
@iGabyTM Oh, I see, It's the amount of damage taken, not dealt. But i need dealt amount , Any chance add?
This could be possible by checking if the player has done any damage towards an entity.
The question here tho is, if that is doable through an expansion, since as far as I know do we have to listen for an event (PlayerDamageEntityEvent if I remember correctly) which would require us to implement EventListener and such into the expansion.
And there ...
Any updates on this issue @Xendrae ?
This might actually be the case according to the error (NoSuchMethodError)
Why do plugins always have to make breaking API-changes? 🙄
Sorry for the late response.
Does this also happen with your creatîve server (when you use the port of it)?
If no, then my guess is, that the Pinger-placeholder doesn't work with 1.13.2 servers.
But I can't tell why that would be the case.
Also as a little note: I removed the images and changed the provided placeholders, due to showing the IP. (Redacted for security reasons)
Hello and have a nice day dear dev,
Linking the Plotsquared Placeholder via PlaceholderAPI the placeholder %currentplot% is showing Alphabet Spaghetti When standing on Roads and unoccupied Plots.
Example
Leaving the Plot from Player Minecrafter123 to Roads and Free Plots the Placeholder Outputs a very messy
Feedback like „rafter123“ until the Player Enters the next occupied Plot.
Hope you can fix that.
Greetings,
<sub>Sent with <a href="http://githawk.com">GitHawk</a></sub>
Can you please provide more information?
Like what exact placeholder did you use (there is no %currentplot% placeholder.), what version of PlotSquared and PlaceholderAPI and if there are any errors.
Can you please provide more information? ...
@Andre601
Using the latest Versions of both Plugins.
The exact Placeholder is %plotsquared_currentplot_owner%
It seems that the Placeholder is confused with unoccupied Plots / Roads because they have no owner
<sub>Sent with <a href="http://githawk.com">GitHawk</a></sub>
Please read the information in issue #71 about latest version of PlotSquared.
Right now does the expansion not support latest version of PlotSquared, due to API-changes.
If that has changed (or the author(s) of PlotSquared have made an own expansion to use), let me know.
Closed due to no response from author within 3 days.
Closed due to no response from author within 3 days.
This is a suggestion from https://github.com/PlaceholderAPI/PlaceholderAPI/issues/56
Idea would be to add a placeholder to show the last damage a player has given to an entity.
My idea there is to change %player_last_damage% by splitting it up into %player_last_damage_taken% for damage the player took and %player_last_damage_given% (or dealt?) that shows the last damage the player dealt to a entity.
Only issue I see is to (temporary) store the info, since it doesn't seem like the...
[PlaceholderAPI/PlaceholderAPI] New comment on issue #56: \[BUG\] %player\_last\_damage% not working
I moved this now feature request to the Player-expansion repository
https://github.com/PlaceholderAPI/Player-Expansion/issues/13
The problem is obviously ongoing and I was hoping for someone to provide a solution.
As I stated, I had the required plugins installed and I also included the version numbers. I also explained that the issue was systemic with the entirety of statz and autorank expansions, including a pastebin log of what was happening.
The error you provided returned a NoClassDefFoundError which means that PlaceholderAPI couldn't find a required path/option in the statz-plugin.
And there are only two possible options for when that would happen:
- The plugin isn't installed or enabled on the server.
- The plugin had an update, which changed some API stuff, causing the expansion to break.
Your mentioned case is most likely a missing option in the plugin.
Also, you only provided the error for Statz. does the AutoR...
Another suggestion if possible to add Essentials Placeholders showing the x y and z co-ordinates of the nearest player is, with the radius being set to what ever it is set by default in the config by the server owner
Something like this?
%essentials.near_x%
%essentials.near_y%
%essentials.near_z%
The /near command in essentials only shows the players name and radius but not the coordinatess, would you still be able to find a way to make this work by making the placeholder track the n...
or a player placeholder where you can set the radius within the placeholder itself
eg:
%player_near_#(radius set in placeholder)x%
%player_near#(radius set in placeholder)y%
%player_near#(radius set in placeholder)_z%
Notes
This template is for requesting additions for the wiki and not for reporting bugs or requesting changes for the wiki!
Type
What kind o...
Notes
This template is for requesting additions for the wiki and not for reporting bugs or requesting changes for the wiki!
Type
What kind o...
Added the placeholders.
Thanks for supporting PlaceholderAPI.
Added placeholders to the wiki.
Thanks for using PlaceholderAPI.
I hope I'm not annoying you by saying this, but the WorldBorder expansion doesn't need a plugin. Only Spigot/Craftbukkit
For what exactly is this message now?
Do you refer to the "Plugins using PlaceholderAPI" page?
I would prefer it, yes.
I wrote this expansion a while back and never had it added to the wiki page... so here I am.
https://api.extendedclip.com/expansions/disease/
https://github.com/Artitus/PAPI-Expansion-Disease
Type
What kind of change is it? (Multiple selections possible)
<!-- Please select the right one, by changing the [ ] to [x] -->
- [ ] Placeholder(s) changed.
- [x ] New placeholder(s).
- [ ] Plugin no longer supports PlaceholderAPI and/or was deleted.
Plugin
What is the name o...
Also just noticed my java class doesn't match the same method calls as the current example expansion class. Do I need to update my repo and expansion or should it still work?
I added the placeholders.
And to answer your question(s).
It's generally recommended to use the latest functions of PlaceholderAPI since older ones can become deprecated or even get removed in newer versions.
Also in case of latest PlaceholderAPI (2.9.2) is it also possible to use OfflinePlayer which now doesn't require you to have an (online) player for the placeholders (That already was the case before but I hope you know what I mean.)
Also, I recommend to not call your main class...
Notes
This template is for requesting additions for the wiki and not for reporting bugs or requesting changes for the wiki!
If you want changes to be...
Added it to Plugins using PlaceholderAPI.
Thank you for supporting PlaceholderAPI.
Issue
/papi parse cannot find the user "me" or "Wqrld"
Expected behaviour
/papi parse Wqrld %server_tps% should give the server tps
Actual behaviour
"failed to find player wqrld"
How to reproduce
install the latest papi 2.9.2 from spigot on a 1.12.2 server and type
/papi parse Wqrld %server_tps%
[PlaceholderAPI/PlaceholderAPI] New comment on issue #77: parse not working with 2\.9\.2 on 1\.12\.2
Leave and then rejoin, everything should works fine
[PlaceholderAPI/PlaceholderAPI] New comment on issue #77: parse not working with 2\.9\.2 on 1\.12\.2
ah that works, i hope this won't interferr with featherboard but ill check that
Is there way to include DST to %server_time_HH:mm:ss% ?
Scoreboard shows e.g. 21:00:00 but it's 22:00:00 cause of DST (day saving time)
Lastes papi on 1.12.2 spigot server.
The placeholder uses the SimpleDateFormat which can include the time-zone, which can be shown through the letters z, Z or X.
There is to my knowledge no way to actually show the time with(out) an offset, so that is most likely the only way you could do it.
Type
What kind of request is this? (Multiple selections possible)
<!-- Select the right option by replacing [ ] with [x] -->
<!-- For an update of an already listed plugin, use the "Request change" template -->
- [ ] New plugin supporting PlaceholderAPI.
Plugin
What is the name of the plugin/expansion?
Provide also a link to it.
<!-- Please type below this line -->
Quests
https://www.spigotmc.org/resources/quests.3711/
Placeholders/others
What are the n...
Please upload jar in expansion-cloud. Thanks.
Added the plugin to the list.
Also fixed the broken link.
One thing you could maybe do is go to the repository of the Server-expansion and ask there, if it would be possible, to add an option for a time-zone to be used. (Like a config option.
Another option would be to add a general/default option to PlaceholderAPI, to define the default time-zone.
Issue
What is the issue? Describe it like you would tell a friend.
<!-- Pl...
The info you provided seems more like an issue with the specific simpleclans expansion/plugin.
Either the expansion loads before SimpleClans does, which most likely results in it not being loaded due to the missing dependency (SimpleClans) or the plugin loads way to late which causes the same issue.
Can you provide the the latest.log through a page like https://paste.helpch.at or a GitHub-gist please?
so if thats the case... adding simpleclans as a soft dependency of placeholderapi in its plugin.yml should do the trick right?
tbh id have never considered that, thank you.
will try that and get back to you.
that totally worked, thank you for the idea.
guildcraft.org thanks you :)
Notes
This template is for requesting additions for the wiki and not for reporting bugs or requesting changes for the wiki!
If you want changes to be...
I can't seem to find the expansion with either the name Waterfall, nor Travertine
Are you sure the expansion is on the ecloud AND verified?
The expansions don't exist, I'm requesting for them to be made.
You should've read the description of the issue template.
This template is for requesting placeholders/plugins to be added to the wiki and not for asking for placeholders to be made.
Also as far as I'm aware can you simply use the BungeeCord placeholders because after all are Waterfall and Travertine forks of it, that add stuff like support for 1.7 clients and servers.
If it doesn't work, feel free to open a new issue. Just don't use a template then.
Oh sorry, I didn't read it.
Because Waterfall uses a different API than BungeeCord, I'm requesting a new expansion that works for both Waterfall and Travertine. Basically same as the Bungee expansion just with a different API.
Right now you can use PlaceholderAPIPlugin.booleanTrue(); and PlaceholderAPIPlugin.booleanFalse(); which is ok, but a bit annoying if you have something like this:
// Lets assume I did all the stuff for register placeholders and such.
public String onRequest(OfflinePlayer player, String value){
if(value.equalsIgnoreCase("is_afk"))
return api.isAFK(player.getUniqueId()) ? PlaceholderAPIPlugin.booleanTrue() : PlaceholderAPIPlugin.booleanFalse();
}
This is a b...
Other:
- Catch for null and empty string instead of Exception.
[PlaceholderAPI/PlaceholderAPI] New branch created: Andre601\-patch\-1
d4d207f Update PlaceholderAPIPlugin.java - Andre601
This adds getBoolean(boolean bol) which returns booleanTrue or booleanFalse depending on the provided boolean.
This can (and most likely will) improve the use of PlaceholderAPI and the PlaceholderAPIPlugin option to use the values provided in the config, so people don't have to do something like this:
public String onRequest(OfflinePlayer player, String value){
if(value.equalsIgnoreCase("is_online"){
return myPlugin.playerIsOnline(player) ? Placehold...
has to be rotated by 45degree
Notes
This template is for reporting a bug and not for requesting changes to ...
Did you actually installed the server expansion?
i have latest PlaceholderAPI 2.9.2
my server version latest 1.13.2 paperspigot.
issue:
this not a work mysql, i pasted mysql place and http://prntscr.com/mvpic4
this a not my credit. My credit is https://prnt.sc/mvpeag
this my query : query: SELECT uye_kredi FROM uyeler WHERE uye_kadi = '{player}'
my table design : https://prnt.sc/mvpeqs
Type
What kind of request is this? (Multiple selections possible)
<!-- Select the right option by replacing [ ] with [x] -->
<!-- For an update of an already listed plugin, use the "Request change" template -->
- [ ] New expansion providing placeholders.
- [x] New plugin providing placeholders.
- [ ] New plugin supporting PlaceholderAPI.
Plugin
DungeonsXL.
https://www.spigotmc.org/resources/dungeonsxl.9488/
Placeholders/others
What are the new placeholders/Any...
Update:
The dev(s) of PlotSquared made a own expansion for their plugin, which should work with the old and new API of PlotSquared.
Please use the expansion from this repository's readme:
https://github.com/IntellectualSites/PlotSquared-Expansion
There is now a new expansion that you can use.
You can get it from the IntellectualSites/PlotSquared-Expansion repository (from their release page).
According to the readme is this page also backwards compatible with the old API.
There is now a new expansion that you can use.
You can get it from the IntellectualSites/PlotSquared-Expansion repository (from their release page).
According to the readme is this page also backwards compatible with the old API.
There is now a new expansion that you can use.
You can get it from the IntellectualSites/PlotSquared-Expansion repository (from their release page).
According to the readme is this page also backwards compatible with the old API.
Type
What kind of request is this? (Multiple selections possible)
<!-- Select the right option by replacing [ ] with [x] -->
<!-- For an update of an already listed plugin, use the "Request change" template -->
- [ ] New expansion providing placeholders.
- [x] New plugin providing placeholders.
- [ ] New plugin supporting PlaceholderAPI.
Plugin
What is the name of the plugin/expansion?
Provide also a link to it.
<!-- Please type below this line -->
Spigot plugin f...
[PlaceholderAPI/PlaceholderAPI] New comment on issue #89: New placeholders \- Nameless Plugin for v2
Added to the list.
Thanks for supporting PlaceholderAPI.
Type
What kind of request is this? (Multiple selections possible)
<!-- Select the right option by replacing [ ] with [x] -->
<!-- For an update of an already listed plugin, use the "Request change" template -->
- [ ] New expansion providing placeholders.
- [ ] New plugin providing placeholders.
- [x] New plugin supporting PlaceholderAPI.
Plugin
What is the name of the plugin/expansion?
Provide also a link to it.
<!-- Please type below this line -->
Level Hearts
h...
Does the plugin actually have the placeholders, or do you request them?
Because this GitHub-repo is not for requesting placeholders to be added to a plugin, but to request changes to the wiki.
@Karagra As Andre indicated, this is not the place to request expansions and alike.
Such requests should be made at PlaceholderAPI/Expansion-Suggestions.
Additionally, could you include some more information about the placeholders you want added.
An example based on the information the plugin provides via commands etc. could be useful.
(Eg. Might the plugin have a command or commands that displays the data you...
Hello, im having a problem with my plugin. when I reload or restart my server all the placeholders like player and server are unregistered.
Could you provide the latest.log of your server through https:://paste.helpch.at
there I just restarted my server https://paste.helpch.at/kuyanefopi.md
I think it stops working after trying to load WorldGuard expansion
Looks like latest version of it only works in 1.13
So try older version of it
/papi ecloud download WorldGuard 1.0.2
/papi reload
I think it stops working after trying to load WorldGuard expansion
Looks like latest version of it only works in 1.13
So try older version of it
/papi ecloud download WorldGuard 1.0.2
/papi reload
I think it stops working after trying to load WorldGuard expansion
Looks like latest version of it only works in 1.13
So try older version of it
/papi ecloud download WorldGuard 1.0.2
/papi reload
Thanks that worked!
Glad it did :)
Close the issue please
Downloading latest TokenEnchant expansion manually and automatically does not update, it still syas out of date even after reloading papi and/or restarting the server
Issue
What is the issue? Describe it like you would tell a friend.
<!-- Please type below this like -->
papi list installed
returns an unordered list. It would be better if the list were alphabetized.
Preferred behaviour
What should PlaceholderAPI do?
<!-- Please type below this like -->
>papi list installed
[18:59:57 INFO]: 17 Placeholder hooks registered:
[18:59:57 INFO]: [bentobox, combatlogx, coordinatetool, denizen, disease, essentials, level, luckperms, mobhunt...
Hey there,
the expansion isnt updated in the cloud (hope someone does soon) but if u want it, i have compiled it and u can download it from here http://aboodyy.net/PAPI-Expansion-ASkyblock.jar
I think that would be difficult since the expansions get registered in a sudo-random order (Not sure tho) and it just lists them in order of the time they got added to the list...
I'm not sure if the List has a way to sort its content by alphabet.
Oh and the command is only /papi list ;)
You use installed for the ecloud-command (/papi ecloud list installed)
This would be extremely easy to implement. Sorting a Set<String> alphabetically is not difficult in the slightest.
Implements alphabetical sorting functionality as requested in #93.
Has not been tested.
Thanks for thinking about it, Andre601. I prefer the responses by CraftSteamG and Mishyy, though. :)
Spigot 1.13.2 latest
PlaceholderAPI 2.5.2-DEV-60
Issue
What is the issue? Describe it like you would tell a friend.
<!-- Please type below this like -->
List attempt produces error in DEV build 60 (see "Actual behavior"). The same sequence works correctly with release 2.5.2 (see "Expected behavior").
Command sequence:
papi enablecloud
papi ecloud list installed
papi disablecloud
Expected behaviour
What should PlaceholderAPI do?
<!-- Please type below this...
Shit alright I guess I have to fire up the pc and sort this out. My fault for blindly merging without reviewing everything....
[PlaceholderAPI/PlaceholderAPI] New comment on pull request #85: Adding getBoolean\(boolean\) method
Looks good to me but let me sort out another issue before I merge this...
BTW
papi list
works great; list is alphabetized.
%player_direction%
This provides the wrong direction.
I am facing North but the placeholder says East
I can't get the placeholder %player_hasitem-mat:<MATERIAL>-amt:<amount>-data:<data value>% to work, I've tried %player_hasitem-mat:STONE-amt:64-data:0% but that didn't work when I did /papi parse TasmanianNoob %player_hasitem-mat:STONE-amt:64-data:0% (just printed "%player_hasitem-mat:STONE-amt:64-data:0%" in chat) so I tried %player_hasitem-mat:stone-amt:64-data:0% but that also didn't work, other Player placeholders work like %player_name%.
I think it is meant to output yes or no but I...
Has item placeholder isn't a placeholder anymore in player expansion.
Use CheckItem expansion instead https://helpch.at/placeholders#checkitem
Any progress on this issue?
That is honestly a useless PR.
If you really don't want daddy as a subcommand (which is sort of a inside/translation joke), then get the non-daddy version from here: https://github.com/Sauilitired/PlaceholderAPI
I quote
If anyone submits a PR removing the alias,. I guess I will remove it. It was just an inside joke we enjoy on discord so I thought it would be cool to actually add. @mrfloris sorry if this upset you...
From where should that quote be?
But whatever the reason is, this is not really needed.
If you don't like the command, don't use it. Or if you're a dev, make and use your own version. But a PR for just that is basically useless.
When it would have more changes in general then sure, but just for removing this command that didn't bother anyone so far (At least I never saw anyone complaining about its existance).
Also clip said "I guess" which doesn't mean he would clearly remove it.
Sorry, but no. If you make a PR with m...
You can simply remove "daddy" out of the plugin.yml after downloading the jar, no need to fork.
I like how you say that my PR isn't really needed, but this alias isn't really needed as well. It's just inappropriate and uncalled for.
That's literally what I've said.
**I like how you say that my PR isn't really needed, but this alias isn't really needed as well. It's just inappropriate and uncalled for.
Care to explain why daddy is needed?**
Again: This is not a issue here.
So far I didn't see any user that came and directly complained about the alias being there.
In what way is it inappropriate? It is a translation of the word papi which means daddy in Spanish (And also in German btw).
People know that papi is short for PlaceholderAPI, but why not being able to make a simple running gag?
People never complained about PermissionsEx turning into PermissionSex on 1st of april.
This PR was and still is useless since it ...
I would like @extendedclip to review this PR.
If users want to use the alias "daddy" they should open the jar, and add it themselves in the plugin.yml.
I highly doubt anyone uses this alias and it's just useless.
@Andre601 Papi only means daddy in italian, not in german, but that still is irrelevant as this alias is just plain stupid. This abbreviation means daddy in one language out of thousands of languages. Papi is an abbreviation, daddy is not.
Whats ur problem?
i use it
Ure not the plugin's author to decide if its useless or not... Clip added it, whatever is the reason for adding it HE IS THE PLUGINS'S AUTHOR HE MADE THE PLUGIN AND HE CAN ADD WHATEVER HE WANTS.
if u dont want it Andre already told u how to remove and.
Stop opening pull requests for the same thing.
Closing and locking this PR for above reasons.
I told you already that you can submit a PR, if it has significant changes (or fixes bugs or similar).
This one here isn't that case. It is just a PR to remove a alias that you don't like.
If you continue to open such useless PRs then we will block you from doing so.
Also...
@Andre601 Papi only means daddy in italian, not in german, ...

%player_biome% (Requested by Adam)
%player_item_in_offhand_level_<ench>% cuz why not
Fixes #14
and hopefully made the code a little bit cleaner
https://aboodyy.net/PAPI-Expansion-Player.jar
hmmm? https://img.aboodyy.net/19.04.26_01-52.png
i didnt change all of that ;p
This could throw an error, if you only use %player_ping_%
Should probably have a check fro if the string is empty.
Is that one actually required for a OfflinePlayer?
Does it not just act as a normal player when they are online?
Same reason like in other message.
Also why target a different player here?
ok, and cuz its a different placeholder?
OfflinePlayer isnt Player
if u want to use OffilePlayer as online ull have to add .getPlayer after OfflinePlayer
so that makes it easier instead of adding .getPlayer every time
didnt mess with that but okay will fix it
Thanks for your review, all should be good now
Seems good to me.
Any additional stuff @extendedclip @Funny-cube ?
Happy to merge, assuming testing has been carried out to ensure new/old placeholders work?
I myself couldn't test it since I don't have time to compile and check it.
ofc i have tested it,
d95eaaf tested in 1.12.2 and 1.8.8 (i dont remember if i did in 1.13.2)
93c6f1c, 9832152, [cd0a9bc](https://github.com/PlaceholderAPI/Playe...
Added:
%vault_eco_top_balance_#%
%vault_eco_top_balance_fixed_#%
%vault_eco_top_balance_formatted_#%
%vault_eco_top_balance_commas_#%
Requested by Frosty
%vault_eco_top_player_#%
%vault_eco_top_rank%
Requested by Trent
changed IF ELSEs to switch case makes code cleaner imo
tested all eco placeholders and all of them works fine (just in 1.12.2)
compiled version if u want to double check: http://aboodyy.net/PAPI-Expansion-Vault.jar

Would it not be better to also change this to a switch?
these placeholders using startWith() to get the argument from the placeholder and afaik u cant use switch case to check what does string start with
just added options to change tps color in papi config (Requested by Tig)
tested the tps placeholders in 1.12.2 and they work fine
a compiled version if u want to double check https://aboodyy.net/PAPI-Expansion-Server.jar
Notes
This template is for requesting additions for the wiki and not for reporting bugs or requesting changes for the wiki!
If you want changes to be...
Please fill out the template properly.
Especially the Type section since it's not clear what it is now. Is yours a plugin providing the placeholders, or is it a seperate expansion (jar file) that provides those?
My bad, I didn't understand what it was asking for fully, my plugin provides the placeholders within it, there isn't a separate jar just for providing placeholders.
Added your plugin to the List
Thanks for supporting PlaceholderAPI
PlaceholderAPI 2.5.2-DEV-60
Is this a typo? Latest release is 2.9.2, so why is the dev version lower?
Sorry for the late response:
What steps did you do?
Also please use the issue template for bug reports next time ;)
Since there was no response in almost a month will this issue be closed.
If you want to respond, please respond to this issue @Karagra
PlaceholderAPI 2.5.2-DEV-60
Is this a typo? Latest release is 2.9.2, so why is the dev version lower?
Yes, clearly. See UPDATED comments. The issue is with 2.9.2-60. It works fine with 2.9.2-59 (but doesn't sort, of course).
Hey @successed very sorry that I was not notified about this before hand, but yeah, the only reason a query could be blocked from happening is either the player does not exist on the mysql or the config is not setup correctly, could you post a copy of the custom expansion config.yml file?
Ah yeah, you'll need to change the version.
d95eaaf now using a method with try catch for item in hand - aBo0oDyy
93c6f1c added colored_ping placeholder, colors are conf... - aBo0oDyy
9832152 added biom placeholder - aBo0oDyy
cd0a9bc added item_in_offhand_level placeholder - aBo0oDyy
5f04173 fixed direction placeholder and imported Player... - aBo0oDyy
Thank you clip 😁
ill open another PR for the version @Funny-cube
Since the expansion is updated and no answers where given, will we now assume that the issue is resolved.
If it isn't please respond here so that we can reopen it.
So sorry, its me again..
tested the direction placeholder when funnycube make the update like in the cloud and only N, NW, W, SW, S were working cuz it should be - 180 instead of + 180
it working now (for sure)
i really apologize about that, and for opening alot of pull requests for just this update.
http://aboodyy.net/PAPI-Expansion-Player.jar
This is no longer needed as current bungee placeholder works.
Maybe should still add this but not really urgent.
Spigot 1.14 latest (today) or Spigot 1.13.2 final
PlaceholderAPI 2.9.2-DEV-61
>papi enablecloud
[20:50:31 INFO]: [PlaceholderAPI] Fetching available expansion information...
[20:50:31 INFO]: The cloud has been enabled!
[20:50:32 INFO]: [PlaceholderAPI] 125 placeholder expansions are available on the cloud.
>papi ecloud list installed
[20:50:33 INFO]: Showing expansions for: all installed -- amount: 10 page: 1/1
[20:50:33 INFO]: Green = Expansions you have
[20:50:33 INFO]: Gold...
Spigot 1.14 (2225)
PlaceholderAPI 2.9.2-61
On start-up, all PAPI expansions are not loaded. A reload is require to get them all.
>papi list
[09:19:36] [Server thread/INFO]: 6 Placeholder hooks registered:
[09:19:36] [Server thread/INFO]: combatlogx, coordinatetool, disease, essentials, thirst, worldguard
>papi reload
[09:19:37] [Server thread/INFO]: PlaceholderAPI configuration reloaded!
[09:19:37] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: diseas...
8447395 As per request, daddy has been removed. - Funny-cube
😭😭😭😭😭😭😭😭😭😭😭😭😭 WHYYYYYYYYYYYYYYYYYYYYYYY
You happy now you joykiller?!
daddy is nogger, so we need to improve the server performance to disable daddy in tab-complete
🏷
Tried downloading it in game with the usual commands, then using the plugins refresh and reloading commands and after checking it it's still gold and says out of date in the llist no matter what I do, even after restarting still no luck.
I didn't realize a template would be necessary plus I was in a hurry at the time
server-name is no longer a value in server.properties with 1.14 and Server#getServerName has been removed. For now returning an empty string to prevent errors with incompatible plugins attempting to parse a player's server name.
Hm...
Could you try downloading it manually from the ecloud (replace the jar in plugins/PlaceholderAPI/expansions with it), reload and check again?
If it still shows as outdated, then perhaps the version that is listed on the ecloud and the one that is saved in the jar-file itself isn't the same...
Bukkit.getServerName() method is removed in 1.14. Only works under 1.13 with deprecated. Needs to be change to Bukkit.getServer().getName()
not return ""
need to be change to Bukkit.getServer().getName(), https://github.com/PlaceholderAPI/Player-Expansion/commit/c73bf086e1f3160a21e37ede97035c1efb586384#r33377977
This was merged before 1.14 was a thing iirc
and theres already a pull request to fix that
Server Java 11.0.3
Spigot 1.14 (2248)
PlaceholderAPI 2.9.2-DEV-61
Expansion-Player 1.6.5
TabList 4.3
Issue
Player placeholders parse correctly with PAPI, but do not parse with TabList and generate errors (every trigger). Header is not displayed (I don't display footer), only player list. No issues with Spigot 1.13.2 final, otherwise same configuration.
Filed this issue with TabList first. TabList developer says
It seems this is not the TabList problem, because this error ...
There is a PR on the player repo that deals with the issue that %player_server% doesn't work.
https://github.com/PlaceholderAPI/Player-Expansion/pull/18
We have to wait for the fix to be applied :/
and why not using try and catch ? instead of checking the version
Looks like the PR needs some changes before it get merged.
Note that other consumed Player placeholders fail as well
- %player_x%
- %player_y%
- %player_z%
- probably all the others
but that may be due to the %player_server% failure.
Verified that other consumed Player placeholders succeed
- %player_x%
- %player_y%
- %player_z%
- probably all the others (not tested)
when %player_server% is not referenced.
Server#getName only represents the server implementation in 1.14. It would give back "CraftBukkit" every time. Is that what we want?
Server#getName only represents the server implementation.
and why not using try and catch ? instead of checking the version
I'd prefer we check the server version instead of throwing it into a try catch because the exception is only caused now that the method no longer exists. I'd rather check for an expected behavior than throw it into something to just hide it. It's likely there will be more bukkit API changes in the future that will affect some of the other placeholders as wel...
server name was indeed removed from the server.properties in 1.14
Why not just remove the placeholder going forward? No need to maintain backwards compatibility when we have version history on the ecloud.
In a way the placeholder is kind of useless anyways as you can define the server name in place of the placeholder.
I can agree. The %player_server% placeholder is honestly a useless thing. I never really saw any person utilizing the server name in the server.properties since it's such an unknown thing to begin with.
On the ecloud, we should have it so each expansion version has a compatible versions variable along with it. Expansions like the Statistics expansion don't work on all versions. I believe 1.9.1 and 1.9.2 work on 1.13+ only, whereas you need 1.7.0 for 1.12 and below.
So you mean like on the page where you submit the new expansion or the one where you update the version having a new text field or something to say what server versions are supported with this expansion (version)?
This would actually be an interesting idea and perhaps could be implemented in a future version of PlaceholderAPI to warn people about possible incompatibility if you download an expansion.
But this is something the maker of the ecloud @extendedclip and @Funny-cube have to decide ...
Nah we can add a “compatible versions” method in the expansion it’s self and then papi will not load the expansion and send a custom log message if it doesn’t load due to version incompatibility. Would be easy to implement.
Actually it’s already a thing... Check the interface “VersionSpecific” but we could modify it to support multiple versions rather than just one.
I use server-name in a scoreboard and tablets to identify the server which I'm connected. There are other ways to do that, including hard-coding it, but a placeholder is very convenient. I assume that bungee clusters would find it useful as well. Just a vote for retaining a placeholder.
How about a configuration option in papi to define the server name and that placeholder displays the config value specified in the config?
Never heard, nor saw about this VersionSpecific interdace....






