#placeholder-api
1 messages ยท Page 71 of 1
but how would it know the player who did the command
doesn't it take them right to the purchase page already knowing their ign
it'll take them to the purchase page and require them to enter their ign (if they aren't logged in already/have made previous purchases)
Not that I know of
Someone else might know, also not the channel for this :p #minecraft
hm?
actually nvm
@safe echo u can download mine and ull be able to do what u want with the method i added
https://github.com/PlaceholderAPI/Javascript-Expansion/pull/8
i dont understand it, wdym ?
Illegal expansions ๐
It has a method that the version in the cloud doesn't have (will be updated soon, hopefully) and with this method ull be able to do what u want
var placeholder = Placeholder.setPAPIPlaceholder(BukkitPlayer, "%leaderheads_player_ai-level_" + i + "%");
hmm gaby ?
@brisk coral btw i just added offline player support for js
:okhand:
ok
[12:34:28 ERROR]: [PlaceholderAPI] Skywars is currently using a deprecated method to hook into PlaceholderAPI. Placeholders for that plugin no longer work. Please consult [Wazup92] and urge them to update it ASAP.
Can anyone tell me a solution?
read it and ull know
Contact Wazup92 to update his shit
I just wanted to know if there was any faster way
Thanks
downgrading papi is another way, but not the smartest
Ok, thanks, I will speak with Wazup92
@bronze bison (Sorry for mention)
it's work uwu
Awesome! ๐
Aye
How do i make player head materials?
Id put a specific player's head as an item in the menu
?customheads
How to use custom heads in DeluxeMenus:
a) A player name material: head;extended_clip
b) The player's head material: head;%player_name%
c) The base64 code of a head material: basehead-<code>:
- Go to https://minecraft-heads.com and find a head.
- Copy the head Value code (from the page bottom)
d) EpicHeads material: heads-<id>:
- Require https://www.spigotmc.org/resources/13402/
e) HeadDatabase material: hdb-<id>:
- Require https://www.spigotmc.org/resources/14280/
ty
got an Issue
Statistics wont load
even though I've downloaded the expansion for it.
> [15:45:12 ERROR]: [PlaceholderAPI] org.bukkit.Material.isItem()Z```
?Statistic
I couldn't find anything for: statistic
/papi ecloud download statistic 1.7.0
/papi reload
``` for 1.12.2 OR older
thanks โค
Welp my code tags don't wanna work :/ nvm
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
Ah okay thanks man
Make sure you have the latest statistic expansion and not the 1.7.0 (which is for lower than 1.12)
Yeah made sure on that
When are you getting that ?
Just gonna post the url for that again though :p https://paste.helpch.at/ovimupokuh.css
On player join
I have a few random custom join messages going through ChatControl Pro and I'm testing the one for now and getting that
Hi, I'm attempting to make an pklaceholder api can someone send me a link to a guide? I'm green at it ๐
I'm guessing that statistics are a little broke currently?
mc version?
1.14.3
Player join stat not being able to pass on the even I think
No enum constant for the Join Game stat
It might have been renamed to something else maybe?
Hopefully that's that case for it
Any errors
Yeah posted them earlier. :p
Yes please, open an issue in statistic repo
Alright thanks for the help. ๐
๐
Just a thought though I wonder how many of those have been removed
Could someone help me with a simple Javascript placeholder?
var tag = '%towny_town_tag%'
function towntags() {
return tag;
}
I'm trying to return the existing placeholder but add a space after it.
So when I use my new placeholder: it displays "%towny_town_tag% "
Instead of only "towny_town_tag"
Okok
It doesn'T work :/
var tag = '%towny_town_tag%'
function towntags() {
return tag + " ";
}
towntags();
here's my script
and I use %javascript_towntags% as my placeholder
explain doesnt work
It gives me http://prntscr.com/ofgt73
did u added it to javascript_placeholders.yml file?
Yeah
oh, whats the error in console ?
missing a ; for the variable
dw, alot miss it :p
That's how the smallest of mistakes make coders go crazy ๐
Hmm @bronze bison Is there away I can only show the space when there's an actual tag?
Oh also
Yeah
There's still an issue with it :/
It's not displaying the placeholder
only the space
what the placeholder returns? /papi parse me %towny_town_tag%
ohh ok
how can i change countdown format?
It gives me a blank line
OHH
I'm noob
Ok yeah it works
But yeah, is there a way to remove the space when there's no tags like I had before?
there is
๐ฎ
either replace the space with '' or just return the next placeholder in your chat
wdym
I'm trying to remove the space when the town doesn't have a TAG, if there's a tag, I want to display the TAG + space
var player = '%player_name%';
var tag = '%deluxetags_tag%';
function tags() {
if (tag === ' ') {
return player;
}
return tag + " " + player;
}
tags();
I think it's correct
remove the last {}
var player = '%player_name%';
var tag = '%deluxetags_tag%';
function tags() {
if (tag === ' ' || tag === '') {
return player;
}
return tag + " " + player;
}
tags();
hmm?
dont think the placeholder will return " "
yes
u only want to change the symbols ?
yep
js placeholder?
var tag = '%towny_town_tag%';
function towntags() {
if (tag === ' ') {
return "";
}
return tag + " ";
}
towntags();
Still get a space
Have I done something wrong again xD
remove the space between the first ' '
idk js
or add this || tag === ""
:/
and @brisk coral ๐
@austere hawk
var day = "d";
var hour = "h";
var minute = "m";
var second = "s";
function countdown() {
return "%server_countdown_blabla_blaaa%".replace("d", day).replace("h", hour).replace("m", minute).replace("s", second);
}
countdown();
replace the blablabla part with the time/format u want
and the symbols are at the top
and i sent the link to the wiki if u dont know how to setup a js placeholder, just use /papi reload instead of /papijsp reload
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
p {
text-align: center;
font-size: 60px;
margin-top: 0px;
}
</style>
</head>
<body>
<p id="demo"></p>
<script>
// Set the date we're counting down to
var countDownDate = new Date("Sep 1, 2019 00:00:00").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("demo").innerHTML = days + "gรผn " + hours + "saat "
+ minutes + "dakika " + seconds + "saniye ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
</body>
</html>
i found this
Is there any way to get rid of the collected data, for example resetting the join value to 0? (I'm using playtime for the placeholder)
thats in the world data afaik @velvet forge
So even if I remove the playerdata from there is should be good?
dont use /papijsp commands @austere hawk
If so then there might be another bug, nvm I'm lacking in brain power
@austere hawk
Please be patient and don't ping helpful or staff members!
not working
did u change the values?
to what u want?
var day = "d";
var hour = "h";
var minute = "m";
var second = "s";
change the value between the " "
var day = "gรผn";
var hour = "saat";
var minute = "dakika";
var second = "saniye";
function countdown() {
return "%server_countdown_dd.MM.yyyy_01.08.2019%".replace("d", day).replace("h", hour).replace("m", minute).replace("s", second);
}
countdown();
ure using the js placeholder right ?
yes
%javascript_NAME%
๐
ah
?
1m
ok
try this
var day = "gรผn";
var hour = "saat";
var minute = "dakika";
var second = "saniye";
function countdown() {
return "%server_countdown_dd.MM.yyyy_01.08.2019%".replace(/([0-9])s/g, "$1" + second).replace(/([0-9])d/g, "$1" + day).replace(/([0-9])h/g, "$1" + hour).replace(/([0-9])m/g, "$1" + minute);
}
countdown();
np ๐
Hi I have problem .-.
material: 'basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTAxODQzZWM0M2YwODhjOTYzZmZjM2UyZjcxYzY2ZTMxNTU5NDNiMTc3YTFhMzU5ODJiMTIwZjZmNjQ4MjJiYyJ9fX0='
slot: 11
display_name: '&e&lIron &f| Ore'
lore:
- '&7You''ve broken &e%statistic_mine_block_IRON_ORE% ores&7.```
I created such a GUI in deluxemenus
Idownloaded statistic using / papi ecloud download statistic
however, it does not work on the server
if you're in an older version try /papi ecloud download statistic 1.7.0
server version 1.14.3
might be using wrong placeholders
type /papi parse me %statistic_mine_block_IRON_ORE%
tell me what it returns
Invalid stat
?asktoask
@orchid hull ^
Let me reword it then
I've already spent a couple hours looking online, messaging devs, and attempting to contact the owners of both plugins to find a solution to make Factions work with NametagEdit. I have current accomplished the faction name but I am unable to figure out a way to make set the relationship color with placeholders as it says "Owner ElementalGaming %rel_factions_relation_color% TestFac". As I've previously stated above, the name of the fac works, but I am not sure how to get the color of the relation to the specific player. Would anyone be willing spend a minute or two to assist me with this issue please?
MassiveCore Factions v2.10.0
Did you download the expansion?
and NametagEdit plugin by Cory (lastest version)
^
Also, yes I did
What does /papi parse me %rel_factions_relation_color% return
And i've restarted the server multiple times as well in hopes of figuring it out
um, 1 sec. Gotta redownload the plugin, I just deleted it 'cause I found a few bugs in it
hmmk
well v2.10.0 works mostly, but there's bugs in higher versions
Also you might need to put something after it because I think it just returns the color codes
(in the /papi parse command)
and yeah, I used the command /nte group owner suffix ' %rel_factions_relation_color%%factions_faction%'
as i previously stated, the %factions_faction% part works, but not the first one
also try /papi parse me %rel_factions_relation%
I think it works with just 1 player, not entirely sure
if not you might have to use parserel (I forget the syntax)
@mint fable it just returned "%rel_factions_relation%" in chat
yeah
just reloaded it, it says factions is now hooked
still shows the same thing though
def on papi 2.10.3 right?
because I know older papi had some issues with certain expansions, factions included
did you try parserel as well?
/papi parserel %rel_factions_relation_color%?
What does "parserel" mean exactly?
so what would the command be if just me?
you could try your username twice
?
what does %rel_factions_relation% come back as?
hmm maybe it didn't work...
is that gonna get the color or?
rip. Looks like I'm just gonna have to use a dif fac plugin
Thanks for your assistance though
yep yep
@final shadow are you aware of any of this? And do you possibly know a fix?
All the chat between me and Elemental, starting at https://discordapp.com/channels/164280494874165248/573429521554866178/600527861916499968
why is PlotSquared no longer working for 1.12-1.14
this is so annoying ;-;
when i type /papi ecloud download PlotSquared
it always say No expansion found with the name: PlotSquared
There isn't an expansion with that name, as it states
dude if you check the PlotSquared in the PAPI list it says there itself /papi ecloud download PlotSquared
i've also tried everything such as reinstalling the plugins and trying to figure it out if its the plugin and other shit it's really the PAPI itself i don't know why you guys removed support for PlotSquared
and i've already used the PlotSquared placeholder on my 1.8.8 prison server and it works fine but in 1.12 it fucked up
There's no expansion for plotsquared, if you'd like one, your best bet is to contact the author of that plugin.
damnit
If there used to be, it's likely they used the old placeholderhook system, which was removed a few updates ago after being deprecated for ages.
hm
i'll try using the old ver
hopefully
@carmine veldt the PlotSquared or PAPI?
You'd need to downgrade papi, but I don't know for sure that plotsquared did use placeholderhook. I'm just speculating
I replied in #general-plugins woops
actually i'm stupid
i used the wrong plugin
the correct version was 4.298
and i'm using a long ass version
probably a pirated plotsquared
god damn it i'm stupid
plotsquared is foss, I don't see how you could be using a pirated version
the one i'm using is PlotSquared-18.12.12-be48507-2053.jar
it's not supposed to be jar
and with a long ass version name
i've checked the versions list it's like "4.298" "4.297"
looks likee i'm gonna reinstall both
no need
just found this https://github.com/IntellectualSites/PlotSquared-Expansion
ty
i see
man this is such a painful day ;-; i've wasted 3 hours of my life trying to find the placeholder
thanks @carmine veldt
no worries
I've created an issue on their repo, suggesting them to upload the expansion to the eCloud, which will prevent this from happening in the future. https://github.com/IntellectualSites/PlotSquared-Expansion/issues/3
Set the wiki to say unavailable atm
ye
there was a list of placeholder in the wiki
for plotsquared
i was like earlier "wat the heck this aint working are they scamming me"
๐
Q, is there any rules on old expansions?
Well, replacing them as such if they're seemingly no longer maintained
Try contact the original author and get their consent first, if that's not possible, I'm sure we can come to some sort of arrangement.
If original author doesn't reply and what not, we usually require the code to be on github for stuff like that
I've done it with a couple expansions clip made
wait you guys can't add it? @carmine veldt like example the author wanted to add it but his like "Grounded" ๐ and he wants the placeholder on the ecloud to be added but he can't since grounded you guys can't add it ?
Generally better that the person maintaining it uploads that stuff
We won't upload someone elses expansion under our own names, unless they specifically ask us to. It's not our responsibility to upload someone elses expansion. If "grounded" wants their expansion on the ecloud, nothing is stopping them from signing up and uploading it themselves.
nothing is stoping them
Dude, they're grounded, psh
smh 0/10 support, gunna set the place on fire
well that's their fault for being naughty
rejoin
Worked, but why like this?
Its weird, but rarely happens
Okay. Thanks for the info.
๐
I've been trying to develop a plugin that will allow players to check how many kills an offline player has using the killStats plugin. If the player is online, the plugin works perfectly, but if they're offline the placeholders are replaced with " " instead of "however many kills they have".
Here's my code:
https://paste.helpch.at/ubefubayin.cpp
Any idea why this isn't working? Everything I've found online says that PlaceholderAPI supports offline players
Papi supports, but the thing you're getting the kills from probably doesn't
ah. Okay, thanks
@rare swift why are you looping through all offline players?
Good point
use
OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(args[0]);
int kills = Integer.parseInt(PlaceholderAPI.setPlaceholders(offlinePlayer, "%killstats_kills%"));```
I hope it helps
I wrote it all in discord, so there maybe some wrong formats
Also, check if the offline player has played before
or check if the online players list contains that player
@rare swift ^
awesome, thanks!
@balmy marten any way we can sort by upload date on mobile for ecloud
Right now we can only sort by expansion name and author
You can sort by edit date
Possibly not on mobile though
Due to size constraints @final shadow
How long dose it typicaly take for someone to respond to a issue :/ mine has just been sitting for 12 days with out any type of respons
what issue?
^, some issues get buried if people are doing other things
Got a question, is there a placeholder or a way to show the players own time from their machine?
Feature requests do take a fair long time to get around to, hence why all the expansions we've created are open source allowing anyone to complete these requests
Takes a long time cause of the shear amount of projects we have going on ;)
So we can't do everything ourself
hey guys
how do i get the placeholder for someone i hit
like their displayname
im trying otherplayer_displayname_<player>
doesnt work
The other player placeholders is used to return the placeholders as if you were playing as that player
You'd need to check the wiki to see if there's a placeholder to get the entity you hit or the name of the player you hit
so I know others have asked this but how do I use the placeholder api in order to format the balance and top balance in vault?
also i'm not sure if this is even the right place to ask this, hope so
You'd need to find a plugin that allows you to edit those messages
EssX MIGHT let you edit them
But idk about them supporting papi
ChatBaltop:
- ' '
- ' &b{Position} &7- {PlayerName}: &2$&l{Balance}'
- ' '
is that the right thing?
that's not ess or papi.
its in the config of GuiBalance, which is what im using to show the top balances
welp. dont think we can help too much with that plugin
whats the ecloud download for a prefix with ultra permissions
vault
are the latest DeluxeMenus and PlaceholderAPI Compatable? Placeholder doesn't seem to be registering the hook.
You would have to download all eclouds that matches the need
@mild chasm Make sure you have all the expansions from the placeholders you're using instaled, and have reloaded papi after doing the /papi ecloud download <expansion>
He left. Abort the mission ๐
Does anyone know the placeholder to show the nametag in chat for DeluxeChat?
Gary's placeholderapi system is retired, please use @wet basin with -papi <expansion name>.
whats the nametag?
OH MY
%player_displayname%
Thankyou.
@austere hawk for papi placeholders its -papi NAME
I tried ๐ฆ
Pft
Stupid bora
Bots
@unreal glade link ur spigot in bot commands doing =spigot so u can talk in the deluxe chat help channel.
@unreal glade
To link your Spigot profile please do the following:
- On Spigot, set your Discord to
Rewinder#3908under contact details. - Run the
=Spigot <Spigot Username>command.
Note:
If you have changed your username in the past or haven't made many posts you may need to use =spigot <numeric id>
Whats ur spigot username.
=spigot parker101
Can't find a spigot account with that name?
Please check the spelling, if it's still not working try using =spigot <numeric id>
#bot-commands please
^^
My bad ๐
@bronze bison hey bro. Would you have any exp with mvdwpapi + progressExpansion?
Im trying to use the progress expansion inside my featherboard, but because of the placeholder inside the placeholder, mvdwpapi doesnt like it i think
following mvdw's format, the placeholder would be
{placeholderapi_progress_bar_{drclash_captureProgress}_c:&a&lยป_p:&6ยป_r:&7ยป_l:20_m:100}
what does this returns?
how about setting a number instead of that placeholder?
yes
well then, i guess its because of the {} inside it
Anything i can do to get it to work? Would the way the progressexpansion parses the placeholder have to change, or would something with mvdwpapi have to change?
i can make some changes for it to work in mvdwpapi
will look into it tomorrow, in bed now
alright, thanks ๐
๐
What's the vault placeholder for it to show the rank prefix in chat?
I've tried all the listed placeholders and none are working.
i need help with deluxemenus. my mod has the permission to view certain menus i assigned, but its telling him he has no permission to do it
what do i do
is it possible that i can set no requirements or permission to open it? cuz i had this problem last time too
i got rid of the requirements but he still cant access it.
Can you show me the part of the config you got the problem from?
Is it possible to have a placeholder update in the inventory title
as in, i have a countdown timer, and woudl want it to update the countdown in the title of the gui
Javascript placeholders haven't changed right?
Anyone know what this means?
[10:39:57] [Server thread/WARN]: [PlaceholderAPI] Javascript placeholder: marryto does not have a file specified
[10:39:57] [Server thread/WARN]: [PlaceholderAPI] Javascript placeholder: is_staff does not have a file specified
You haven't set it up correctly
Here is an example from my javascript placeholders file:
townyname:
expression: '"%towny_town%" == ""'
type: boolean
true_result: ''
false_result: '&a%towny_town% '
Used to work before, but a while ago
I saw something about some file stuff, but not sure how that works
That's not how you do that..
Used to be the old way, but haven't used the plugin for a while..
gimme a sec
Can you give me an example of how to turn what I sent into an actual script?
I presume you want to remove the space if the person isn't in a town?
Yeah
are you using %player_name% after the towny chat placeholder?
No
gimme the placeholder you're using after it, will make it nicer to remove the space
That's all I need, dw about the rest, already got that figured out
one sec, let's do another one
for example this:
titleset:
expression: '"%deluxetags_tag%" == ""'
type: boolean
true_result: '&cYou don''t have any titles set!'
false_result: '&cRemove current title.'
var towny = "%towny_town%";
function townyChat() {
if (towny === ' ') {
return '';
}
return towny + " ";
}
townyChat();
var tag = "%deluxetags_tag%";
function deluxeTags() {
if (tag === ' ') {
return '&cYou dont have any titles set!';
}
return '&cRemove current title.';
}
deluxeTags();
So yeah, pretty much the same
mhm
but
it does return ' ' if a player doesn't have a tag right?
Yeah
k
But where do you get this if (>tag< === ' ') { from?
wdym?
Cause in towny it was towny, do you get it from a list or?
or it doesn't matter what it says there
Yeah, but does it have to be specific to the plugin?
Oh ok
just makes it more neat when checking after some time
Also, is it possible to do multiple scripts in a file?
Like the two you sent me in the same file
I don't think so, since the filename is the placeholder
Yeah true
Not 100% on that tho
Thanks anyway
np ๐
~~"
Can i create multi file like Chestcommand in DeluxeMenus?
i don't want to make all menu in config file ๐ฆ
Im very stupid at English
1 Go to config.yml and make an entry for your menu
gui_menus:
menu_name:
file: menu_name.yml```
**2** Reload the plugin, twice `/dm reload`
**3** You will see a new folder called `gui_menus` and your menu should be there
**4** Open that menu and either start edit it or use the menu maker <https://helpch.at/dmm>
**5** You are done!
...
Typo :p
Thx cube btw ๐
thanks you
When i use command to open menu, it will delay around 1s, is that a error?
i have a problem with deluxe join, when i put %player% in the config, in the game the name of the player is not visible
it seems like that placeholde doesn't work, how can i resolve this problem
thanks i was really frustated for this, i'm not joking you are my saver ๐
Hello, this poor guy needs help ๐ฆ
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
?asktoask
@neat path ^
I am a starter developer and I got a error while making the plugin
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project PunishGUI: Compilation failure: Compilation failure:
[ERROR] /C:/Users/emiel/Documents/PunishGUI/src/main/java/me/justkilling/punishgui/Main.java:[8,30] package me.clip.placeholderapi does not exist
[ERROR] /C:/Users/emiel/Documents/PunishGUI/src/main/java/me/justkilling/punishgui/Main.java:[111,42] cannot find symbol
Hey @sacred bronze,
Just updated Progress Expansion #ecloud-updates to be able to use placeholders with %% instead of {}
let me know if it works ๐
@bronze bison :d will test as soon as I'm done at work
@sacred bronze
Please be patient and don't ping helpful or staff members!
Ty <3
๐
Whats the placeholder for votes needed for VoteParty for Featherboard?
Use v1.6
uh can you link me ๐
@bronze bison Maybe you might nee dto guide me thru this..
this is the format i would need to use in featherboard/mvdwpapi?
{placeholderapi_progress_bar_%server_online%_c:&a&lยป_p:&6ยป_r:&7ยป_l:5_m:5}
@sacred bronze
Please be patient and don't ping helpful or staff members!
using that format ^, featherboard returns: http://prntscr.com/ogy5em
hmmm
@sacred bronze try this ? https://aboodyy.net/Progress-Expansion-1.6.jar
delete the older one and put this
in plugins/PlaceholderAPI/expansions
then use the placeholder {placeholderapi_progress_bar_server_online_c:&a&lยป_p:&6ยป_r:&7ยป_l:5_m:5}
@bronze bison returns blank
@sacred bronze
Please be patient and don't ping helpful or staff members!
{placeholderapi_progress_bar_server_online_c:&a&lยป_p:&6ยป_r:&7ยป_l:5_m:5}
- returns blank
{placeholderapi_progress_bar_%server_online%_c:&a&lยป_p:&6ยป_r:&7ยป_l:5_m:5}
- returns unparsed placeholder
redownload it and try with $$ for placeholder
{placeholderapi_progress_bar_$server_online$_c:&a&lยป_p:&6ยป_r:&7ยป_l:5_m:5}
- Returns unparsed placeholder
debug is spamming chatbox
Hmmmm
i removed that? ๐
wut
so the placeholder is working in fb
is not
{placeholderapi_progress_bar_$server_online$_c:&a&lยป_p:&6ยป_r:&7ยป_l:5_m:5}
Well then, idk whats wrong with mvdw
damn
no problemo then
thjanks for trying โค
why does maxim use his own papi?
just curious
seems like a lot of extra work to maintain when a team for clip's papi already exists
u mean for mvdwpapi?
Boo made it
boo you are ๐
Also, maxim made the api mainly for his plugins - you also need a premium plugin of his in order to use it - while clip made it for everyone.
@sacred bronze what if u used a mvdwpapi placeholder in it? with {} ofc
@bronze bison That was the original issue. mvdw (featherboard) didnt like the {} placeholder inside the progress/it didnt know how to parse
@sacred bronze
Please be patient and don't ping helpful or staff members!
yea but u used a papi placeholder
not sure if it will work, but im hoping
same thing
well then rip
yea
i think the only way to make it work is create/register progress as an mvdw placeholder
but meh not worth the time
progress is already really nice. I can live with out the progress bar in fb :p
good to hear ๐
Read the wiki
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI#import-with-maven @radiant jewel
its not working tho
wdym not working?
It saids "invalid content"
u can have only one <repositories> </repositories>
there we go
same for <dependencies> </dependencies>
Great! ๐
%math_{statistic_mine_block_Oak_Log}+{statistic_mine_block_Birch_Log}+{statistic_mine_block_Spruce_Log}+{statistic_mine_block_Acacia_Log}+{statistic_mine_block_Jungle_Log}+{statistic_mine_block_Dark_Oak_Log}%
``` This'll work right?
%statistic_mine_block_OAK_LOG,BIRCH_LOG% guess this should work too
k
Does this have a whole cake one aswell or will I have to use math again? %statistic_cake_slices_eaten%
idk? check the docs
https://helpch.at/docs/1.13.1/org/bukkit/Statistic.html %statistic_<statistic type>%
Alright I have one question
Is it possible to pass multiple players? Like %other% placeholder ?
Multiple players? Wdym by that
Like, for example when you send a message to a player
"%other% changed your gamemode to %player_gamemode%"
Is there a specific plugin version if my server version is on 1.12.2
I believe latest works
1.8.8
1.12.2
1.13.2
1.14.2
v2.10.3 - Latest
v2.10.3 - Latest
v2.10.3 - Latest
v2.10.3 - Latest
yep yep
Well when I don't have the plugin installed on my server it is fine but when I do, I can't connect.
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
Could this be a possible issue? https://paste.helpch.at/vujelopomo.css
That's the only error coming from placeholder api
That's not the entire log
Yes it is
ah...
That's the entire startup log
it's... backwards
??
I just joined
Wait, now it's letting me, weird.
๐
Ok, thanks
I have a question what does %server_unique_joins% mean
is that the player count when someone logs inb?
in?
?
yes
click the link,
which
there's only link sent in chat
i got an error trying to update placeholders for MarriageMaster
its the only one that isnt reloading with the rest of the ones that i hae
have*
I assume that MarriageMaster changed it API as papi cant find the class.
suggest contacting the author
yeah i did already. figured id also come here too. thanks
no
which one is it
%player_name%
ok thanks
18.07 21:59:45 [Server] INFO Caused by: java.lang.ClassCastException: at.pcgamingfreaks.MarriageMasterStandalone.Bukkit.MarriageMaster cannot be cast to at.pcgamingfreaks.MarriageMaster.Bukkit.MarriageMaster Error suggests that you either reloaded or at some point, or you have two plugins or something tryna bundle in the same class
i should wear my glasses as I missed the Standalone part in there, but potentially same story
Is there way to make own placeholder from exsiting placeholder value? I need convert value from mmo-items stats. example, I want to make new placeholder "attack and magic total damage". that need attackdamage(%mmoitems_stat_attack_damage%) * magicdamage (%mmoitems_stat_magic_damage%) value. but I dont know how to make it.
Looks into the JavaScript expansion and you should be able to work it out
Read what i just posted in <#164280494874165248-164280494874165248-general-plugins>
@balmy marten ya I saw, but I cant understand javascript... sorry...
You'll find some good examples here https://www.spigotmc.org/wiki/placeholderapi-javascript-expansion-scripts/
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
nvm I'm an idiot
math works as well
%math_{mmoitems_stat_attack_damage}*{mmoitems_stat_magic_damage}%
@tranquil epoch
@balmy marten thanks man!
@vivid sparrow I will try it how is works on SkillAPI. thanks man!
@tranquil epoch
Please be patient and don't ping helpful or staff members!
Yw
Why do I get a ... value was invalid Reason: Too many variables or numbers
%math_{statistic_mine_block_Oak_Log}+{statistic_mine_block_Birch_Log}+{statistic_mine_block_Spruce_Log}+{statistic_mine_block_Acacia_Log}+{statistic_mine_block_Jungle_Log}+{statistic_mine_block_Dark_Oak_Log}%
guys i have a proble with /dm open example wan i open it 1 time after that it dont work or 1/20 time open
@spark sequoia first <#164280494874165248-164280494874165248-general-plugins> I replied and any errors?
Are you sure?
ye lol
no errors
gui_menus:
playerinfo:
menu_title: '&aPlayer Info'
open_command: o
size: 45
open_requirement:
requirements:
permission:
type: has permission
permission: some.permission
deny_commands:
- '[message] You dont have permission to open the example menu'
items:
'1':
material: head;%player_name%
slot: 4
display_name: '&aPlayer Stats'
right_click_commands:
- '[close]'
left_click_commands:
- '[close]'
@spark sequoia I said use <#164280494874165248-164280494874165248-general-plugins>
ok
@brisk coral most likely block names?
Ye I'm guessing that's the issue
Guess the error is clear frosty ๐
Ye but it doesn't work with 2 items either
wdym 2 items?
Instead of the whole thing just %math_{statistic_mine_block_Oak_Log}+{statistic_mine_block_Birch_Log}%
you dont mine a oak log
This says the same thing?
Did u parse the statistic placeholder?
ye
is it returning a number (working)
ffs it's ..mine:<material>
xD
aBoo please make the -papi specify things for latest version..
Ain't noone care about those outdated one
s
su frcsty
whats outdated? ๐
This %statistic_break_item_<material>%
for statistic, just use the statistic name in the spigot api
ok ill change that today
It should be %statistic_break_item:<material>%
Don't wanna scroll through the page cuz my pc lags af when I have so many things opened..
does papi not support 1.8.8?
1.8.8
1.12.2
1.13.2
1.14.2
v2.10.3 - Latest
v2.10.3 - Latest
v2.10.3 - Latest
v2.10.3 - Latest
^
<#587475621555339264-164280494874165248-deluxechat>
papi is the problem, not deluxechat
can't parse %vault_prefix%
i just confused myself
look in the screenshot i sent
is that from /papi parse?
/papi parse me %vault_prefix%
which should just be [Player]
i setup a simple one to test it
try %vault_rankprefix%
its not that, i use PAPI on 1.14.3 and %vault_prefix% is the rank prefix
it should parse anyway
probably
its just this 1.8 server
oh wait
vault changed iirc
for 1.14.3
so you might need an old expansion version
Try /papi ecloud download vault 1.4.0
Also, are there any errors in console?
the expansion is loading, right?
any other placeholders work?
yes, the Player expansion works
That picture doesn't show me that the expansion is loaded
and sorry, I meant from the vault expansion
are you sure the expansion is registering?
how can i tell?
I think /papi list
also, unrelated, but when i minimize minecraft 1.8.8 it freezes for like 2 minutes
i'm sure u dont know a fix to that but god its annoying
I got no idea
19.07 17:12:38 [Server] ERROR [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.mcstatistics.StatisticsExpansion
19.07 17:12:38 [Server] ERROR [PlaceholderAPI] org.bukkit.Material.isItem()Z
well that's the other expansion
(small error so i didn't think i needed to use paste)
ok, statistic works now
19.07 17:13:31 [Server] INFO AshtonMemer issued server command: /papi reload
19.07 17:13:31 [Server] INFO [PlaceholderAPI] Successfully registered expansion: player
19.07 17:13:31 [Server] INFO [PlaceholderAPI] Successfully registered expansion: statistic
19.07 17:13:31 [Server] INFO [PlaceholderAPI] Successfully registered expansion: essentials
19.07 17:13:33 [Server] INFO AshtonMemer issued server command: /papi list
no errors for vault
very interesting
oh my god
what was it
i don't have Vault
lmao
ok so i have been working on the same server for 2 years
and this is my first time working on a new server
ok
so don't judge me
๐
for statistic in 1.12.2 or older ull have to use v1.7.0
/papi ecloud download statistics 1.7.0
/papi reload
10/10
I got no error when I loaded it @viral plaza
hmm it says
I'm not getting any errors. Just not sure which ones are supported by PlaceholderAPI, since Jobs Reborn has different placeholders listed alongside a text saying I need placeholderAPI to use them.
Alongside all of that, PlaceholderAPI has different placeholders on the Wiki
it should be working
the code looks right
@viral plaza it's different
the jobs reborn developer made their own built-in hook
Ahhh
but it doesn't seem to work
That is unfortunate ๐ฆ
actually, I think the way he parses it is interesting
How come?
it's hard to follow code that goes to so many classes
Badly managed library?
Oh
From my own testing it doesn't work with any third party plugins at all. From scoreboards to menus, etc
well if it doesn't work, it doesn't work
no matter where
best place to test is always /papi parse
Jobsr placeholders haven't worked for me aswell
Better bring out my angry dad hammer and gather up a 20 page complaint to Jobs Reborn.
@brisk coral Have you found an alternative to show points?
@viral plaza
Please be patient and don't ping helpful or staff members!
but I think the hook to papi is messed up
because you can find them with /jobs placeholders
Whole thing seems confusing and messy from my perspective compare to a ton of other plugins out there
agreed
I don't really use points
Only placeholders I needed were the jobs ones
So wasn't really an issue for me
serves its purpose then I suppose
Hey I need help
Everytime I type any placeholderapi tag like %player_name% It just displays that and not the name can someone please help me
where do u type them?
and do u have the expansion ? for this player name placeholder, u should have player expansion
/papi ecloud download player
/papi reload
what?
just download the player expansion by running these commands
where in the console
yes, or in-game
ok 1min
https://helpch.at/placeholders for all placeholders with their download command
after downloading, u have to reload papi /papi reload
ok it works you guys are the best!
Great! ๐
@brisk coral updated -papi statistic and %statistic_mine_block:DIRT,STONE% works smh
guess it returns how much ur item in hand worth
its built into the plugin, u dont need to download anything
%valut_eco_balance%
ok thanks
np ๐
why isnt the %vault_eco_balance working% it just says that and i put /papi ecloud download Vault in also?
u have to reload after downloading /papi reload
whats that
%vault_eco_balance%
where
it returned ur balance right ?
then u still dont have the expansion .....
/papi ecloud download vault
/papi reload
it still says the tag
/papi list vault is there?
yea
are u sure that vault eco balance is the right for essentials balance
pm me
so i can send u a pic
Please use imgur to share screenshots and other images.
โข Imgur
use imgur
?
just run the command
mean it parse the placeholder to give u the value of the placeholder ....
ok, so its working .... ur scoreboard plugin is the problem
whats ur scoreboard plugin ?
it supports papi..
yea
try %vault_eco_balance_formatted%
Free:
QuickBoard
Scoreboard
Premium:
Featherboard
Kiteboard
Does placeholderapi/deluxe chat do async calls on 1.14?
I have issues with it on my plugin calling events that arent meat to be called async
prosave what does async mean?
Async is when you are using different threads than the main thread to do stuff. For example, fetching data from a database should be done async (another thread) rather than on the main thread since it would block the main thread, and cause lag, and other issues to your server.
Yes they are async
You need to make sure your events arenโt called async if u donโt want them to
U canโt call an event sync and async anymore
Check the event constructor
U can specify if the event is sync or async
@molten wraith
okay
You still need to control what thread the event is fired on tho
API tag?
what placeholder are you using to detect the item? @austere hawk
i have placeholder api installed however not sure how to set it up
But what placeholder are you using in your gui?
stone
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste