#placeholder-api
1 messages · Page 173 of 1
ok so what should i do to fix this
ugh. make leaderboards just from placeholders that return numbers
but i want to let the placeholder to link to my plugin , so it can get the information of kills and wins and show it in the leaderboard
well then use valid placeholders.
ok
what placeholder are you using to make the leaderboard from?
PlaceholderAPI
placeholder. not plugin.
u mean this ? %thebridge_totalKills%
yeah
have you tried parsing it?
/papi parse me %thebridge_totalKills% to see what it returns?
well there's the problem. you can't make a leaderboard from a placeholder that doesn't work
ok tysm
what hologram plugin?
HD does not support PlaceholderAPI. If you want to use placeholders in HD you will need to install ProtocolLib and HolographicPlaceholders.
How can I register Expansion cloud account to upload my expansion? It says "Registration is currently locked."
@balmy marten ^
ive tried looking for a placeholder that will show which world a user in in currently, for example resource world or regular overworld but couldnt find any, does this not exist or am i just blind?
%player_world%?
tried that
nvm i got it working, thank you @austere hawk for tryna help me i appreciate it ^-^
dm me a username and email address and i'll create it
Which is the latest javascript expansion jar to support java8? javascript 1.6.0?
or the one from #852317810394267708
WorldGuard PAPI expansion doesn't work
parsing any placeholders outputs empty line (or nothing)
I cant dm you
Please respect the rules, be patient and don't ping staff members!
You'd need to accept my friend request
hello is there a way to make progress bar that uses other placeholder as max value?
this is my current setup
At com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:63)
I'm not pro either but try updating ths expansion perhaps?
I have removed two expansions (server, bungee) that were in expansions and wohoo, the error is gone ❤️
hello! so i have this in my custom JS placeholder:
function getRank(){
if('%ultraprison_prestige%' === 'P0') return `&7[%ultraprison_rank%&7}`;
return `&7[%ultraprison_prestige%&7}`;
}
getRank();
``` but it doesnt work
i have registered it as such:
prestiege_or_mine:
file: prestiege_ranks.js
both of those files are in /plugins/PlaceholderAPI/javascripts/javascript_placeholders.yml
hm, the command /jsexpansion doesnt seem to do anything, even though i have installed the javascript addon, and have done /papi reload
i am on java 16 though, might that affect the JS engine?
Ok. So I'll need couple things from you:
a /papi dump - execute the command and send the generated link
a startup log - the bot will show you in a second where you can find it
the placeholder you use. do you use it as %javascript_prestige_or_mine%? or how do you use it?
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
this is where you find the startup log ^^^
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
this is where you put it ^^^
ah, i did not pu the javascript_ in front of it
i'll try that
yeah.
you didn't execute /papi reload after downloading it.
i have, and i have even restarted the server
oh. so it looks like one of your expansions breaks and it breaks PlaceholderAPI's registration completely.
could be the MineResetLite expansion by the looks of it.
try deleting it and then doing /papi reload
you can find the expansion in plugins/PlaceholderAPI/expansions/ and it is named PAPI-MineResetLite.jar
well it works now, but the placeholder doesnt work, thats another thing, but try i'll figure that out
do i need to do something special in the JS to parse a placeholder?
actually no this is strange, its not supposed to return an empty string, ever
that means you're not using the correct placeholder or the one you're using is not registered at all
How does PAPI parse placeholders?
I know (at least, I think I know) that it isn't done with packets
why would it be done with packets?
I'm just wondering how papi parses them
Some plugins do their own implementations of placeholders using packets
Please respect the rules, be patient and don't ping staff members!
help
Im using papi with holographic displays, apparently it's compatible. How do I get it to work bc this doesn't?
After upload, how can i get my expansion be verified?
What place holder for money? pls
what money plugin are you using
np
is it possible to make a js placeholder that gets value from plugins api (any plugin)
Hey - there is an invalid (though official) extension for plugin called AParkour on PAPI eCloud.
The main author is inactive and the extension on PAPI ecloud breaks the plugin placeholders which are added by the plugin itself anyway.
refs;
- non-official repo fork issue; https://github.com/AerWyn81/AParkour/issues/2
- extension: https://api.extendedclip.com/expansions/aparkour/
- official repo: https://github.com/DavidML16/AParkour
Placeholders are registered by the plugin itself in the main source too (not just the unofficial fork);
I think that the extension on eCloud should be removed / disabled or at least a notice should be put into the description mentioning this issue.
yes
@balmy marten
No, but if you know java it wouldn't be hard.
Can't do it for you, I'm busy with my own stuff.
javascript*
Hello, I'm getting errors with deluxemenus. Does anyone know how to fix?
java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.put(String, Object)" because "com.extendedclip.deluxemenus.requirement.JavascriptRequirement.engine" is null```
Looks like you are running Java 16 without a dev build of DeluxeMenus, you can download the latest from https://ci.extendedclip.com/job/DeluxeMenus/lastSuccessfulBuild/
Aight Bot I'll try
what is the placeholder to show players online from 2 spigot servers?
Hello !
Do you know of an addon that allows you to have a placeholder that indicates the MSPT?
Hi how to add in deluxemenu placeholders?
i do %playername_name% or other but it works i mayby write {playernick_nick} ?
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
not directly within the Server expansion but in a fork, and there's a direct download link
Hey,
Is there a way to display the First Login in, last seen and "prefix" on the offline player code? It displays the correct info when player is online, but goes away when player logs off.
Is there a fix for that?
offline_players:
- '&7 -------------[ &6&l%offlineplayer%&7 ]------------'
- '&aStartede på serveren den: &7%player_first_join_date%'
- '&aSpilletid: &7%offlinetime%'
- '&aAntal gange logget på: &7%offlinetimesjoined%'
- '&a%offlineplayer% var sidst online den: &7%player_last_played%'
other_players: - '&7 -------------[ &6&l%playtime_player%&7 ]------------'
- '&aStartede på serveren den: &7%player_first_join_date%'
- '&a%playtime_player%s rank er %powerranks_prefix%'
- '&aSpilletid: &7%playtime_time%'
- '&aAntal gange logget på: &7%playtime_timesjoined%'
I get this whenever I start my server and it mentions PlaceholderAPI https://sourceb.in/EI6ZbKhDfG
is there a plugin that [item] and it will show the item in hand?
Not sure if this is possible with the new check item update, but I'm trying to use placeholders in placeholders with checkitem (like enchantments:SPARNESS={math_{server_online}+1}%)
that won't be possible, no
but if you want to go that in depth you could always try using javascript to help you out to parse those extra placeholders
aww that is really unfortunate, if that was possible then automatic deluxe menu shops would be possible
yeah I can try that too
it might be just as simple as
var a = %server_online%
var b = "%math_"..a.."+1%"
might be outdated tho as well, but I'd give it a try
hopefully works with the type of shop I want to make
Top 3 most powerful placeholder expansions
Math
Javascript
Checkitem
Only slightly biased
true lol
my thought for the checkitem/math shop is that it would check the level of sharpness your item in hand has, then multiply the coin requirement by 10, and then on click it removes your item in hand and adds the same item you add with current sharpness + 1
Complete automation, less effort to make a huge shop
Yep very nice
I've seen so many good shops come out of checkitem
shops, custom recipes, whatever
@mint fable can you link me to the checkitem repo?
@mint fable why dont you cache the itemwrappers?
Map<String, ItemWrapper> where the key is the params you get onRequest
Hi, i'm using a paper 1.17.1 and tcpshield anti ddos but using Player expansion and the %player_ping% placeholder i have internal error , can this be fixed by the expansion's developer ?
what is the error?
u might have to update the expansion
update the player expansion. you are probably using an older one
i already did papi ecloud update all and the error is still there, i think this is because tcpshield ip method masking ip... i'm not having any issue on my "normal" server without tcpshield
what is the error?
delete the player expansion from plugins/PlaceholderAPI and do /papi ecloud download Player
i will send the exact error please wait
what dkim said ^
go to plugins/PlaceholderAPI/expansions and you will probably find 2 or more Player expansions
this is the error https://pastebin.com/0QaFZJeu
delete them all and reinstall using /papi ecloud download Player then /papi reload
oki
Expansion-player.jar and Expansion-Player.jar
these are both in your expansions folder
👍
i noticed that doing papi ecloud update all creates some doubles
capped and not capped
i fixed looking in the timestamp
and deletoing older
yeah. so what happens is sometimes newer versions change the expansion name. in the player case it changed from Expansion-player to Expansion-Player.
not a lot we can really do about that I'm afraid
%player_total_exp% in player expansion has a bug. It doesn't update it's value when using levels in anvil or enchanting table for example.
d;spigot Player#getTotalExperience
int getTotalExperience()```
Gets the players total experience points.
This refers to the total amount of experience the player has collected over time and is not currently displayed to the client.
Current total experience points
i'd assume this is the code that %player_total_exp% uses
it is
if you want to get the actual exp, you have 2 options %player_levels% for the exp levels or if you want the points then the javascript expansion
here's the tutorial on how to set it up
I used this javascript expansion but it caused massive memory leaks and lag spikes.
It starts eating RAM like crazy when refreshing this javacript placeholder with TAB plugin.
Maybe it's a problem with javascript expansion and devs can take a look?
CPU usage comparison with %player_total_exp% - https://prnt.sc/1tl1mba
I can refresh placeholder less frequent but it still pretty heavy.
yeah. I believe it is known why but yugi has no time to fix it at the moment
At least %player_total_exp% works pretty well just need to use commands like /exp take <player> 0 to trigger refresh so it report correct value.
well. it reports the correct value already. it just is not meant to show what you need
Is there reason why placeholder like %player_current_exp% doesn't exist in player expansion?
Oh. that was added like 2 years ago apparently. Didn't even know.
lol
It was added to wiki this June. That's why we didn't know. 😄
Anyone familiar with making a relational placeholder via the papi API? I tried creating a placeholder that turns green if same team and red otherwise, but instead if just prints the placeholder string and doesnt parse. resolved
make sure you are using /papi parse**rel** <player1> <player2> %placeholder%
or if you're using it in a plugin, make sure that plugin actually parses relational placeholders (if it's your own, use PlaceholderAPI.setRelationalPlaceholders(p1,p2,string))
i figured it out I’m just dumb.
How can I get item enchantments in a player main hand
Is there a placeholder for this
well. there is this %player_item_in_hand_level_<enchantment>% but you would have to type in a placeholder for every enchantment. you will probably have to work with a custom javascript placeholder.
Ok do you know how to do that
probably
you i got an error when i tried to use %statistic_sprint_one_cm% saying i should check some link and i tried going to that link and it is giving me a 404 page
what error?
it telling me to head to this https://helpch.at/docs/1.17.1/org/bukkit/Stastistics.html
or the walked one cm
not sprint
ok. it was meant to send you here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
that's strange tho.
sprint_one_cm is a valid statistic
i meant to use %statistic_walk_one_cm%
and it gave me that error
oh nvm
i typed it wrong
i typed walked instead of walk
oh. alright.
yeah. opened an issue about the wrong link tho. hopefully someone else besides me will see it and fix it.
cool
I have no idea how to use the Math extensions please help, I wanna check the balance of a player and half it so like I know it would be %vault_eco_balance% and the somewhere /2 to imply dividing by 2 thus halfing it, but idfk where %math_<expression>% comes into play
%math_{vault_eco_balance}/2%
bruhhh it seems so simple xD
I got so close, I did %math{vault_eco_balance/2}%xD
if you want to round the output, use %math_#_.... where # is the number of 0s
close :D
ty for help
but the {} is only for the placeholder
ah
wait hold on a sec
so vault works, that's one thing I need, but now I have another plugin
the placeholder is %banksystem_total% and it does output a number, in my case it's 3,500.00 but when I do %math_{banksystem_total}/2% it fails
is it because of the ,
yeah
fk
maybe the plugin has another placeholder that doesn't have the ,
or you could ask the dev to make one
or maybe the formatter expansion could help
mayben not
exactly the opposite ;-;
oh wait
I've had to recompile the plugin I am using right now, to fix the Interest issue, so I could just remove the commas in the plugin and use that for players placeholders
%formatter_number_format_en_US:#.##_{banksystem_total}%
hm
/papi parse me %placeholder%
still outputs a seizure
I did
/papi parse me %formatter_number_format_en_US:#.##_{banksystem_total}%
still a , ?
no it shows me the placeholder back
oh
yes I ecloud downloaded it
ye
does it show Formatter in /papi list ?
yep
wait, which placeholder did you mean?
the formatter or the banksystem one?
it shows me this back
the entire?
ye
/papi parse me %banksystem_total%
doing that displays a formatted version
cause the plugin auto formats
/papi parse me %formatter_number_format_en-US:#.##_{banksystem_total}%
forgot to read entirely
it's a - instead of a _ in en-US
still shows the whole placeholder back at me
o
the plugin has an auto formatter, so could it be cause it's trying to double format?
so this works %formatter_number_format_en-US:#,##_1234567%
but this doesn't? %formatter_number_format_en-US:#,##_{banksystem_total}%
it might actually be the , breaking it again 🥲
ye
I can remove it
and use the Formatted placeholder for player convinence and use the real one for the math
yeah
other possibility is making a JS placeholder with the JavaScript expansion and replacing the , with an empty string but if you can do it directly by changing the source of the banksystem plugin then it may be better yeah
works now
👍
ok another issue, when dividing by 2 it adds a 3rd decimal point for no reason, how do I round off to 2 decimal points? I tried doing console /papi parse me %math_##_{banksystem_pocket}/2% but it didn't work
wait I got it ```console
/papi parse me %math_2:_{banksystem_pocket}/2%
<chat=dee19b19-003e-3433-bac6-9d86aa8f2f17>
anyone can tell me which placeholders should I download this ?
hm?
Please respect the rules, be patient and don't ping staff members!
no idea, sorry
this message is coming from skyblock server
and I m at lobby server
inside the skyblock server there is no any issue
and that number is deluxtags
Anyone know why /papi ecloud download McMMO isn't registering an extension?
https://paste.helpch.at/kegaqebeci.sql
I installed it manually as well
seems like the expansion is broken. it has no author set.
nah. it is the expansion that is broken
Ah I see
blitz can you please help me with this ?
ugh. don't see what your uuid has to do with placeholderapi?
is that uuid ?
I assume a chat uuid.
probably from your chat plugin. And by the looks of it you use venture chat?
skyblock server have deluxtags
in skyblock people can see the tags
but from another server people can see chat=
ye its venturechat
wait. so usually there would be a tag instead of the chat=.... ?
how does your chat look like on skyblock
in skyblock its show tags
Is there someone I can notify of this?
maybe open an issue on the expansion's github page? https://github.com/electronicboy/mcmmo-placeholders/issues
skyblock chat preview
ugh. well. I can tell you that chat=.... does not show because of deluxetags. the tag doesn't show on the other server probably because venture doesn't parse placeholders between bungee or something.
can you send a message on skyblock and send a screenshot from both servers?
of the exact same message?
send message on skyblock from my lobby ?
from lobby I dnt have issue
if message send from skyblock to lobby
then chat= things appear
no. I mean send a message from skyblock and make a screenshot of the message on lobby and on skyblock. of the same exact message
https://cdn.discordapp.com/attachments/789858423427694674/891631761421897728/unknown.png
first one is in from skyblock
2nd one is from another servers
Please respect the rules, be patient and don't ping staff members!
Hi there is placeholder-api for bungee?
nope
ok ty
Hello, I'm not sure if this is the correct channel, but I tried to implement placeholderAPI with my plugin. But whenever the placeholder is used, it's just a whitespace
Blitz did you check out this ?
I m waiting for your response :/
package me.mrgeneralq.survivednights.placeholderapi;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import me.mrgeneralq.survivednights.SurvivedNights;
import me.mrgeneralq.survivednights.interfaces.ISurvivedNightsService;
import org.bukkit.entity.Player;
public class PapiExtension extends PlaceholderExpansion {
private final SurvivedNights plugin;
private final ISurvivedNightsService survivedNightsService;
public PapiExtension(SurvivedNights plugin, ISurvivedNightsService survivedNightsService) {
this.plugin = plugin;
this.survivedNightsService = survivedNightsService;
}
@Override
public String getIdentifier() {
return "survived-nights";
}
@Override
public String getAuthor() {
return this.plugin.getDescription().getAuthors().toString();
}
@Override
public String getVersion() {
return this.plugin.getDescription().getVersion();
}
@Override
public String onPlaceholderRequest(Player player, String identifier) {
if(player == null)
return "";
if(identifier.equalsIgnoreCase("survived-nights")){
return String.valueOf(this.survivedNightsService.getSurvivedNights(player));
}
return "";
}
}
Is there something wrong with this?
Player is null probably? Also, #development
I will move this to development, I continue there
my response will be the same as here:
don't see what your uuid has to do with placeholderapi?
from the looks of it that is something venturechat adds.
Various Commands for Barry.
• General Bot/Guild Commands
• Miscellaneous Commands
• XP and Level Commands
• ChatReaction Help
can you use placeholder in other placeholder?
if the expansion supports it yea, u can do %placeholder_{inner_placeholder}% for example
i think it doesnt cuz i tried
I made an expansion that allows to do that
ooo
%nested_placeholder_{inner_placeholder}%
lets see if it works
%nested_aureliumskills_xp_progress_1_{lastskill_progressed}% like this???
yeah I guess
do make sure that /papi parse me %lastskill_progressed% returns the correct placeholder output as well
bossbar
I mean which plugin
tab, yea
is it just on the first time you load the bossbar?
yes
are you using TAB on BungeeCord?
before loading it into TAB (try to remove it and do the following), does it work with /papi parse me %placeholder% ?
okay i think its the other expansions having that problem
%progress_bar_{nested_aureliumskills_xp_progress_int_{lastskill_progressed}}_c:&c■_p:&7■%
do you know what is wrong with this?
Couldn't get the number from %aureliumskills. The progress will be 0%.
Hey! Is a server countdown placeholder possible to track the 1st of every month?
Also, all other placeholders work on holograms but for some reason %server_countdown_dd.MM.yyyy_01.10.2021% doesn't (it works being parsed)
yeah. timer placeholders are broken with HolographicExtension. the author knows but he's been like super super busy. he's not been doing any minecraft development in a while.
https://pastebin.com/UnbCd3YD why this is happening?
Use at least 1.8.8 @valid bay
i want to edit the output of a placeholder
how can i do that?
use JS
Maybe i can help :3
I'm practicing js and i could give it a go
But my server is to 1.8+
Please respect the rules, be patient and don't ping staff members!
have fun with using 1.8 lol
use 1.8.8 and use via backwards to allow any 1.8 connections.
I got a question <.<
Im working on my javascript and include if %worldguard_region_name% is not null, how do i parse against 'null' aka empty line when in wilderness xD
Wait
Theres global tho
But why tf do i get an empty line when parsing the name
I am so confused
null is a totally different thing from an empty string.
also. global regions are different.
if ("%worldguard_region_name%" === "") {
// Do stuff here if region is empty.
}```
function isTrusted()
{
if (('%worldguard_region_name%') !== "")
{
return "&6World Guard %worldguard_region_name_capitalized%";
}
else if(('%griefdefender_claim_type%') == "wilderness")
{
return "&9Wilderness";
}
else if (('%griefdefender_claim_trust%') == "true")
{
return "&aYes";
}
else
{
return "&cNo";
}
}
isTrusted();```
Works :)
I needed the not against empty string lel
👍
Tyvm ^_^
Sure sir I would be glad if you help me :) because I am not I to much of coding
I want to change an output of grief prevention expansion
Fot%griefprevention_currentclaim_ownername_color%
In unclaimed region it returned Unclaim
I want it to be &2Wilderness
it would be a lot more easy to use the changeoutput expansion.
/papi ecloud download changeoutput
/papi reload
then use this placeholder instead: %changeoutput_equals,ignorecase,ignorecolor_{griefprevention_currentclaim_ownername_color}_Unclaim_&2Wilderness_{griefprevention_currentclaim_ownername_color}%
this takes the {griefprevention_currentclaim_ownername_color} placeholder, compares it with Unclaim (ignoring the case and colors), if the ouput of that placeholder is that, it will print &2Wilderness otherwise it will print out the placeholder itself.
thanks a lot sir
will this work with other expansions also ?
yes.
ok thanks:)
if i knew this i could have not broken my server trying to edit it from files
also. we could probably make that a bit shorter:
%changeoutput_ignorecase,ignorecolor_{griefprevention_currentclaim_ownername_color}_Unclaim_&2Wilderness_{griefprevention_currentclaim_ownername_color}%
5 letters shorter lol xD
6 + a symbol actually
this will not affect the output if the land is claimed right
yeah
it returns the last part
which is the placeholder itself
{griefprevention_...}
o i see
thanks a lot
:(
function unclaimed()
{
if (('%griefprevention_currentclaim_ownername_color%') == "Unclaim")
{
return "&2Wilderness";
}
{
else return "%griefprevention_currentclaim_ownername_color%";
}
}
unclaimed();
too easy
u tested it? bcz the first check might not work
function unclaimed()
{
if ("%griefprevention_currentclaim_ownername_color%" == "Unclaim")
{
return "&2Wilderness";
}
{
else return "%griefprevention_currentclaim_ownername_color%";
}
}
unclaimed();
you used () instead of ""
why are you using ' and ". you should get used to using only " for strings.
other (most) languages don't allow you to use ' and if you get used now with it, might be a problem in the future
Fair point
I'm in the mood for practice today so I'm making a lot of different (bullshit useless) javascripts xD
I guess I adapted the style from my better half and the very first few js we made together. That was the day my brain exploded.
Hi there,
I'm currently trying to use a placholder in my plugin but can't do this.
I managed to create my own placholder in this plugin, but I can't use a placholder from other plugins and I don't know why you could ask for help. This is my source code of my main: https://haste.nycode.de/apigocizab.avrasm
Kind regards,
Tom
i cant register
on the ecloud?
did you download the correct expansions?
looks like you need the vault and the player ones.
/papi ecloud download player then /papi ecloud download vault then /papi reload
yes
Okay I try it
you will have to wait for @balmy marten to wake up. he will probably contact you when he sees this message and has some time. (just so u don't have to read another 2 messages cube, he wants an ecloud account.)
Okay, it work but how can I do it that it is installed directly at the start of the plugin?
ugh you can't. you have to download the expansions manually. well. you could maybe write a java program to download them yourself but I can't help you with that.
okay 😦
Dm me a username and email address you'd like to register and I'll create it
Anyone know how to fix the mcmmo expansion not working? https://paste.helpch.at/imerevivaj.sql
The github and mcmmo support is dead in their discord
How can I remove spigot linked to a deleted discord account of mine? ;-;
Please respect the rules, be patient and don't ping staff members!
Failed to load expansion class McMMOPlaceholderExpansion - One of its properties is null which is not allowed!
Okay?
Please respect the rules, be patient and don't ping staff members!
I clearly do not understand, quoting something from the paste and not explaining more on it isn't helping... thank you
hello, how cna i use %player_has_potioneffect%?
%player_has_potioneffect_<effect>%
the mcmmo expansion is broken. the developer seems to have also abandoned it.
actually might not even be the expansion
what mcmmo plugin do you have? because this expansion only supports mcMMO Classinc (v1.x) and mcMMO Overhaul (v2.x)
The one I purchased so long ago, https://www.spigotmc.org/resources/official-mcmmo-original-author-returns.64348/
Please respect the rules, be patient and don't ping staff members!
with this format i used in another plugin and i was able to change but only 1 output
what if i want to change 2 output of same placeholders
Please respect the rules, be patient and don't ping staff members!
oops sorry 😦
'&eStatus:%changeoutput_equals,ignorecase,ignorecolor_{pinger_online_209.145.48.76:25569}_Online_&2✔_{pinger_online_209.145.48.76:25569}%'
in this i walso want to change Offline to ❎
so where am i supposed to add that thing
instead of the last {pinger...
%changeoutput_<options>_INPUT_MATCHER_OUTPUT-IF-MATCHED_OUTPUT-IF-NOT-MATCHED%
Hey Blitz, if you're here, I got another question. I made another placeholder using javascript, works perfectly fine, it returns names and times of potion effects and i aim to display one effect per line, so i added the \n character for next line, but in the deluxemenu, all 3 effects i currently have on me show up for a split second, but then it jumps to only display one. Why would that be?
hey yall i had a question, i'm tryna black list people's alts from the playtime statistic so we have a proper measure of playtime on the leaderboards i made
%statistic_ticks_played%
%statistic_seconds_played%
%statistic_minutes_played%
%statistic_hours_played%
%statistic_days_played%
%statistic_time_played%
%statistic_time_played:seconds%
%statistic_time_played:minutes%
%statistic_time_played:hours%
%statistic_time_played:days%
oh thanks
Use ticks, will stretch your - whatever you use to display this - to infinity xD
\n won't split the lines in multiple and add them to the lore List unless the plugin is made this way
No durr
Probably the wrong place, but how do I remove this scoreboard? I have no idea where it's coming from. It pops up for a second on join and then disappears.
<Error>
<Code>AccessDenied</Code>
<Message>Access denied.</Message>
<Details>Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object.</Details>
</Error>```
looks like FeatherBoard

Ah i have to delete scoreboard.dat from all my world folders
is there a way to disable statistics for certain players?
i'm trying to disable alt accounts for having playtime on the leaderboards
which placholder do i need to get the name from the tablist with rank and so on ??
cant update that via ptero
https://paste.helpch.at/keretesaza.md
(posted in the wrong channel)
placeholder api attempts to load the expansions and just pauses and doesnt continue, leaving the server on standstill
i havent touch this chat for a very long time
You can just ask the host provider
Wasn’t for me
O damn, role icons
@heady urchin
Go to server build configuration
On the panel?
Yes, at the top where console, startup etc are, should also be an arrow
Sec lemme get out of bed lol
Btw what spigot version do you use?
yeah
Do you have a java 11 option?
i do on mine but ill have to check with Tree when he gets online for him to check
How would we go about adding it if its not there
ghcr.io/pterodactyl/yolks:java_11 just type this on the that input
oh its that easy?
Yeah
wow thanks
Np
xD
I need help with this
do you have any expansions it needs to load?
because if you do not then that's why it doesn't finish
you don't have anything to be finished
soo i install Placeholder bc i wanna code the command with %server_online_<world>%
but idk how to use it. i use /papi ecloud download <world> but it says "No cloud expansions are available at this time." pls help me!
/papi ecloud download server?
yes
still not working
what does it say?
same
then you might have to manually download it
ok so. go to <https://placeholderapi.com/ecloud > and search for the Server expansion. download the latest version from there and put it in your plugins/PlaceholderAPI/expansions folder
then do a /papi reload
oh ok
where is the download file?
click on the download latest
ill try it 🙂
and thx for helping me
i have to place it on "/plugins/PlaceholderAPI/expansions/" right?
yeah
Anything above October 23rd (so oct 24/25/26/27/etc, not 23 above it)%server_countdown_dd:MMM:yyyy_23:Oct:2021% outputs 10 days instead of 30 or some super wrong number
Am I going to die oct 23 😦
ok
you do /papi reload
ok done
yeah. iyou should have the expansion. try doing /papi dump and sending the generated link here pelase
try updating the server expansion maybe if you're not on the latest
theres no command to that
Did not work
no /papi dump command?
yes
ugh. are you sure the papi plugin is even enabled?
yes
what version of papi do you have?
/papi version what does it say?
well. My assumption is that placeholderapi is either broken or corrupted or something
no problem. 👍
😄
Blitz? :>
I've got no idea
i do have a couple
Please respect the rules, be patient and don't ping staff members!
but its just basic plugins, like essentials vault etc. nothing that should be acting up
uhh I have papi on my server and I cannot use /papi parse me placeholder. What can cause it to not work? I have the latest build..
[19:08:53] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.10.10
[19:08:54] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[19:08:54] [Server thread/INFO]: [SpigotPing] Enabling SpigotPing v2.6
[19:08:54] [Server thread/INFO]: [SpigotPing] TabList is enabled, task added with a delay of 5 second/s.
[19:08:54] [Server thread/INFO]: [TAB-BukkitBridge] Enabling TAB-BukkitBridge v1.5.2
[19:08:54] [Server thread/INFO]: [TAB-BukkitBridge] Enabled in 3ms
[19:08:54] [Server thread/INFO]: [spark] Enabling spark v1.6.1
[19:08:54] [Server thread/INFO]: [spark] Using Paper ServerTickStartEvent for tick monitoring
[19:08:54] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: spark
[19:08:54] [Server thread/INFO]: [spark] Registered PlaceholderAPI placeholders``` it's enabled and working
fixed it using ecloud download
Hello, I do not understand why the marriage master expansion does not load, I also have problems with the chat control red plugin to load an expansion, please I need support https://github.com/kangarko/ChatControl-Red/issues/1325#issue-1000155602
help plz
[19:33:34 ERROR]: Error occurred while enabling DeluxeMenus v1.13.3-Release (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.put(String, Object)" because "com.extendedclip.deluxemenus.requirement.JavascriptRequirement.engine" is null
at com.extendedclip.deluxemenus.requirement.JavascriptRequirement.<init>(JavascriptRequirement.java:19) ~[?:?]
Looks like you are running Java 16 without a dev build of DeluxeMenus, you can download the latest from https://ci.extendedclip.com/job/DeluxeMenus/lastSuccessfulBuild/
@mellow moss how so?
can anyone help me?
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
why cant i do %server_online_HUB% work on hologram?
what hologram plugin?
holographicdisplay
i have it
is it all in caps?
not really
its "Lobby
i did
does it work ?
it does not
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
can you show me
ohh
?
but i dint use bungee
u want me to instal and put it on my plugins folder?
ye
so i have a bedwars worlds to play with my friend and im setting up my npc.i wanna set it to "432 players are playing solo!" but idk what the command for it.
i used SBA and bedwars addons
[WARN]: [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.3.55 which is not a depend, softdepend or loadbefore of this plugin. what is this?
It is just a loading message. Safe to ignore.
I'd be worried if this didn't show up lmao
wait until a plugin loads a library from another plugin due to spigot's plugin system
Is there a skript placeholder?
I have the Expansion-skript.jar but i can't see it in /papi list
Skript is a plugin iirc. Maybe you mean javascript instead?
No i meant skript
javascript is working fine
I'm pretty sure i did it correct https://gyazo.com/5af7cbf222aefad7d657ba07ef450953
No idea then, i have it working but don't remember how lol
I tried that one, it just breaks all my other expansions
Papi reload or 'reload'
papi
Really weird as it does work for me. Hmmm
it does this to mine https://gyazo.com/4d51fb2844564708741983a119d672ab
So what does it say in console when you reload papi with the skript expansion?
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
Its your java version
You need java 11 for that expansion
Ok I see I'm no longer needed here.
I'm using version 1.12 for minecraft, is there some where i can download that?
Ask you hosting provider to change the java version of your server to 11
like 1.11 server?
Java version is not the same thing as minecraft version
ok
Just ask them that, they will know what to do
so i have a bedwars worlds to play with my friend and im setting up my npc.i wanna set it to "432 players are playing solo!" but idk what the command for it.
i used SBA and bedwars addons"
can anyone help me pls?
i kinda new to this thing
What plugin?
is it my paperspigot?
.
Don't use acronyms like everyone knows what SBA is lol
this one
"432 players are playing solo!" want to set the npc like this
but dk the command to it
.
.
Please respect the rules, be patient and don't ping staff members!
hello
is there a papi placeholder that outputs yes/no if specific key is being pressed?
don't think so.
idk if you can even detect keys used by players in spigot without a custom client.
Hi uh. With my plugin, is it possible to make it check if the server has a certain Placeholder API expansion installed?
I believe you could use java PlaceholderAPIPlugin.getInstance().getLocalExpansionManager() then use the available methods to get the expansions you want.
getExpansion(identifier) is one of them
Ok. Ty.
i mean like
Please respect the rules, be patient and don't ping staff members!
yo detect shift key in menu
can make %TPS% show like 18-20=PERFECT 10-17=MEDIUM 0-9=LOW ?
Javascript expansion
How to do
Hey, i try to build PlaceholderAPI
But i have some issues with it
https://pastebin.com/t3y61Vqu
Can anyone help?
looks like you maybe removed the licenses from each class?
I just cloned the github repo o_O
There are any sub modules or something?
I just used git clone https://github.com/PlaceholderAPI/PlaceholderAPI
Wait, do you mean that? https://i.imgur.com/bGXdZKW.png
If so, its there.
@vivid sparrow any chance you know what this is about?
Nope, sorry
Ask pig, I think he setup that plugin. Could as well just comment it out
oh right. it is just a gradle plugin right?
Tube you can try commenting it out in build.gradle
the liciense {} task
Ok, so i removed
include '**/*.java'
matching('**/*.java') {
header = file('config/headers/main.txt')
}
ext {
year = 2021
}
}```
But i still got the same error
Ok i got it
I removed id "org.cadixdev.licenser" version "0.6.0" from the plugin section
You should also change that in the repo 😄
hello, i just got this plugin installed and tried to install a placeholder but i got an error " Failed to load expansion class ASkyBlockExpansion (Is a dependency missing?)" are there mods needed to run this one?
or do i need askyblock cuzz i use the new Bskyblock mod
but i guesed it was the same api since its just an updated version
I don't think that will be removed. that just probably needs fixing.
nah. it needs ASkyBlock
i already found i don't need to download askyblock but bentobox
Yeah, the main thing is that it works 😄
👍
but there is no command and i don't know how to manualy do it?
if there is no command to download, it means it comes with the plugin itself (with bentobox)
so i can already use for example '%Level_[gamemode]_island_level%' in my scoreboard and it should work?
also. here's the full list of placeholders for bskyblock. https://docs.bentobox.world/en/latest/gamemodes/BSkyBlock/Placeholders/
thanks a lot 😉
getting this error
@sharp jay
Please respect the rules, be patient and don't ping staff members!
^
sorry
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
it is 2.10.10 on my server
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
also use this ^
you got that version via https://ci.extendedclip.com/job/PlaceholderAPI/127/ here?
spigotmc
okay
not fixed :/
ok , I got ti fixed
idk how , i managed to download server expansion two times lmao
and i think the player expansion twice?
yea
in the log it says it registered it twice 👀
not a placeholder?
well. could be because of a few reasons.
nah. he meant to type top
oh
yes
check pinned
- Top placeholders were removed after version 1.5.2
- Even on prior versions they were disabled and needed enabling in config.yml
- You do not have an economy plugin
these are some of the reasons it might not be working ^
Depends what you need. I'm no javascript guru yet but easy-medium I can do.
Ejem
Hello, a question, what is the Death Statistics of the players?
I dont know if is:
**%statistic_deaths% **
that should show how many deaths a player has. yeah
Whether from highest to lowest?
ugh. no. it just returns the number of deaths of a player you parse it for
Okay Thank you, another question, you know how I can reset the kills, so they all are from scratch
all the stats are stored by spigot in your main world folder.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: com/github/benmanes/caffeine/cache/AbstractLinkedDeque$1 has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0...
I got this error when i try to install the Math or the javascript Extension
update to java 11+, ur on java 8 currently
But then my plugins will still work?
Im running an 1.8.8 server
there's only one way to check
:)
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 55.0
same lol
You need java 15 for js expansion
Oh
Did whos know why my play time statistic doesn't save?
I always have 0 play time
i have this %statistic_hours_played% in SternalBoard config
You could try finding the old js expansion, that should work fine
@thorn thunder sorry for ping but can u help me?
I can check it out in a bit
Ok, i never use placehorderapi
i have expansions
Expansion-bungee.jar
Expansion-essentials.jar
Expansion-luckperms.jar
Expansion-player.jar
Expansion-server.jar
Expansion-statistic.jar
Expansion-vault.jar
and %statistic_hours_played% in SternalBoard plugin config
Check the play time in your client stats
What does it say?
How i play some hours on my server and i have 0 play time
Accept to friend i send u screenshot because i can't send here
I think my statistic hours played not saving
Use imgur
Can i use %RainbowColor_<Text>% in essentials nicknames?
I just get "Usernames must be alphanumeric"
is there any way to do a top kills?
hey, can somebody send me an example of this? %server_countdown_<SimpleDateFormat>_<time>%
icant understand how it works
?
can someone test this for me, please?
Mind your own business, thanks.
lmao what
Lol
lol
Is there a way to parse placeholders across the bungee cord? Like is there a plugin like Papi-bungee? I wanna parse certain placeholders across bungee
For example I want to parse survival games stats from one server to other without using survival games plugin on my hub server for example.
Can someone tell what is this mean and is this dangerous for my server?
https://paste.helpch.at/iqeketaget.md
the placeholder hooks has been successfuly registered
its not dangerous
(i guess)
hey, can somebody send me an example of this? %servercountdown<SimpleDateFormat>_<time>%
icant understand how it works
but i mean this WARN from lines 5-38
What should I test for? Just regular functionality or is there anything special?
Please respect the rules, be patient and don't ping staff members!
:woeisme:
oh these?
dont mind these, they dont make your server crash so they are not dangerous
lol lol lol
@hybrid leaf you can fix that by updating your server expansion
/papi ecloud download server then /papi reload
ty ❤️
Could u tell me how can i fix this warns?
https://paste.helpch.at/ozulemeyam.css
those you cannot fix.
and they're not a problem. it is just spigot letting you know that interaction happens.
it tells you that a plugin is loading a class from another plugin.
this is how some expansions get data from plugins for example
the essentials expansion loads classes from the essentials plugin to get the data
ty so much <333
Regular functionality
@vivid sparrow Returns empty strings for all economy placeholders, permission side seems to work fine
I see
Is there an alternitive to .registerPlaceholderHook
ur meant to extend PlaceholderExpansion now, not PlaceholderHook
so now u need to do PlaceholderExpansion#register()
anyone know a armor amount that using placeholder?
https://www.img.in.th/image/QH0v77 like show this arrmor uing amount
I'm afraid that is not a placeholder currently.
I mean that show like heath that i have but it is arrmor amount i using
yes I Know
that have to download plugin?
hey, can somebody send me an example of this? %servercountdown<SimpleDateFormat>_<time>%
[11:55]
icant understand how it works
I understand what you want and I'm telling you that there is no placeholder for that
%server_countdown_dd/MM/yyyy HH:mm_ 25/12/2021 12:00%
you're the best, but is there any way to change the language? and is it possible to make it show not in weeks, but in days
no. and no
sad, thanks
I mean if you know javascript you could make your own output using the javascript expansion but yeah
it would be cool, but no (
but thanks a lot anyway, you helped me a lot)
we update papi version and when we restart the server, papi expansions being deleted
is there any way to create a top kills without downloading a plugin?
Having some trouble getting my javascript placeholder to work on Featherboard
Here are some errors I'm getting on the latest version of papi
not sure exactly what is going on but could you maybe switch back to the nashorn engine?
oh wait. can you send a /papi dump actually?
execute that command and send the generated link here ^^
@turbid tide https://paste.helpch.at/ocabowocib
oh yeah. so. stop the server, go to plugins/PlaceholderAPI/expansions and delete the 2 javascript expansions you have there (you have 2) and start the server, then reinstall 1 by using the commands: /papi ecloud download javascript then /papi reload
👍
Hello! I have an issue with papi.
I don't know what happened but PAPI stopped seeing vault? I have vault registered. When I do /papi reload it says that 2 hooks are registered successfuly. When I do /papi list then it shows me "a total of 3 placeholder hooks". I'm using TitleManager to display all placeholders... all of them are showing... only %vault_eco_balance% is showing instead of the numbers.
I've tried to re-install PAPI and Vault... didn't work... I don't know what to do.
MC version 1.16.5
PlaceholderAPI-2.10.10
Vault 1.7.3
The biggest mystery is.... when I load old server back-ups.... it doesn't work either... but... it worked back in the day?!?!
I've just noticed Vault is not connecting with the other plugins too.... even in the old server back-ups.... but it always worked.... I don't get it...
Hey there, for some reason i am having trouble with placeholderAPI. IT says that there is no available expansions for vault, player, statistics and anything else!
I am using the latest version with MC version 1.8.9
Is there a way to use this with skript??
Heyy, why askyblock placeholders doesn't work?
i tried to get the island name using %askyblock_island_world%
but it doesn't work
in the scoreboard
have you downloaded the expansion? are you sure your scoreboard supports placeholders?
Is there a 1.7.10 compatible version for papi?
i believe in theory it should work on the latest, altho no support will be provided for using 1.7 anymore
1.7?
I think that it caused some gson not found error
As GSON is only packaged in bukkit in 1.8 I believe
Version 2.10.9 or lower will 100% work on 1.7 but 1.7 support was dropped since version 2.10.10
So no more updates, bug fixes, etc
For 1.7.x
hi, i added placeholder back to my server and its still stuck on the expansion registration although we have all the expansions loaded
can placeholders contain spaces?
just working on something that depends on spaces for formatting
yeah. arguments accept spaces
nice thanks
hey, placeholderapi isnt displaying my bungee server playercounts correct
it displays some as 0
Ok thx, bye
make sure you have only one bungee expansion installed on each server, also make sure it is installed on each server, and also by default the expansion updates every 30 seconds so maybe change that to 1-5 seconds?
also make sure you have the latest version of the expansion on each server.
what about the other things?
so. on what server are you on and what server are you trying to see the player amount for?
can I dm you a screeenshot
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
can you please make a /papi dump on the server you are right now then one from the Bridge Duos server?
send the generated links here
ye
hmm, i kinda want to keep it private from everyone, can i DM you it, then you respond here
Is there any potion placeholders? Potion duration, level, etc
Couldn't really see any
@turbid tide is tht fine?
Please respect the rules, be patient and don't ping staff members!
oh sorry!!!!
sure. idk what really is there to hide in there tho... it just lists your plugins and your expansions.
If you want to test it again 😅
Is there any way how can I remove value of placeholder? Like values from placeholder like this: https://api.extendedclip.com/expansions/statistic/
i submit them to u blitz
PlaceholderAPI doesn't store any data on its own. For that specific example, the data is took from server's world file, where player statistics are stored.
oh
You would need a plugin that allows you to modify statistics after your willing.
uhm, don't you know any plugin, that can do this? 😅
Mhm, but I'm not sure if it's supporting 1.17.1
probably not, but could check their discord
Anyone know?
by the looks of those dumps, on one of your servers you do not have the latest version of the bungee expansion
it says version 1.0.1 tho...
on one it is 2.0
on one it is 1.0.1
actually
looks like both
of them
have version 1.0.1
bungee [Author: clip, Version: 1.0.1]
and
bungee [Author: clip, Version: 1.0.1]
@turbid tide so what do i do, is this the reason?
Please respect the rules, be patient and don't ping staff members!