#placeholder-api
1 messages ยท Page 152 of 1
?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
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
Caused by: java.lang.ExceptionInInitializerError
after i use intellij to build my plugin , it has a lot errors
why
Caused by: java.lang.NullPointerException: Cannot invoke "network.chrisrak.Core.getDescription()" because "network.chrisrak.Core.instance" is null
also this one
public static Core instance;
public static Core instance() { return instance; }
did you ever instantiate the instance variable?
Yes
it works now , thx
Cannot resolve symbol 'paramBlockBreakEvent'
LOL why
i want to check if player break block and i change my placeholder
#development for coding help btw
oh ok
a lot of devs dont check this channel
thx
Hello i can't use papi with chestcommand ๐ฆ
answered in #general-plugins
Hey i'm curious, would it be possible to make a FactionsUUID expansion? I think it could be awesome because the actual factions expansions didn't get an update since 2018, same as the real faction plugin made by Cayorion
yo @warm topaz did anyone update the expansion or was it never updated?
Hey, I'm from a company looking into sponsoring this plugin, if a relevant person could DM me in due course, that'd be appreciated ๐ Thanks
someone else updates FUUID i think
huh can't find it
nor can i
@balmy marten ^^
Pog, could it be possible to update it please? Because it isn't working at the moment
Well we thought it was updated but I can't even find the original source so it might not even be Open Source. So no one is able to update it
Oof, So I guess we will need to wait a answer from a ADM?
wait is this mcore factions or different?
fuuid
FactionsUUID is a different one
The actual factions expansion has been made for Mcore
But Mcore didn't get an update since 2018
Wait how did you get the expansion?
bcz I don't think its on the ecloud is it?
I don't have any expansion for Fuuid, I was asking if it would be possible to create one! (I'm pretty sorry if my question wasn't clear enough, english isn't my primary language )
Because Mcore Factions doesn't work well on 1.16.5 since he didn't get any update
wait but are you using MCore or FactionsUuid?
FactionsUuid
Oh well that plugin already has an expansion. It comes with the plugin
you'll have to contact the current developer to update it if it doesn't work
this is the plugin that you use btw right? https://www.spigotmc.org/resources/factionsuuid.1035/
It is, do you know where I could find every % of the plugin?
no problem ๐
hello, the name of my item is "Custom", but the result is equal to "NO"
%checkitem_nameequals:Custom%
where is my problem?
Why i can't use chestcommands ? with papi ๐ฆ
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
sorry
actually no clue
hi there it seems that papi and buycraft are having some issue?
[18:45:45] [Craft Scheduler Thread - 47 - PlaceholderAPI/WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.10.9 generated an exception while executing task 1694
java.lang.NullPointerException: null
at it.alexdev_.buycraftapi.FileManager.FileManager.containsSection(FileManager.java:303) ~[?:?]
at it.alexdev_.buycraftapi.FileManager.FileManager.calcCurrentMonth(FileManager.java:289) ~[?:?]
at it.alexdev_.buycraftapi.Tasks.Tasks$5.run(Tasks.java:81) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Tuinity-"06ce05b"]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:58) ~[patched_1.16.5.jar:git-Tuinity-"06ce05b"]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Tuinity-"06ce05b"]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_282]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_282]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]```
Send that to the developer of Buyecraft.
BuyCraft*
How do i get custom placeholders? that are not in the wiki?
like:
Placeholder
Description
%cp-player-displayname%
Players Display Name
%cp-player-name%
Players Name
%cp-player-x%
Players X Position
%cp-player-y%
Players Y Position
%cp-player-z%
Players Z Position
%cp-player-input%
The player will be asked to enter input in the chat to determine what the placeholder will be changed to. Using this placeholder multiple times per item will duplicate the input per item.
%cp-player-world%
World name the player is located
%cp-player-balance%
Players Balance (needs an economy & Vault)
%cp-player-online-1-find%
You can change the number 1, to any number, it will check server slots and find the player in that slot. If you are the only one online and use the number 1, It will show up as yourself. If you then make it 2, it will show offline, since there is only one player on the server.
uh
you have to find a plugin or expansion that has those placeholders
wdym
like in the wiki
the wiki doesn't have everything
yes
%player-name% exists
%player_displayname% also exists
same with vault balanace
and world too
%player_world%
๐ ok
Ok
Hi, I neeed help with Mcmmo plugin. I need placeholders for top players per skill, because i want to make top hologram on spawn. Thank yu and best regards
Is there any way to change a placeholder name?
For example I'm using a factions plugin that shows their clan, and I want to put brackets around their name
And when they're not in a faction, the brackets are still there
(I'm using tab)
is [precison:0] broken?
you need to do %math_0-----% instead
ok
%math_2+1% how to make it so it would say 3 instead of 3.000
%math_0_2+1%
How do I use StringUtils.replace
I'm new to this, how would I change a placeholder
are you implementing placeholderapi in your plugin?
no
is there a placeholder i can use to add the player who has opened a menu made in deluxe menu's head?
@errant iron
is there a placeholder i can use to add the player who has opened a menu made in deluxe menu's head?
uhhh, you'd either need something like ChatInjector or to edit the plugin itself
also a time played placeholder?
What are you trying to do, like big picture?
What if it's something I'm trying to change in the tab menu, would I still use chatinjector
What are you trying to do? Is this in a plugin? Or are you trying to modify a placeholder after the fact in like TAB or something
I'm trying to modify a placeholder
For example %faction_name% turns out as Cool
When I want %faction_name% to turn out as [Cool]
(Cool is an example of someone setting their faction name)
Is this in a plugin?
Yes
like, you're editing java code?
I don't know what I'm doing, I'm just trying to modify a placeholder to have a different outcome
I need to understand the context
Is this is a config.yml of a tab editing plugin or something?
or are you making another plugin or extension that uses a placeholder
No, it's part of PlaceholderAPI
Let me show you one sec
I want to modify one of these placeholders https://media.discordapp.net/attachments/810329005664370718/831346878696128512/unknown.png
Java
oh just modify the string wdym
Where can I modify it at
I just want to change a placeholder that already belongs to another plugin
How would I do that
but I'm saying there's probably an easier way than to actually modify the plugin
do you know how to code?
I know a little bit, and if I don't; I know a friend who knows Java and has helped me a bit
yo star
could u help me out with something?
is there a placeholder i can use to add the player who has opened a menu made in deluxe menu's head?
and a time played placeholder
If someone knew, they'd answer. Maybe wait for Blitz
ok
And the second is using the stats expansion
how would i do that?
thanks
so it seems that the factions placeholder is closed source, but you could easily write your own expansion and do whatever you want with the placeholders
javascript expansion
I'm confused on how to do this
oh yeah that's a good point, you can just write a little javascript to modify that as you please
Do I make it a .jar after I paste and modify it?
uh
if you just unzipped, edited, and rezipped a jar I think it'd still work
but that's real ghetto
Can you somehow chain one placeholder with another?
what is the placeholder for like the player that has opened the menu in deluxe menus
I mean afaik jetboi, %player% will give you the current player which would be the one who opened the menu
what exactly do you mean? please provide an example
mmm I just realized that what I'm looking for is more focused on the javscript extension, so I don't know if this is the right place to ask
i mean yeah why not. you wanna combine two placeholders with a javascript extension?
ok in simple words I would like to use certain placeholders, to use them internal to other placeholders in the style of any function, but I am not sure if it is possible
a silly example would be that I have a placeholder that returns the power of a number (%javascript_Pow_2,3%) and another that returns the sum of 2 numbers (%javascript_sum _?, 4%), and I would be willing to do the operation ( 2 ^ 3 + 4), I know that I can make a placeholder for that specific case but I would rather avoid having to create a placeholder for each specific one that I need.
oh I see, use placeholders as functions
I do not demand that it exists because I understand the complexity but I would like to know if the way exists
ummm, as far as I know composition is limited to only one placeholder at the top level
but that would indeed be very cool
I know, with something like that I could do wonders
but hey, I just wanted to know that, thank you very much, you are a love of person โฅ
yeah no problem man, good luck in your coding endeavors!
um hi, not working mi / papi parse me% world_players_mapa% don't know what it will be?
Did you /papi ecloud download world then /papi reload?
What does it put in chat?
Okay then you didn't download the world expansion
try downloading it from there
and putting it in your placeholderapi folder manually
no i dowloand it
Well obviously not if it can't find that expansion
i send you screen to dm
?imgur
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.
Try deleting the Expansion-world.jar and restarting the server
What are placeholders for top players in mining skills on mcmmo for holograms? Thank you
what is this placeholder ? %player_ping%
Player ping in ms
Late reply, but what are you trying to show?
how much is player on the world
Try parse %world_players_$%
What are placeholders for top players in mining skills on mcmmo for holograms? Thank you
i use %world_players_nameworld%
I mean, just try parsing it as a test
well you can get console spam fix, but you shouldn't really be analyzing logs anyways, as that could be useful info ๐คท
hi, some way to remove decimals from variable %math% results??
works thanks! โค๏ธ
Hey what's wrong with the onPlaceholderRequest method? It won't let me use it because it is marked for removal
How do I use the new API?
I think its just best to use onRequest
It can do all that onPlaceholderRequest can and more
Cause I obviously didn't know that lmao
Wdym? How? I would need an instance of a player ๐ฆ
well you can get that from an offline player
that's what I mean
you can get the Player from OfflinePlayer
so instead of onPlaceholderRequest I use onRequest?
yeah
I'll try that
and you just get the player from the offline player and check if its null or not
I think it can be null. not surey
you'll have to check the spigot javadocs
actually wait
d;spigot OfflinePlayer#getPlayer
@Nullable
Player getPlayer()```
Gets a Player object that this represents, if there is one
If the player is online, this will return that player. Otherwise, it will return null.
Online player
yeah it can be null
Nice, thanks\
hello, im trying to setup leaderboard for ajparkour and placeholders donest work at all... what am i doing wrong... i write everything corectly...
Hey, so I'm trying to make a server selector plugin and so far it's gone well so far.
So, I'm trying to use PlaceholderAPI in my gui which works as expected however this message keeps getting sent every so often in chat, I was wondering if anyone knows how or how I'm able to disable it https://prnt.sc/11cwlxk
i have a question about papi and if it supports scoreboard revision
because i used it and when i put %vault_eco_balance% it does not show that on the scoreboard it just shows it as "%vault_eco_balance%"
Papi doesn't affect the scoreboard by default, you'd need a plugin that modifies it that works with PAPI for that
No you need a plugin that modifies the scoreboard
Uh there are many options
KiteBoard
whats the best one in you're oppinion?
ok
so is that one that creates a scoreboard?
so should i replace scoreboard revision with this?
Oh you already have a scoreboard plugin?
wait KiteBoard costs money?
yes scoreboard-revision
Well yeah it's an excellent plugin
You'd need to reload that scoreboard or restart the server for it to show up
i have restarted my server many times
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
send your config
scoreboard
# ____ ____ ____ ____ _____ ____ ____ ____ ____ ____
# / ___\/ _\/ _ \/ __\/ __// _ \/ _ \/ _ \/ __\/ _ \
# | \| / | / \|| \/|| \ | | //| / \|| / \|| \/|| | \|
# \___ || \_ | \_/|| /| /_ | |_\\| \_/|| |-||| /| |_/|
# \____/\____/\____/\_/\_\\____\\____/\____/\_/ \|\_/\_\\____/
#
# Scoreboard-r by Rien Bijl
# rep: github : RienBijl/Scoreboard-revision
# v: R4 1.1 RELEASE
# Do not edit! The plugin uses this to determine if the configuration is suitable
config_version: 1
settings:
# The driver is the Scoreboard implementation used to display the user
# Old drivers will from now on remain supported so that switching back to
# an older (perhaps more stable) version is easy.
driver: SCOREBOARD_DRIVER_V1
# Should we check updates? Caution! Disabling this is not recommended
# you might miss awesome updates *wink*
check-updates: true
# In what worlds should we disable scoreboard?
disabled-worlds:
- 'non_existant_world'
board:
title:
interval: 3
lines:
- '&6&lP'
- '&6&lP'
- '&6&lPE'
- '&6&lPE'
- '&6&lPEE'
- '&6&lPEE'
- '&6&lPE'
- '&6&lPE'
- '&6&lP'
- '&6&lP'
- '&6&l'
- '&6&l'
rows:
1:
interval: 5
lines:
- '&c------------------------'
- '&4------------------------'
2:
interval: 80
lines:
- '&6%vault_eco_balance%'
ok there
huh
that is the scoreboard config
do /papi ecloud list installed
it says 1? luckperms?
in the folder i have both?
no
okay so you don't have the vault expansion
try deleting it from the folder and downloading it manually
ok
i put it in the folder
then i do /papi reload then it says no new expansions where registerd?
which folder did you put it in?
expansions
with luck perms
wait
luck perms is not in the folder?
oh god i bm deleated the luck perms
but im not using that one rn
yeah afaik luckperms is integrated in the plugin
hmm ok
and it is in /plugins/PlaceholderAPI/expansions/
yes
are you on linux?
mac
the server is?
on your mac?
yes
hmmm
i tried deleting the plugin and reinstalling it
i tried installing older versions
but it still does not work
@turbid tide you got any ideas
Please respect the rules, be patient and don't ping staff members!
nice barry
bro i saw you in #bot-commands
ok and?
i presumed you were awake?
what if I don't want to help? xD
why are you harassing me
I'm going to report you to the helpchat police
nice
time to read 
have you tried /papi parse me %vault_eco_balance% ?
That doesn't look like a PAPI message at all. Are you sure you didn't leave a debug message in your code or something?
see blitz! no expansions registered or in the directory!
that's a useful command tho ima write that down
Well you don't have the Vault plugin
of course the expansion is not registered
and?
omg nice
you don't have the actual plugin for vault??
No No No
download this
it ain't in the list
oh my god
im stupid af
ok il get it
i did them
and now it doesnt work?
oh yea lemme get the vault papi
OMG FINALY
TY Thank You Blitz!
okay so I've learned to never make any assumptions
I presumed that you'd have the plugin you want a placeholder for installed smh
you're welcome ๐
yes
we all are xD
xD
I recompiled and this doesnโt happen now, I mustโve left something there accidentally
Where can I find the list of the Placeholders for VoteParty?
=wiki voteparty
VoteParty - HelpChat Wiki
Description. VoteParty was designed to allow you to reward all online players
with customizable rewards when your servers gets to a certain number of votes
usingย ...
on the wiki
And thanks for the link!
I feel like I'm overlooking something obvious here. I have health, hunger, and exp level all showing up how I want, but I can't seem to figure out what placeholder to use to get output like the "armor bar" in the vanilla client UI? (Not a bar, just the current numerical value of all armor.)
that's because there is none
Then that would explain why I can't find it anywhere.
you can make a javascript placeholder to calculate it if you want
Thanks!
It requires some javascript skills but probably not that much
you can learn more about it here: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Not much, that's fairly straightforward. Thanks, again.
Anyone know how I can make a placeholder that checks if another placeholder is giving a certain output, and if true use one placeholder and if false use another placeholder?
I've been looking through that today and im very very lost. I see you can easily check for permissions but I cant find anything that lets you check for a placeholder.
Add a space to the chat format if there's a tag
var tag = "%deluxetags_tag%";
function tagFormat() {
return tag === "" ? "" : " " + tag;
}
tagFormat();
for example this ^
Oh I see! That helps loads
thank you
So i have the java script addon installed, yet I just realised, it is not working. /jsexpansion does not work and non of the community scripts/tutorial scripts work. I have the latest ver of papi and restarted after installing the javascript from via ecloud command.
/papi dump and send over the link it generates
go to plugins/PlaceholderAPI/expansions and you should have 2 javascript expansion JAR files in there
delete them both
and do /papi ecloud download JavaScript then /papi reload
Ah rip thank you
hi, how can i fix it?
[PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
see pinned messages. Download that expansion. the one from the ecloud is outdated
Does the progress bar placeholder have an option to have like a multiple of 10 show?
Or just a max value..?
An example is I have a vote progress placeholder but I don't want it to go to a max value, I want it to be a multiple of 10
so if you have 10, it resets and goes to 20 as the max
okay so how to fix this one? xD
- '%skript_ancient::Fovers%' > returns 5 (correctly)
- '%skript_ancient::player%' > returns <none>
So ive tried running my script but it just returns a blank space in chat. Would appreciate if I could get a point in the right direction https://pastebin.com/BRqH8k0J (3 ones ive tired)
wait
i got it working
all good, thanks for the earlier help!
pls help xD
hi is there any way to display %luckperms_prefix% but for other player? i mean i can display prefix of someone else
doesn't work... i dont receive a space
Please respect the rules, be patient and don't ping staff members!
- '%skript_ancient::Fovers%' > Returns correct number
- '%skript_ancient::player%' > Rerurns <none>
how to fix it?
Anyone now how to set a Relational Placeholders using java script extension? If its even possible. Need a relational placeholder for dchat prefix...
can you create custom variable with JavaScript Papi, i mean something like a shop but i would create a global fund like if a player purchases 10 diamonds that money is sent to "Diamond Fund" to make something similar like voting for mayor on Hypixel Skyblock or like in Prototype also on hypixel, like players can spend their money towards voting on next update for example
Why %player_colored_ping% make the number red when ping is low, and green when is high?
do /papi info player please and tell me the version
1.8.0
that's strange. 1.8.0 was supposed to fix that
defaults.put("ping_color.high", "&c");
defaults.put("ping_color.medium", "&e");
defaults.put("ping_color.low", "&a");```
yeah even the code
Mhm
thank you!
no problem
Hello, What is the version of PAPI for minecraft 1.12.2 ?
Latest will work
Anyone got any idea how I can do this?
Doesn't deluxechat have an option to enable relational placeholders?
and then you can use the relational expansion
instead
I think
hi, is there a placeholder for the remaining storm time? ๐ค
there isn't. I don't even think there is a way to see how much time is left unless you access NMS.
ok thank you ๐
Yes but it won't work as a prefix from my script, only as a broadcast or non player specific chat event
have you tried the actual relation expansion?
I tried this too, didn't work
the RelCon one?
Lemme check again
bcz I don't think the javascript expansion is actually relational
well actually I know for a fact it is not
Ah i tried using parse other, I'll give this one a try but will have to try tomorrow.
Ahh ok
So if this doesn't work it won't be possible unless I get a plugin that specifically does relational prefixs I guess
and a placeholder that represents some kind of stopwatch or counter?
Its not about the plugin. Its about the expansion
There's the %server_countdown one that you can give a date and time and it will count until then
otherwise you'll need to google StopWatch plugin or something
if you want like /stopwatch 1h
or something
ok I'll see that, thanks for your help 
Does parseother not work for offline players?
It does support offline players?
hello everyone, I am looking for a way to Check slots of the "CheckItem" extension
translated by Google
hi is there any way to display %luckperms_prefix% but for other player? i mean i can display prefix of someone else
hi
i want to do a progress bar with the placeholder but it doesnt work properly
because the underscore in "oak_log", the placeholder dont understand and dont work
How can i do to use item name with underscore in my placeholder
my placeholder :
%progressbar{rankup_requirement_item#oak_log_percent_done}_c:&a|_p:&a|_r:&c|_l:20_m:100_fullbar:&aComplet !%&
If someone know how to declare my oak log in this placeholder
Hello, do you know why?
https://prnt.sc/11i77nw
Maybe a stupid question, but what is the placeholder again for the amount of people online atm
%server_online%
Thanks ๐
I guess you have to ask that to the author of the rankup expansion you're using
you can use the ParseOther expansion
the author tell me to go here x)
uh
well
try to do /papi parse me %rankup_requirement_item#oak_log_percent_done%
what does it show?
what's your Rankup plugin?
nice thanks ๐
Rankup3
does it work if you use another item? like stone?
This placeholder work for all items who does not have any underscore in name
when i try this command with stone instead of oak log, i have only a blank space in chat
then try to contact the author again and tell him that you can't get the placeholder to work, I don't think PlaceholderAPI is at fault since it's his placeholders, idk, but try to ask him
ok thank you so much for your help
hi, I want to make my plugin install "bungeecord" from the placeholders, is there a method to do this and how can I check if its already installed.
I know I could technically just run the command /papi ecloud download bungeecord but im wondering if there is a built in way to do it
||It's the Bungee expansion actually ๐||
and I don't think there is, TAB does this https://github.com/NEZNAMY/TAB/blob/master/src/main/java/me/neznamy/tab/platforms/bukkit/features/ExpansionDownloader.java#L60
@rare lily Unknown expansion.
@rare lily Unknown expansion.
what do i use if i want to display a players /nick as currently im using %player%
%player_displayname% will probably work
essentials /nick?
do i have an ecloud to install to make it work?
yeah essential nick
im making it so when player ranksup it broadcast there name or nick
yeah you do have to download the Player expansion. /papi ecloud download Player then /papi reload
and then please do /papi parse me %player_displayname% to test if it works
or not
that works thanks
no problem
Hello, I have the error : [PlaceholderAPI] failed to download expansion information
somebody can help me ?
hi i would like to know why the {simpleclans clan isanyonline} and neither the %simpleclans_clan_onlinemembers_count% works on the featherboard
hi is there a placeholder that stores values? for example, as the /scoreboard dummy
FeatherBoard uses MVdWPlaceholderAPI instead of PAPI, so if you want to use PAPI expansions you need to do {placeholderapi_(whateverplaceholder)}
Ah, relcon is permissions only it seems, I cant use permissions, need it to check for if a placeholder is true or false (which is what my java script does, but its not relational)
Please respect the rules, be patient and don't ping staff members!
Infact even if its not permissions only i cant get it to work. I've installed it and nothing happens, non of the relcon placeholders seem to work. If anyone can help me with why I would appreciate it. https://paste.helpch.at/budavipori
{placeholderapi_ (whateverplaceholder)} is not working
ty now it worked
hi i was wondering if there is a way to display the players head as an item who has opened a deluxe menu gui
like what is the placeholder for it
?dm-heads
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/
b
How to use custom heads in DeluxeMenus:
lol
thanks
also sorry to bother you again but is there a placeholder to show the players balance using an economy plugin connected to vault
thanks
i feel like an idiot to constantly ask you things and im sorry to bother you but what would the placeholder be for the players balance?
sorry again
its %vault_eco_balance% right?
thanks
would you mind if i were to private message you a picture to show you my issue?
?imgur
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.
๐
yeah sorry I posted an issue with some placeholders and found the solution through testing
didn't realize parse other required a placeholder to find player name
excellent! self-learning is always the best experience for someone
%parseother_{player}_{armor_material_helmet}% doesn't seem to work though sadly
{player} is a dm variable, so maybe thats why
I could set {player} to a deluxemenu meta and then use that as a placeholder ๐ค
ah I seeee
I also have plans to detect if the player has never join ir if they are offline
dang that is such an easy thing to do with plugins but I can see how hard it is with just deluxemenus
I commend you for your work lol
lol
@warm plover Maybe this helps:
menu_title: '&8&lStats'
open_command:
- stats
register_command: true
args:
- target
args_usage_message: "&cStats: /stats <player> "
size: 54
items:
'helmet':
material: placeholder-%parseother_{{target}}_{armor_material_helmet}%
amount: 1
slot: 10
priority: 2
Is it possible to translate message from placeholder api? For example I'm using Quests and when i write %quests_player_can_accept_quest_Czy jest tutaj miejsce dla mnie?% im getting true. Can i change this message?
uh
you can write javascript wrapper placeholders that just call that placeholder and return whatever you want?
uh
cause what those placeholders return is based on the expansion developer's code
so complicated
Is there easy way?
if you know Java and if they're open source, you could make a custom one for you
Not that I know of, since they're all independently controlled
so should i write to... developer of addon?
I severely doubt they'll add a whole language translation
It's just not something PAPI currently supports
Dossn't papi support a language file for Boolean outputs?
I'm 99% sure it does
not last time I checked; each expansion outputs its own thing, such as yes or no or true or false
But it doesnt work
There is set yes for true but it doesnt work
oop
Im still getting true
Ok, I will
my placeholders not working
which placeholder?
%player_name%
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
yes
do /papi dump and send it here
what does /papi parse me %player_name% say in chat?
my username
so where is it not working?
do you have holographicextension?
no
ok thanks
sorry but still not working
only not working with the holographic display plugin
did you refresh the holograms?
yes
restarted the server and everything?
yes
do another /papi dump
and they have the same plugins and everything?
yes same version same evrything
You need ProtocolLib
are u sure
It also injects your favourite placeholders from PlaceholderAPI (requires ProtocolLib)
hey, does papi work with crazy crates? crazy crates says it does but papi doesn't
papi doesn't need to support plugins, then need to support papi ๐
ah right, thank you!
how do I enable the expansion? I can't work out what it's called
You don't need to enable it; it's part of the plugin already
weird it's not working, ok ty!
Is there a placeholder for server status bungeecord
There's a placeholder for the players online on a server
You can use pinger if you want to check if a server can be found or not
is there one that shows that a server is online or offline
%pinger_online_testplugins.com:25565%
will return whether it's online or offline
you just put the ip in
/papi ecloud download Pinger
/papi reload
You'd have to contact the developer of that expansion. Or alternatively make an issue on the github for it: https://github.com/matahombres/Advancements
Hey so using the armor placeholder, it says a stone when they have nothing on in that slot, is it possible to be changed to like a barrier or something?
and is it possible to get the display, lore, and stuff like that of the armor piece?
Will update the armor expansion at some point
yo I'd PR but rn I have to many things to do
Nah it is just broken
Hello is there a world guard placeholder to get the priority of a region
it would be really useful lol
I see this %worldguard_<Any WG Placeholder>_<Priority (Lowest number = Highest priority)>% but don't know if it can grab the priority ๐ค
that just parses the placeholder for the region with that priority
Hey guys, im trying to add player kills to leaderheads with Statistic extension on papi but it doesnt counting any kills. my server version is 1.8.8
so for example if you have 3 overlaping regions with priority 1, 2, 3 you can parse placeholders for all of them
otherwise it would just take the priority 1 region
Is there a way to just get the number of the priority of the region im standing on
/papi parse me %statistic_player_kills%
what does it return>?
I'm trying to do something for a project lol
Nope doesn't look like there is any
Oof that sucks
but the thing is that won't really work because regions overlaping it will just take the priority of the highest priority region
I don't really see the use myself
Could I explain what I'm working on? :P
I mean sure but yeah I can't do anything about it. Just contact the dev and see if they can add it (the dev of the expansion not the dev of worldguard)
bassically I have a boss bar and a floor based map
I wanted to make the boss bar change progress depending on the floor
Crypt: style: "NOTCHED_6" color: "RED" progress: "%math_0_16*{worldguard_region_name_capitalized}%" text: "&cCrypt Floor: %worldguard_region_name_capitalized%"
It works with other ones besides the top floor which isn't really a big deal ig
I was thinking if I could get it to multiple by 0 it would work
0 and always 0 :(
Please respect the rules, be patient and don't ping staff members!
even if you make kills?
Yeah
what type of server do you have? paper, spigot?
Taco
Enchilada!
and you said 1.8.8 right?
Yeahh
Burrito
can you go to server/world/stats and open the file with your UUID? see if the kills are still 0 there
it should look something like {"stats":{"minecraft:killed":{..., "minecraft:player": 10, ...}}}
ugh maybe Taco doesn't register kills the same way?
yeah i think so
Can you try switching to Paper maybe? Just to test
are you sure you're looking in the correct world folder?
also get some kills first
it might generate after that
sure
also it needs to be the main world. the one set in server.propreties I think
this is strange. What folders are there?
Maybe it was different in 1.8 and I don't remember
data, dim-1, playerdata, region
and files are
level.dat
leveldat_old
session.lock
uid.dat
hmm this is very strange. I'm not really sure. All I can say is the placeholder works but the kills are not stored. I do not know the reasoning tho.
๐ญ
is that world a release world?
if not try making a new world and setting it as the default one
I'm really not sure what might cause this. I haven't worked with 1.8 in a long while
sad
Vault and others are working only Statistic are not working
i started to think it was a version problem or something else
its either version problem or server problem but not sure. The placeholder clearly parses to 0 so it should work
it just doesn't find any data
where its looking
%checkitem_remove_mat:tripwire_hook,amt:1,namecontains:Floor {math_0_1+{deluxemenus_meta_GATE.NUMBER_INTEGER_0}} Key%'
How could I use placeholders inside of placeholders with checkitem?
I don't think that's possible how you're trying to do it
you'll probably need to make a javascript placeholder for that
placeholder inside placeholder inside placeholder is not possible
:(
would you know a way I can do it with a javascript placeholder lol
I don't know much about js
Wait I'm dumb, I think I just got it to work, the math stuff was uneccasary, I over complicated it lol
I mean its pretty easy just js var meta = parseInt("%deluxemenus_meta_GATE.NUMBER_INTEGER_0%") function mathStuff() { return meta++ } mathStuff()
ah I see xD
well
this is all you needed ^^^
awesome thanks
I installed HolographicDisplays, HolographicExtension and Protocollib but in the Hologram is my Placeholder not showing.. How do I fix this?
My plugin is AdventureValley.
(I tested %luckperms_prefix% from Luckperms rn. That works..)
Nvm I just reinstalled the Plugins. Works now. Thx ๐
ah ok. Nice
holographic placeholders + protocollib
You can't put placeholderapi placeholders in?
wdym to laggy? I've never had problems with it
But how can I make it now so that it "auto updates"?
(I display money on the Hologram, and the money ammount changes.)
you add the tag {fast} at the start of the line you want to update
If theres more than than like 50 players near holograms with placeholders in, it causes a lot of issues
Ah thx
Try making it update less frequently
It's not that
I just need a better alternative
It's like 10tps lag, not just a small amount
well I guess you can try HolograhpicPlaceholders
But now is there a Space infront of the Line. Can I remove that space anyhow?
link?
Yeah thats trash aswell
can you show me how the line looks? In database.yml
I'll get one made
Use this plugin https://www.spigotmc.org/resources/holograms.4924/ instead then?
for holograms
needs to be holographicdisplays lol
well those are the existing options
We depend on that and essentials for like everything xD
Yeah it's fine I just wanted to see if there was a public one thats decent before I get one of the devs to make it
I sent you the image per DMs. as I cant send images here.
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Ok
hmm that's strange. I've never had space appear because of that tag
Can I put the tag somewhere inside of the line too?
I don't think so. You could try it tho
But from what I remember it has to be at the beginning
Ok gimme a moment
Ok worked
/hd setline entrance 3 &eYou have{fast}&6%avp_money% Coins&e!
oh nvm then. Maybe it has to be before the placeholder
then
I don't remember exactly
It works so thx ๐
Btw can I use Placeholder API on signs without a extra plugin too?
I don't think so
Ok sad
@warm plover can you test this for me?
yo gaby u got like 10 minutes to help me with dmenus epic heads support? bcz this shit confuses the fuck out of me
wdym?
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/
the d option
its just broken and I can't figure out why
I assume its the API that's outdated
but its strange that it does exactly what head- does
Is this where we get help?
I think it uses the api of the plugin before even it was bought by songoda
with PlaceholderAPI? yes
ยฏ_(ใ)_/ยฏ
yeah I guess is time to join their discord but @wet creek already asked for me and no response yet
not talking rn. Working. You can just ask in chat
I can multitask but can't talk lmao
also I muted you bcz I wanna hear music
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Ok so i'm using a name tag edit plugin called TAB
I'm using saber factions and i'm trying to display the players faction name under their name tag
it's displaying the factions but not the right faction per player
It
it's showing my faction under a player and his faction under my nametag
makes no sense
classic-vanilla-belowname:
#enabling the feature
enabled: true
#number or numeric placeholder, supports per-player placeholders
number: "%factionsuuid_player_kills%"
#text after number, must be same on all players
text: "&e%factionsuuid_faction_name%"
that's bcz of how TAB works I think. It uses relational stuff I think
Also whenever I broadcast and use {PLAYER} it will give a completley different players name
vouch
wait nvm
that won't work
try asking in TAB support if there is a way to disable that
the relational stuff
I would show screenshots kind of hard to explain
yeah I understand what's happening
the placeholder is parsed for the viewer
not the one under who's name it is
It's so weird
My alts faction name is WensFac my factions name is Solar and the factions are reversed under our nametags
It shows my faction under my alts name tag
i'll go into the tab discord
I got one more question
Not only do I want the faction name to display under the players name tag I want the factions relationship to color the factions name
%rel_factionsuuid_relation_color%
How would I go about that?
2 place holders?
probably text: "%rel_factionsuuid_relation_color%%factionsuuid_faction_name%"
will do later
i tried that it just shows the faction name then the raw text for the color placeholder
Parsing shared text for viewer is intentional to offer conditions with per-world / per-server text which requires the player to parse, but displays it the same on everyone (in that world), allowing per-world text
Unfortunately it allows misconfiguration like this which makes it much less obvious you can't do it
It was added when someone requested it exactly for this purpose, then he decided he doesn't want it.
hi
is there a placeholder which displays the combined amount of players of 2 or more servers?
%bungee_total% displays the full amount of players on all servers connected to the bungee
i know but
isnt there a way to display only for a certain amount of servers
for example
i wanna track lobby1 & lobby2 only
is there a placeholder or anyway to display them?
%bungee_<servername>% Shows the count for just one server.
Those are the only two placeholders for bungee that I know of, I don't think there are any others.
You could maybe use a javascript one, and use multiple %bungee_<servername>% for each server and add them together.
hi %objective_score_<obj-name>_offline% for players offline?
Use the math expansion
%math_0:_{bungee_server1}+{bungee_server2}% Iirc
The statistics expansion I think
%statistic_time_played%
@sterile cradle I answered you on spigot
Thankss i will take a look!
I replied : D
you can here btw if you want
Make sure chatformaat is not null
It isn't..
e.setFormat(PlaceholderAPI.setPlaceholders(player, chatformaat)); this is line 20 right?
Thats the problem : (
Yesss
try parsing the placeholders and setting the string to a variable first and check if that is null or not
final String chatformaat = Kingdom.instance.kGetConfig().Chat_Format;
final String test = PlaceholderAPI.setPlaceholders(player, chatformaat)
if (test == null) {
// LOG MESSAGE
// RETURN
}
e.setFormat(test);```
I'll try that thanks!
Still gives me the same error ; (
final String chatformaat = Kingdom.instance.kGetConfig().Chat_Format;
final String test = PlaceholderAPI.setPlaceholders(player, chatformaat);
if (test == null) {
System.out.println("Error, het is niet goed!");
return;
}
e.setFormat(test);```
what line is the error on?
can you send a pastebin of the error
and a pastebin of the entire class
please
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
Is it formatted?
yep it is
Thanks
Do you have PAPI installed on your test server btw?
Yesssss
But as i said in my discussion/thread ```java
e.setFormat(Lobby.instance.getCConfig().Chat_Format.replace("%vault_prefix%", PlaceholderAPI.setPlaceholders(player, "%vault_prefix%")));
https://i.imgur.com/zXioJjs.png is there anything wrong here? deluxemenus 1.13.1
/papi ecloud download Player
thanks ๐
Npp ๐
why 1.13.1 tho?
so it says line 25 but line 25 is a }
that ends this
if (Kingdom.instance.kGetConfig().Use_Chat){
could it be that this option is null?
Ehh
Its this
moment
Chat_Format = ChatColor.translateAlternateColorCodes('&', Kingdom.instance.c.getString("Chat_Format"));```
And this in the config:
Chat_Format: '&7%vault_prefix% &7%s&f: &7%s'
So it shouldn't be null right
yeah but Use_Chat ?
#Chat options.
Use_Chat: true # ->>>> If you turn this to false, the whole chat system of this plugin will be disabled.
Use_Chat = Kingdom.instance.c.getBoolean("Use_Chat");
But that isn't it
Because when i don't use placeholders in the config
it works fine..
I'm having a brain fart rn. 1 second
same xd..
I feel that theres just something wrong with this..
final String test = PlaceholderAPI.setPlaceholders(player, chatformaat);```
I updated to to the latest dev build and got this error https://paste.helpch.at/zadevibede.sql
That's an error for your bedwars plugin, not placeholderAPI
And apparently it doesn't know what world it's reading from the config
my bad, wrong server, sorry
๐
how do i set online players for another server?
im running bungee but its showing only the people who are in the lobby
use this expansion ^^^
does anyone know alot about rocket placeholders plugin?
anyone know why I have to reinstall different extensions for papi every time I load the server backup?
you mean like restart the server or what? or re-install all the plugins
yeah, whenever the servers is switched on for whatever reason
its stored in jar files in the extensions folder in plugins/PlaceholderAPI/extensions
So, if you move those over it'll be gucci hopefully.
Hello, yesterday I installed PlaceHolderAPI for my server, I am unsado DeluxeHub 3 for my lobby and I wanted to complement it with the Vault extension, I put the command / papi ecloud download Vault, and then / papi reload, but in the mc chat I got a " No expansions were registered! ", Please help I don't know what to do
Anything in console?
Install plugin Vault as well first. Also check for errors in console
Ok, I already installed the Vault plugin but in the console I get this "Class loaded net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 that is not a depend, softdepend or loadbefore of this plugin."
<- cube