#placeholder-api
150650 messages · Page 24 of 151
And well they are empty whereas when I remove %playerpoints_points% the other lines recover well
With the Kiteboard plugins
@heady falcon
🤔 Have you got error message?
Yes
@heady falcon
java.lang.IncompatibleClassChangeError: Expecting non-static method 'org.black_ixx.playerpoints.PlayerPointsAPI org.black_ixx.playerpoints.PlayerPoints.getAPI()'
at com.extendedclip.papi.expansion.playerpoints.PlayerPointsExpansion.getPoints(PlayerPointsExpansion.java:69) ~[?:?]
at com.extendedclip.papi.expansion.playerpoints.PlayerPointsExpansion.onRequest(PlayerPointsExpansion.java:61) ~[?:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:156) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:69) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:97) ~[?:?]
at net.kitesoftware.board.d.a.a.a(PlaceholderAPI2Hook.java:19) ~[?:?]
at net.kitesoftware.board.d.a.a(PlaceholderManager.java:65) ~[?:?]
at net.kitesoftware.board.c.c.a.a.b(AnimatedComponentWrapper.java:76) ~[?:?]
at net.kitesoftware.board.c.c.<init>(ComponentUpdater.java:27) ~[?:?]
at net.kitesoftware.board.c.b.a(ComponentFactory.java:108) ~[?:?]
at net.kitesoftware.board.c.b.a(ComponentFactory.java:81) ~[?:?]
at net.kitesoftware.board.user.a$1.run(KiteUserImpl.java:68) ~[?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
Ah ok, this is not KiteBoard error, send to developer of PlayerPointsExpansion- it looks like it needs updating
ah it uses the old placeholderapi i assume
Hey! Can somebody help me?
I want to make a ScoreBoard in Minecraft paper/bukkit, with a essentials economy placeholder. I downloaded Vault, EssentialsX and Papi and installed vault (ecloud). The placeholder %vault_eco_balance% does not work in the scoreboard... As scoreboard I use WorldBoard 😉
@winged temple what does /papi parse me %vault_eco_balance% show?
That shows my actually money
I have found nothing better yet... But I'll try something else.
okay thanks, I try it out! 😄
@winged temple I know that this is the world's latest response, but if you ever have issues you can check out titlemanager :P
ive used titlemanager for agess
Oh, this is what I have installed after some other plugins and it's working perfekt! So I had it before but thanks so much again ;)
@winged temple Make sure to have TitleManager 2.3.0 though
2.3.0?
yes
i think i use 2.2.7 or smthing as the others had bugs
However it works, thank u
How do I install placeholder API in Bungeecord?
papi doesnt support bungee
My placeholders in prisonranksX
is broken
and their is no download command tag me if you know what i need to do
Typing the command: /papi ecloud download LuckPerms for example, shows me that it doesn't exist? same with the others I tried, is something wrong? or is it just for me?
I do have a "closed ports" kind of system, unless I manually open 'em, maybe I need to open for downloads to work?
Try papi ecloud download Player Does that one work?
"failed to find an expansion named: Player"
Then yeah, it's probably due to the closed ports
VotingPlugin and few others had trouble with all of my ports being closed, so I just opened the correct ones, but I don't know which ones to open 😄
it shows that there are 0 expansions available on the ecloud lol
hey
IDK if I'm right here..
How can i create a placeholder name %IDENTIFIER_PLAYERNAME_VALUE%?
Someone told me i can't. But is it true?
Create as in for your own plugin?
Yes
Then yes it's possible
Can you tell me how? :D
Lemme get you the wiki link, sec
Then you split your identifier and check for the proper values
Thank you! I think i got my problem :D
Nah i didn't
I registered PlaceholderAPInew PlaceholderAPIExpansion(this, dataProvider).register();
and for example i used
public String onPlaceholderRequest(Player player, @NotNull String params) {
if (params.equals("test")) {
return "true";
}
}
So why it doesn't work?
u can change the text in placeholderapi config
hey guys
hia
yes i did this sir
can you show me?
{placeholderapi_statistic_hours_played}
also i download the ingame command
what?
i cant send screenshot for some reason here
@near wolf,
^
yea
ugh it should have just returned an integer
now only 13
yep it works
ok make sure you have the latest version of FB
and also latest of MVdWPlaceholderAPI
no problem
Hello, can i get player amount without vanished player using PAPI?
I dont have any idea how to get that data
their is currently no placeholder for that at this current time
unless you used a external plugin like PremiumVanish
not from what im aware of
i tried using playerList using perm, but no luck. i can't get it
ah okay then. thank you
Does anyone have an example of a JavaScript placeholder where if the placeholder is empty, it return says...non? I seen an example a few month back, but can't seem to find it again
function main() {
return "%placeholder%" == "" ? "non" : "%placeholder%"
}
main()```
here ya go
Thanks!
Hmm. Doesn't appear to be working
function clanname() {
return "%clantagprovider_clanname%" == "" ? "None" : "%clantagprovider_clanname%"
}
clanname()
/papi parse ShadowChild %clanname% just returns %clanname%
u sure you got the latest version of Javascript?
oh wait
nvm
you're using it wrong
/papi parse me %javascript_JSNAME%
you need to declare it in javascript_placeholders.yml
like this : yaml JSNAME: file: FILENAME.JS
pogger
lagger
ty
Hello... im doing something wrong in Deluxe Menus
i have this
'lobby':
material: BEACON
slot: 22
display_name: 'Lobby'
update: true
lore:
- '&7Online: &a%pinger_players_127.0.0.1:25570%'
and in the game show this
Online: %pinger_players_127.0.0.1:25570%
what I can be doing wrong?
/papi ecloud download pinger
/papi reload
thx you Sellinq is solved
np
@rare lily
and then it gave that error
well thats probably why
...
1.16.4 is barely working with any previous plugins due to the NMS changes
^
I'd recommend going back down to 1.16.3 atm
does PAPI not work with 1.16.4 properly?
how to use boolean IF function in placeholder api?
using the math placeholder, is it possible?
oh
everything seems to work. i am too tired to revert everything back right now, if there's issues then i will revert
it's a private server for only a few people, so it doesn't matter too much
it's only probably putting out that message due to some thing in a plugin i am not using.
its something to do with thiens expansion
how to use boolean IF function in placeholder api?
@thorny nova javascript placeholders most likely. If I got your question right
uhmmm i figured it out it's %math_IF(condition,value_if_true,value_if_false)%
wait what?
my next question is, is it possible to use stiring as value_if_true and value_if_false? Cause i keep getting errors
math has an if condition?
yeah
I'm pretty sure you can't. For this stuff you'll certainly need to use the javascript expansion.
how?
i can return numbers just fine but if I can return string also that would be great
well I mean math = numbers. idk about that.
ok ill wait for someone who's certain
but if you want more advanced stuff, being able to do a lot of things using javascript then this is what you need
interesting, i'll look into it. Tysm
Hmm seems conplicated
What I really want to achieve is for it to return a color code when a placeholder reaches a certain amount for example
%math_IF({money}>1000, &a, &c% {money}
If money if more than 1000 it would return their money with green color and if false it would return it as red.
I mean the javascript would literally be this var money = parseInt("%vault_eco_balance_fixed") if (money > 1000) "&a" else "&c"
tysm it works
you're welcome
does placeholder have any dev builds for 1.16.4 servers ?
tyvm
How to do else if in javascript?
if (something) {
} else if (something else) {
} ```
For example
If (value = 1) "hi"
If (value = 2) "hello"
If (value = 3) "how are you"
Oh ok thanks
or that but for that you're better of using switch
Switch?
switch (value) {
case 1:
"hi"
case 2:
"hello"
case 3:
"how are you"
}```
Value will be place holder right?
ye whatever you want to compare
btw you need to make sure the value is parsed as an integer if you want to compare it with integers
switch (parseInt("%placeholder%")) {
case 1:
"hi"
case 2:
"hello"
case 3:
"how are you"
}```
like this
otherwise use it like this : js switch ("%placeholder%") { case "1": "hi" case "2": "hello" case "3": "how are you" }
Oh ok thanks
uhmmm it seems that it doesn't work
how you using it? may I see
can i dm?
I've closed my DMs I'm afraid. use a pasting service like paste.helpch.at to send the code
hmm and what happens if you do /papi parse me %javascript_switch% ?
how to see?
1.6.0
hmm that's the latest
try doing /papi ecloud download JAVASCRIPT /papi reload
just in case
ok]
also /papi parse me %rankup_money% what does it return?
returns 1000
wait
but you want it to show "getting an upgrade if you have > 1000 or exactly 1000 ?
etc.
hmm
try like this maybe var money = "%rankup_money%" if (money == "1000") "Getting an Upgrade" if (money == "2000") "Sweet Dreams"
just a lot of Ifs
ok thanks again
I found the problem XD and I learn something from this
try like this maybe
var money = "%rankup_money%" if (money == "1000") "Getting an Upgrade" if (money == "2000") "Sweet Dreams"
huh?
= and == is not the same
https://hastebin.com/besekodizo.swift
i should have used(advance == 1)instead of(advance = 1)
anyways thank you so much im learning
=is value assignment and==is comparation
i see XD
works perfectly now
i'll continue using the multiple If's
Again tysm
👍
Hey guys, so I was wondering if papi v 2.10.6 is the only version that will work on 1.8.8?
I think latest should work on anything from 1.7-1.16
I have a weird issue with 2.10.7+ where when I try to add new expansions it just doesn’t work, when I add them and I do /papi ecloud list, the list just gets smaller and the reload doesn’t work and I get a null error in console
Show that error
Go to plugins/Papi/expansions and delete the EzRanksPro expansion then restart
@hushed sinew
=version
._.
oh this needs updated
yep
updating it rn
k
updated. I think a Trusted needs to update it tho.
How can I upload Placeholders into ecloud as Registration page is locked?
How much does it cost to put your plugin on ecloud?
it's free
Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.
it doesn't mean it's paid
you just have to wait for an admin to come here and allow you to create an account
Okay
For the "Statistic" placeholder (/papi ecloud download Statistic) is it possible to get a players specific value of a statistic? I only see "%statistic_mine_block%" for an example and was wondering if I could do something like "%player_statistic_mine_block%" to get the value of a specific player?
you can use the ParseOther expansion
/papi ecloud download ParseOther
/papi reload
%parseother_{playername}_{statistic_mine_block}%
you need to keep the {}
plugins usually have an option to parse the placeholder as a specific player... but ig that works too
/papi parse <player> %placeholder%
yeah
but if you want to parse it in a text and not just using the command, ParseOther is the way to go
Thank you much! I will test it out 🙂
Okay
@quiet hill I recommend you just make the expansion inside your plugin. Its many times better. But if you rly want it to be external then message FunnyCube about it. He'll help you out.
@quiet hill I recommend you just make the expansion inside your plugin. Its many times better. But if you rly want it to be external then message FunnyCube about it. He'll help you out.
@turbid tide I have already did that and get in console: ```[18:01:00 INFO]: [PlaceholderAPI] Successfully registered expansion: admingui
[18:01:00 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[18:01:00 INFO]: No expansions were registered!
if its inside the plugin then it won't be listed there
Make sure to test the placeholders 🙂
so if it works then it should be fine
it only says it registered them if its an external expansion I'm pretty sure.
okay thanks
I mean if anyone will want to use placeholders it will go to https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders and won't find any placeholders.
well even if you put the expansion to the ecloud
the placeholders won't be posted there
you have to put them there. you can open a PR
anybody can look my code? "xl" requirements not work :/ https://hastebin.com/egixexinov.less
so you can't know which placeholders you can use thru plugin?
for example something like /papi available placeholders
I mean you can list the placeholders on your spigot page if you want
but you can also put the placeholders here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders yoruself
manually
Blitz can u see my code?
okay thanks
Technik please move to #general-plugins . thanks
okay
Sorry to bother you guys again! But I can't find the statistic for mob kills? Is there a reason for that or? (/papi ecloud download Statistic)
%statistic_entity_killed_by:<mob>,<mob2>%
Isn't there one for just all mobs? 🙂
nope
you have to list them all in this one
%statistic_entity_killed_by:zombie,skeleton,etc.%
like this
Wait!
This placeholder works for everyone else who has the same problem as me %statistic_mob_kills%. I don't know why it is not listed
No worries 😄 Now you do
I'll add it to the wiki
you're 100% sure it works tho?
bcz I can't test it rn
oh yeah seems to be a thing
It works 100%
ye tested it myself. Got someone to help me. and it works
seems like the expansion ultimatestatistics
doesn't have the getAuthor method or something like that
ok thanks ill go talk to the ustats guys about it
Can anyone tell me why this does not work: [%parseother_{%ph_{player_name}%}_{statistic_player_kills}%]
is there a way around that?
well I assume you could probably use javascript.
but I wonder why this %ph_{player_name}% ?
what does ph_player return?
It's for DeathMessagesPrime, so basically the player that dies
So, I have a plugin where I can edit death messages and I want so after the players name it will show how many kills the player has
but what does that placeholder return?
anyways. You can probably do all that with javascript
%parseother_{javascript_player}_{statistic_player_kills}%
and in your player javascript you'll parse the placeholder
So like how would I set it up
so here you can learn how to set up a js placeholder https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
and I'll make the code for you and send it in a minute
function main() {
var player = "%player_name%"
var newPlayer = "%ph_" + player + "%"
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, newPlayer)
}``` I think this is the code. I'm not 100% sure it will work but it should
wow thanks, will test it out in a bit
Hi, is there any way to use placeholders in command blocks?
Don't think so
anyone can guide me on how to place npc with placeholder so the top player will auto switch npc?
getting this error when players leave the server https://i.imgur.com/E1rboKT.png
seems like the ShieldExpansion doesn't have a getAuthor method
how do I fix it?
you ask the dev of SE to fix it
can command blocks make and modify custom placeholders?
@ me if you're responding
@orchid zenith not possible
Having trouble with my api, keeps disabling my deluxechat and not registering the placeholders, when I remove placeholders and reload the files the same placeholders come up which are deleted and unregistered
think it's my prison core extension, could this be the problem that it could be the cause to breaking all the placeholders?
how to set lower again
in placeholderapi config
bungee:
check_interval: 1
because it's 1 second
I want instantaneous
Needless to say, that isn't going to be possible due to the amount of lag that can cause
On javascript is there anyway to make ```// create a variable and name it wantever you want like this
// and use the placeholder you want, i'm using this one
var haspermission = "%player_has_permission_test%";
// create a function with the name you want
function permission() {
if (haspermission === "True") {
sendCmd "lp user %player% permission set test";
}
}
// by this we are calling the function to run
permission();``` How can I make this make sense on javascript?
Hello, are there any placeholders for Waterfall? (Bungeecords does not work)
Did you try %waterfall_total% ?
Oh I will try, thanks for tip
I can not find any on internet
Can you please send me link?
%bungee_total%
bungeecords placeholders dont work for me
You probabily dont have the expansion on read what they say above #placeholder-api message
make sure you execute the commands the bot specified
Also, Tanguygab can you help me #placeholder-api message
what's the problem?
I am quite sure "sendCmd" is not a variable on js!
Where did that come from?
BukkitServer.dispatchCommand(BukkitPlayer, "cmd")
Where did that come from?
@mint fable My head xD
Ah that makes sense
It was just to explain what I wanted to do
Ic
// and use the placeholder you want, i'm using this one
var haspermission = "%player_has_permission_test%";
// create a function with the name you want
function permission() {
if (haspermission === "True") {
BukkitServer.dispatchCommand(BukkitPlayer, "lp user %player% permission set test");
}
}
// by this we are calling the function to run
permission();``` Is this right now?
should be I guess
Ok, Thank you
Hey I'm having problems downloading the lastest factions placeholder
[15:45:35 ERROR]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] com/massivecraft/factions/RelationParticipator```
No idea why it isn't working
[15:52:40 INFO]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] Placeholder expansion registration initializing...
[15:52:40 INFO]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] Fetching available expansion information...
[15:52:40 INFO]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] Successfully registered expansion: mvdw
[15:52:40 INFO]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] Successfully registered expansion: bungee
[15:52:40 ERROR]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] expansion class MCoreFactionsExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use com/massivecraft/factions/RelationParticipator
[15:52:40 INFO]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] Successfully registered expansion: vault
[15:52:40 INFO]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] Successfully registered expansion: player
[15:52:40 ERROR]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] expansion class MCoreFactionsExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use com/massivecraft/factions/RelationParticipator```
@idle coral or @sharp jay know why?
Damn man, just handing out the pings
Well no one would respond if I didn't sooooo.....
They would, now that you have pinged noone will
Just like the guy above me right? He totally got a response 👍
Well we're volunteers here, so either you get a response or you don't, depends if we have time
And that's why I pinged two people not everybody
And as the stack trace says, it's an issue with MCoreFactionsExpansion as it's using a deprecated hook.
So find the author of the expansion and tell him to update his shit
👍
the one on spigot works but if you want the beta versions then in #general-plugins
there is a pinned
beta build
hmm is autoranks expansion borked again?
PlaceholderAPI makes problems with my MultiChat Plugin:
What problems?
uhm, wanted to post a screen but i have no permission
and there is a problem with links too >.<
Use Imgur
k wait
so the text transfered from one to another server has one space between the nick and the text
when i disable placeholderapi the space is gone
on the same server the text is normal
but when i go to a diffrent server in bungee the other person gets this space before the message
i need both plugins, but that little space makes me crazy xD
hm
silence?
Then edit your chat plugin(s)
there is no way to get off that space, only with disabling placeholderapi
so when i go to multichat discord they would say "talk to the guys of placeholderapi" >.<
[06:15:40 WARN]: [PlaceholderAPI] plotsquared is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
How do i get plotsquared placeholders
How do i get plotsquared placeholders
@toxic harness https://wiki.intellectualsites.com/en/plotsquared/placeholders
I put the placeholders their
and it still doesnt wokr
I followed that and the placeholders are still dead
even did a restart
😦
[06:15:40 WARN]: [PlaceholderAPI] plotsquared is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
@toxic harness you using PlaceholderAPI or PlaceholderHook?
and where do you want to place your plotsquared placeholder?
placeholderapi
it goes in tab scoreboard
BuycraftX, ClearLag, CommandSpy*, ConsoleSpamFix, CoreProtect, CustomJoinMessages*, DiscordSRV, Essentials, EssentialsGeoIP, EssentialsProtect, EssentialsSpawn, (WorldEdit)FastAsyncWorldEdit, HolographicDisplays, IllegalStack, IPWhitelist*, LiteBans, LuckPerms, LuckPermsChat, MinigameMaker, Multiverse-Core, NamelessMC*, OpenInv, PlaceholderAPI, Playtimes*, PlotSquared, PluginManager*, PremiumVanish, ProtocolLib, Spartan, SSX-Connector*, SuperbVote, TAB, TigerReports*, TigerReportsSupports*, UltimateStatistics, Vault, ViaBackwards, ViaRewind, ViaVersion, Votifier, WorldGuard
That is the plugin list
tag me if you have a answer thanks
what's the placeholder for the total advancement completed by a player?
maybe statistic expansion
still searching for help 😦
for ?
send your chat format Ikuria
Hello, I'm searching for BedWarsRel placeholder-api expansion, does anybody know if there is a free plugin for bedwars that support placeholderapi or have an expansion? I have a gui for bedwars and i want arena states like (INGAME, STARTING etc.) Please help me...
Or can anyone develop this expansion?
I'm bad at Java development
is there a 1.16.4 placeholder api?
is there a 1.16.4 placeholder api?
@mint tinsel yes sir https://ci.extendedclip.com/job/PlaceholderAPI/
@upbeat yew https://www.spigotmc.org/resources/bedwars1058-the-most-modern-bedwars-plugin-bungee-auto-scale-bungee-legacy-multiarena-shared.50942/ this was the best out there but seems like rn you can only purchase it using BTC and it won't get updates till February 2021.
Its still one of the best out there tho.
Why can you only get it with BTC lol
Well the paymants are offline. Idk why. Either he just doesn't want to sell plugins that don't get updates or he got banned by PayPal as well just doesn't want to say it
ye but he said he can't afford premium plugins.
oh yea bruv
any free ones I can find are either outdated or no support for PAPI and no placeholders
and seems like the premium ones don't have PAPI support either
there is no placeholderAPI in it
but i still got that problems with multichat
one dumb space between the message and the name
anyone have the link to the updated autorank expansion?
if its updated it will be updated on the ecloud list
🤷♂️ guess it shant be found
ok.
I heard there as a update to autorank expansion?
I found a pull request from DeathRealms, will that update the expansion?
%javascript_{statistic_mine_block:STONE}>=36%
Is that how you use the JS placeholder?
No
Refers to a file doesn't it
Hello i get this error every time PlaceholderAPI starts
[13:05:12 ERROR]: [PlaceholderAPI] expansion class PlaceHolderHook is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use me.foundfile.worlds.Main
I don't think that's enough info
Also, it could be the expansion that needs to be updated
I was wondering why the latest version Autorank expansion is not available on ecloud?
Also Statz, mcMMO and Bungee are in gold when I run list installed
download from ecloud
Cosy you talking to me?
yea]
I got latest Autorank expansion from github, I downloaded it via github desktop and complied it
when you use /papi ecloud download autorank it gives you the 1.1.0 version not 1.1.1
download it manualy
which one? I have the latest Autorank, and Statz but they are in gold
cuz you downloaded it from git
Statz is from ecloud and it is still gold
no I used the commands
oh
I downloaded AR manually
why botherd then ?
if it work, it works right
it's the same thing with bungeecord expansion
cause things say I need to update the it is updated
I discovered Dchat is not working
statz is by you
yes thats why I want things to work right for Statz
it works fine even if it's gold, just papi reload on 1.16 breaks the list feature
aah
Dev of UltraPermissions passed away, his wiki is now gone for some reason. Bought the plugin the day he passed (Didn't know it) and now I am just doing random stuff to set it up.. No clue. Anyways I need to link it with DeluxeChat and thought it needed PAPI but can't find any expansions
%vault_prefix%
(Vault's an API plugin to basically provide a common way of accessing prefixes, economy, and perms, regardless of the plugin that provides each of those. UPerms should support it.)
Hello there! I want to make custom placeholders with skript, (ersatz plugin), but if i download skript expansion with /papi ecloud download Skript, it downloads, but if i type /papi list, it doesn't show skript expansion. (Sorry for my english.)
Well, im using UltimateChat and when i do so, the suffix colors dont show, its just plain White
idk mate https://github.com/FabioZumbi12/UltimateChat/wiki/(8)-PlaceholderAPI-Hook but from their wiki it doesn't seem like they have a PAPI placeholder for chat color.
unless you can use this one %uchat_placeholder_<uchat placeholder name>% - Get any of placeholders from uchat;
yeah i have searched there
well if its not on their wiki believe me its not here either.
their discord server is dead :/
this is PAPI's wiki https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders if its not here and not on their wiki then it either doesn't exist or its not documented.
Is there a way I can work out the KD of players using the math placeholder?
Using %statistic_player_kills% and %statistic_deaths%
you can change the precision from 0 to 1,2,3 etc. depending on how many decimals you want to have
👍
oh 1 second
ugh are you sure that /papi parse me %statistic_player_kills% and /papi parse me %statistic_deaths% work?
and if you do /papi parse me %math_[precision:0]{statistic_player_kills}/{statistic_deaths}%
Says "the provided value was invalid! reason: Division undefined"
Shall I get a kill and see?
try /papi parse me %math_[precision:0]{statistic_player_kills}+1%
do this first
just to make sure its not something else
says 1
then yeah get a kill and maybe a death
yea i got 1 death and its fixed it
So if the person doesnt have a kill or a death its going to display that?
yeah I guess so. I think you'll have to make a javascript to fix it.
hey is this the correct PAPI /papi parse me %objective_score_ts_KillPhantom%
i use it and it doesn't change when i kill a phantom
it showed 0 but after a kill, the /papi parse command still showed 0
is %objective_score_ts_KillPhantom% a correct PAPI?
ok ty
Looks like on PAPI PlaceholderAPI.registerExpansion();
Was removeD?
Anybody know what the new method is?
@Override
public void onEnable(){
// Small check to make sure that PlaceholderAPI is installed
if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null){
new SomeExpansion(this).register();
}
}```
the wiki
❤️
have you tried debugging?
maybe your code has some problems. idk. if you did then please go to #development , give them your class and tell them what the problem is please.
Hello i am trying to get the guild name in front of the display minecraft name. i am trying this format in essentials format: '{%guilds_prefix%} <{DISPLAYNAME}> {MESSAGE}' but it aint working. i enabled it on the guild plugin. can some1 help me?
#spigot-linking please. thanks
hes using ess chat
is guild a pay plugin
ok
but it's not a guild issue, it's a ess chat setup issue
doesn't matter. but ok
we were asked to ask people to link when we see they use premium plugins
I deleted my message, he most likely didn't' see it
dw about it. I just told you so you know for the future
For some reason placeholders arent working i have them installed but they aren't actually working like i cant get my essentials balance to show and i cannot get my luckperms to show up either
Is there any way to parse a placeholder for everyone online your server?
Without specifying each individual username?
I don't think there is a way that's implemented in the plugin
Maybe with JavaScript expansion?
well its definitely possible to make it with java and probably with JS as well but yeah its not implemented directly in the plugin that's what I meant
Oh okay, thanks!
I mean its still going to be a bit more advanced stuff so if you don't know a bit of javascript and spigot api not going to be possible at all.
Question, does anyone know why %player_exp% returns a percentage to next level in the Player Expansion
I am pretty sure that is what it was meant to be. There is no placeholder that just returns xp. There is one for level of you want tho.
Yeah I know that it feels like it should be returning the xp amount but it's what the devs decided it will do
so theres no way to get your exact xp amount? @turbid tide
Is there a working PlotSquared PAPI extension?
afaik the expansion is built in with v5
Doing a parse right now and it isn't working
hi guys
.... [11:26:05 ERROR]: [PlaceholderAPI] expansion class DSRVExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use github/scarsz/discordsrv/dependencies/google/common/collect/ImmutableMap
i did /papi ecloud download dsrv
but its still outdated?\
the author needs to update it
java.lang.NullPointerException: null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:343) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:138) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:605) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.4.jar:git-Purpur-828]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.4.jar:git-Purpur-828]
at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1371) ~[patched_1.16.4.jar:git-Purpur-828]
at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:387) ~[patched_1.16.4.jar:git-Purpur-828]```
I'm trying to download a placeholder expansion, but that error pops up
I'm using 1.16.4
yeh i dont think 1.16.4 is support by some of the expansions
I still wouldnt run 1.16.4 just yet
so theres no way to get your exact xp amount?
@light comet Nope. Not with the default PAPI expansions at least.
Getting a really odd error in console with Towny and PlaceholderAPI: https://hastebin.com/zuginelogu.yaml any ideas?
Hey, this morning after restarting our server, almost every plugin we had gave this error in console, caused the screen to hang, and we had to kill the screen and restart it. (Using Tuinity on 1.16.3)
https://paste.helpch.at/kidehevoci.sql
It looks like others have reported similar errors previously on this discord but I wasn't able to find any answers about it. Any help is appreciated, thanks in advance (tag me if you respond)
Since it seems like the issues are related to deluxechat and townychat as well, we're on PAPI v2.10.9, townychat v0.72, and deluxechat v.1.16.1.
@narrow stump I think you'll need to link first #spigot-linking
Okay, done.
hmm when have you purchased DChat if you don't mind asking?
The plugin isn’t owned by my spigot account; it’s under the server owner’s account
?notowner
Alright, thanks for your time~
hi i have problem, papi not load player extensions, i need do /papi reload and them it work..
Is it possible to create my own placeholder per server? I would like to give each server a unique name, and then display in a prefix from Luckperms. I think I can use Javascript, but is there an easier way?
Yeah, that is the Bungee name, but I'd like a different colorful name.
Spose I could just change the bungee name, but it will likely impact other plugins etc
Was looking for a general solution
Not sure what you mean by bungee name?
%server_name% isn't the bungee name iirc
I thought it was the name set in server.properties
I thought it was set in papi cause we couldn't read that file anymore
The name I have given the server in the Bunge config.. right?.. Wait there is a server name setting in the PAPI config
but could be wrong
which shouldn't affect anything, I've actually never seen it used outside of that singular placeholder
o i didn't know it changed cube
Yeah think it did and broke some shiz
well try that then fetxu
so we changed it to just be hardcoded in the papi config
That didn't work
Yeah, didn't change the %server_name%
did you /papi reload?
Yeah, lemme try again
bungee:
check_interval: 30
player:
ping_color:
medium: '&e'
high: '&a'
low: '&c'
server:
tps_color:
high: '&a'
low: '&c'
medium: '&e'
server_name: TRIED THIS OUT FOR A TEST```
%servername% placeholder
%server_name%, and that looks right to me
if a reload isn't working, try restarting
Returns the name in the Bungee config and LP config
It could be LP is overriding it
Could %otherplayer_hasperm_playername_perm_permstring% have compatibility for offline players?
or the Luckperms placeholder?
Is it possible to have a default value for a placeholder if it's empty? So for example if %rank_name% was empty it would replace it with "No Rank" or "None" or something?
Edit: found the javascript expansion, gonna use that
REPLY hi i have problem, papi not load player extensions, i need do /papi reload and them it work..
already did that
like yesterday
the error above happens when I do /papi reload
not /papi ecloud download
so the jar is definitely there and my server allows connections. it just doesn't load the JAR
@mellow urchin you can always use javascript if that one doesn't work.
Is it possible to have a default value for a placeholder if it's empty? So for example if %rank_name% was empty it would replace it with "No Rank" or "None" or something?
Edit: found the javascript expansion, gonna use that
@frigid prairie there is also the defaultvalue expansion https://api.extendedclip.com/expansions/defaultvalue/ if you want something that does exactly that.
Could
%otherplayer_hasperm_playername_perm_permstring%have compatibility for offline players?
@fair elm the expansion dev needs to add support for the OfflinePlayer. And I'm pretty sure you can't get permissions from OfflinePlayers.
tho I do think you can with LP.
there are no plugins that I know of to let you access permissions of offline players
lp included
oh does it not allow that? I thought you could have accessed it with LP's api
/lp user <name> permission info works fine with offline players
because I know it did not exist in the past as you'd have to make a call to the database every single time
that is not a placeholder fireFerry...
ye he wants to do it with placeholders
yeah, but I was just saying the command can access it but not the placeholder
ya I don't think it'd be possible because you'd have to make a call to the database every time the placeholder is called
which could be many multiple times a second
yep, so unless there is a plugin out there that keeps all that info in memory (most likely not as that would be a waste of resources) it most likely won't be possible
Somebody could maybe add it, but they'd have to limit the amount of database calls it makes so it would only update every so often
yeah
and there's no way I can make it myself xD
like making a placeholder myself to do it?
well not specifically you. he just said it would be possible to do it. its just not worth it I guess.
well I'm pretty much screwed without it xD
welp I'm afraid if you want this to become a thing you'll have to ask a dev to make it for you and most likely no one will do it for free. and as cj said its not rly worth it. It just sounds like a lag machine.
Well I don't want to use it continuously, I want to use it for a system to punish players
i know its going to be something simple i missed but when i change the config server_name it keeps changing back to A Minecraft Server anyone know what ive done wrong
you change it and then do /papi reload and it changes it back?
yep
yep ill try it again tho
im using notpad++ and it says that it was modified by another program and reverts back to default
oh lol. that's weird
could it be a bug not sure if it happened to someone else
I mean its something to do with notepad++. I remember this happened to me as well but don't remember why
i edited it with normal notepad still does the same thing
what server name are you trying to put?
server_name: A Minecraft Server
try this server_name: '&lTest&e&lCloud'
it didnt have the ' around it by default so i didnt know it needed them that might need to be changed so people dont try for 20 min like i did
it works now?
the thing is its not needed
unless you use color codes
I forgot that.
like that's how the plugin generates it
its not put there by anyone else
the ' around the coloured text wasn't there when the plugin generated the file wish it did that by default thanks so much fix the issue
well yes. because by default the text doesn't have color codes. So the code sees the text and generates the line based on that
no problem. glad it works now
i never used this plugin before is so useful saves me alot of work in the long term
yes it does. Its one of the greatest free plugins out there.
also you should look into javascript placeholders. Very useful
if you want to create your own placeholders
is there a link to the info about it somewere?
yep there is a wiki give me 1 min
oh shit I'm in a game of CSGO rn and I forgot
getting the link rn xD
its fine @turbid tide when your free can i dm you about some questions and help with other stuff
I mean why DM? that's why there is this discord server.
but yeah as the name of the expansion says you need to know at least some basic javascript.
okay
w3shools.com helps a lot with that
anyone can help? i have problem, papi not load player extensions at start, i need do /papi reload and them it work..
is there a place holder that i can put my links as?
is there a placeholder that i can put my website and discord links in so i can just type the placeholder for them instead
you could use javascript but I don't think the link will be clickable tho.
but yeah javascript is the only one I think
I mean the code is pretty simple for something like this
var arg = args[0]
switch (arg) {
case "discord":
"Discord-Link-Here"
case "website":
"Website-Link-Here"
case "vote":
"Vote-Link-Here"
case "youtube":
"Youtube-Link-Here"
}```
I think this is all you need
this is a weird one. Never had it happen and never seen it here before: https://paste.helpch.at/xazepiqoni.apache I have PAPI on all my servers (not on proxy of course) and I have the Bungee expansion on all servers(again not on proxy xD). When I try parsing the placeholder from another server I get that error but when I parse it from the server I tried parsing it for it works. I do have to mention I have different versions of PAPI on each server. Can't rly upgrade rn bcz people are online but if its that I just need confirmation. If its not then I need help. xD
I have PAPI-2.10.6-CustomBuild on the one I try to parse the placeholder for and I have latest dev build (111) on the others.
custom build is just 2.10.6 but with small changes made by Gaby for data in files to be saved or something. I think it was fixed in the other versions tho I just forgot to update.
Ok so I updated PAPI - 111 on all servers, Latest bungee on all servers Bunge - 2.0 and my actual bungeecord version is bungeecord-1539 which is the latest one at the moment
I still get the error
so its nothing to do with PAPI version
Well I mean seems someone forgot to register the plugin channel or shit breaking before that's done
well I mean I assume people have tested the latest build already and doesn't seem like someone reported it before
and I don't get any other errors on server startup or anything like that. Fully restarted my servers and my bungee
Well I mean might just be the expansion cucked?
huh I guess. But 2.0 has been out for a while as well.
Bully cube for source if it ain't os and fix it 
Great time to learn
ye
when my time is limited as shit.
I have more time to learn
because that's how life works 😦
and also I don't even know if its bungee expansion since that has been out since may I think
oh wait
it spams me every 3 seconds
as well
since I update the bungee expansion every 3 second
(config.yml option)
yoooo are you fucking kidding me?
whever updated the expansion got me good
they fucking changed the jar name from expansion-bungee to expansion-Bungee
and I had 2 expansions in the expansion folder
the old one that I had before updating to 2.0
and the 2.0
one#
try seeing if the dev builds fixes it.
@warm topaz nope, still have this error 😦 https://pastebin.com/k0stPjbD
Hi. I'd like to add a placeholder to PAPI. How would I go about doing that?
hi
eh
is this the place to get help about "title manager"? i jsut clicked "get support" on the plugin page
i mean ig we help with any plugin but you need to go to #general-plugins
Have you downloaded the expansions accordingly?
Which placeholders are you having issue with
i reaD the plugin page and saw nothin about it. let me search again
I am having issue with "%combatlogx_status%"
every time someone attacks someone, the scoreboard will disappear
Can I get %math% function without the zeros like I have: "Players online: %math_{server__online__world1}+{server__online__world2}%" will throw this: Players online: 0.000 | Can somebody help me please with that? I want to get players from more than 4 worlds etc. and I want to have it in One number, but without the dot and 3 zeros...
[precison:0] iirc
huh
oh
so what about the scoreboard getting suddenly hidden for both players that are in combat
Hi. I'd like to add a placeholder to PAPI. How would I go about doing that?
@manic thicket https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#without-an-external-plugin
Sounds like combatlogx end if it’s disappearing upon combat
yes but then the scoreboard doesn't come back. i also use Place holders API
I'll check console for Info
nothing
Still sounds like combatlogx end placeholderapi wouldn’t / shouldn’t make your scoreboard disappear it’s probably the way combatlogx does it’s placeholders not really sure as never really used it myself
Idk which plugin causes it. because it's 3 plugins that makes it possible.
place holders API
title manager
combatlog X
I'll check. maybe ill make a post on the forums if it won't work
Just to inform you there is a specific support discord for combatlogx
I can message you it if you’d like
Hello, can I get %math% function without the zeros like I have: "Players online: %math_{serveronlineworld1}+{serveronlineworld2}%" will throw this: Players online: 0.000 | Can somebody help me please with that? I want to get players from more than 4 worlds etc. and I want to have it in One number, but without the dot and 3 zeros...
It's possible to change the plugin Inside please?
(expansion)
no need to change the plugin inside. Sellinq told you to use precision
%math_[precision:0]{serveronlineworld1}+{serveronlineworld2}%
like this ^
Oh sorry, I thought it was for another person
just add this block inside the placeholder [precision:0]
no worries.
but yeah no need to change the plugin
Okay, I will try it
there's a function inisde the placeholder already
Yeah, it's working, thank you very much!
👍
how exactly does the scoreboard objective placeholder work. I cant seem to parse the scores of a certain objective
hi i have downloaded mysql expansion how i start
which datas i must set in the config to connect to database
Is there a plcaeholder for unique player joins?
You're amazing 🙂
👍
probably in the config?
i have in there premade things
can i delete all and make a new one ?
money:
host: localhost
port: '3306'
database: minecraft
username: root
password: password
query: SELECT name FROM bedwars WHERE wins = 3
i have make this example
but when in game use placeholder %mysql_money%
it does nothing
money is only a example later i will make a toplist
@dense trail Novice
@mental night xoxoxoxoxoxo
Help Chat 😄
try to limit the result to 1 value @astral solstice
SELECT name FROM `bedwars` LIMIT 1 WHERE wins = 3```
@turbid tide thanks for the help on the custom placeholders i used the basic one as i was confused by the example you gave it works well tho 🙂
@hardy sage,
What's the placeholder API to grab a vanilla team colour? I found the list on the wiki very confusing
Found it
hello the placeholder for Autorank doesnt seem to be working
Failed to Register Expansion from Expansion-autorank.jar
and also from DiscordSRV.jar
Placeholders not working on my scoreboard, it just shows up %autorank_total_time_of_player%
@silent basin which scoreboard are you using?
when i do /papi reload it says : No expansions were registered
Like these people, my autorank placeholder isn't working for my scoreboard. Even with the ecloud downloading command, it will not register. I've also physically placed the JAR into the folder and it still didnt work
Ye the autorank expansion is broken. They use an old method. I remember there being an updated one but I can't find a link
deathrealms github
he has a fork for it and i believe a release tag in his fork repo
@terse sapphire discordsrv expansion will also need updating by the developer
oh yeah here ya go https://github.com/DeathRealms/AutoRank-Expansion
thank you 🙂 appreciate it
@mossy helm can u try the papi dev build please. there was issues similar with the time so it might fix it. also make sure ur on latest statistic expansion
https://ci.extendedclip.com <- dev builds
latest dev means build 111?
wait so like the placeholder is saying 1 hour for example while the mc statistics are saying 3 hours? (just example)
wierd

not sure tbh
I'm telling you I trust the statistic expansion more than the LPR plugin
Hello. I'm having some trouble understanding this example: https://github.com/PlaceholderAPI/Example-Expansion/blob/master/src/main/java/com/extendedclip/expansions/example/ExampleExpansion.java
Do I need to have that class inside the source-code of my plugin or does it have to be in a separate JAR File? If it has to be separate, do I also make another class that extends JavaPlugin in there?
No, you don't need to extend that if it is separate
However, add spigot dependency if you want separate
Hello I need help with LocalTime PlaceholderAPI. I am in Europe/Bratislava and we have 13:16 . I added this placeholder %localtime_timezone_440,dd.MM HH:mm:ss% but it is showing one hour less (12:16) Some ideas how to fix?
It uses the servers timezone
it shouldn't tho
since he uses a custom timezone
I'm pretty sure the placeholder is broken
I've had the same problem
"localtime tomezone" :what:
any timezone I'd use it'd just show my timezone
Do y'll just suck at naming shit then?
aboody is at fault I think
well actually nvm
I think I recommended the name xD
but yeah you can use localtime as in server time
or you can specify a timezone
but its broken
%vault_eco_top_player_1%
have you installed the expansion ?
do /baltop
and send screenshot
%vault_eco_top_balance_formatted_1%
try this
weird
%vault_eco_top_balance_commas_1%
I have this and it works fine
what 0
what are you trying to return
the number or the player
%vault_eco_balance%
what doen this return
does it return pog ...
%vault_eco_top_balance_1%
any console messages ?
reload your whole server
maybe it doesnt work for 1 person
try a alt
on the same server
Hello i have problem, when im using %statistic_mine_block% or other placeholders, when im example break the block, it will not add 1 but 2, do someone know how to fix it?
I have a /statsof (player) command using the ParseOther placeholder to basically show the stats of the specified player. However, the ParseOther placeholder doesn't work when the player is offline. Is there a way around this?
Hello i have problem, when im using %statistic_mine_block% or other placeholders, when im example break the block, it will not add 1 but 2, do someone know how to fix it?
@indigo anchor the %statistic_jump% for example works fine, idk why
Hi! Im looking for support w one placeholder
My idea is to show a message in case that one server is offline, and if online to Tp.
Tried using %pinger_isonline_(my server ip)%
And MyCMD script is $Script$%if%$pinger_gameversion_testplugins.com:25565=="Online"
But isnt working.. Any other idea?
I need help with Math placeholder please, how to make it automatically update? When players join some worlds, the number still showing 0, but when I add this placeholder manually, It will show 3 players...
Bcs, there are 3 players in the world...
Updating placeholders is the responisiblity of wherever you've put the placeholder
But I don't want to update it manually
There is not an interval in config :/
Can someone help me please with the Math expansion? It doesn't update automatically, and there is no interval in config 😦
hello, so i want use heads on my gui .. in my gui the heads skin does not appear im using plugin EpicHeads
this my configs
https://paste.helpch.at/ofogoratiy.bash
any solution?
Hey, during my automatic server restart, I got this error and it caused the server to crash:
[16:11:41] [Server thread/INFO]: [TAB] Disabling TAB v2.8.2
[16:11:41] [Server thread/INFO]: [TAB] Failed to disable [16:11:41] [Server thread/INFO]: java.lang.NoSuchMethodError: me.clip.placeholderapi.PlaceholderAPI.unregisterExpansion(Lme/clip/placeholderapi/expansion/PlaceholderExpansion;)Z
[16:11:41] [Server thread/INFO]: at me.neznamy.tab.platforms.bukkit.features.TabExpansion.unload(TabExpansion.java:22)
[16:11:41] [Server thread/INFO]: at me.neznamy.tab.shared.Shared.lambda$2(Shared.java:123) [16:11:41] [Server thread/INFO]: at java.util.ArrayList.forEach(ArrayList.java:1259)
[16:11:41] [Server thread/INFO]: at me.neznamy.tab.shared.Shared.unload(Shared.java:123) [16:11:41] [Server thread/INFO]: at me.neznamy.tab.platforms.bukkit.Main.onDisable(Main.java:142) [16:11:41] [Server thread/INFO]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:323) [16:11:41] [Server thread/INFO]: at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:360) [16:11:41] [Server thread/INFO]: at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:427) [16:11:41] [Server thread/INFO]: at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:420) [16:11:41] [Server thread/INFO]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.disablePlugins(CraftServer.java:338) [16:11:41] [Server thread/INFO]: at net.minecraft.server.v1_8_R3.MinecraftServer.stop(MinecraftServer.java:456) [16:11:41] [Server thread/INFO]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:652) [16:11:41] [Server thread/INFO]: at java.lang.Thread.run(Thread.java:748)`
@covert sable,
Hi lol
I’m just curious how and if the bot will reply to this
“i dont know what PlaceholderAPI is”
Hello i have problem, when im using %statistic_mine_block% or other placeholders, when im example break the block, it will not add 1 but 2, do someone know how to fix it?
the %statistic_jump% for example works fine, idk why
use the latest version of the Statistic expansion and latest dev of PAPI
@turbid tide still doesnt work, i downloaded manually statistic expansion and the newest jar from github
@indigo anchor,
Sorry for ping.
ugh I think that's just the releases
not the dev builds
might be wrong tho
yeah
its just the release
download the dev build
1.16.3