#placeholder-api
1 messages · Page 102 of 1
How can I use PlaceholderAPI timer placeholder to countdown to a specific date + time?
%server_countdown_<SimpleDateFormat>_<time>%
Does anyone know of a placeholder that can format other larger placeholders
For example something that changes 1,690,000 to 1.6M
a few things:
- as far as I know it only works for money
- I think it rounds up rather than truncating
Just take it from here smh @mint fable xd
what
And it does work only with number, I will make it remove dots and commas
you're the one with the expansion
Search it in this channel, im not at pc
also wdym by player points @whole temple
thank you
Thanks!
make sure not to use , though
because it doesn't remove those yet™️
Yes thats fine. Its just integers
Why hasnt Formatter been added to the cloud? Just curious.
Most likely in the testing phase
Ah I see thanks!
^^^
Yes
What nerd made the pinger expansion?
let's find out
Clip
😮
isonline returns a string? what?
Which would make more sense, considering what it's named
^
yeah
but what does online return frosty?
asking the dude, I'm too lazy to test, just wait a bit I'll pong u
Or check the code
no
Effort
maybe pin https://discordapp.com/channels/164280494874165248/573429521554866178/706549042049712189 @vivid sparrow
for usage
or just upload it to the cloud
^
just a wild idea
Shut up
I have a problem: No placeholders work.
you have placeholderapi installed?
I use MVdWPlaceholderAPI for ONE last plugin, almost done switching off - anyone know a decent AnimatedNames alternative? It's the last one v_v
okay
it's like this on multiple servers with multiple plugins
and you're looking at the placeholders from the latest version of the placeholder documentation?
I was using them, in this case %player_name%
I was using messagesgui
do I need any dependencies or something that I missed?
oh I need to download them
if you're using player I believe that's a separate module
I also have a problem using %vault_prefix% (Vault extension is downloaded)
which permissions plugin are you using?
because if it's LuckPerms I'm not sure whether it supports Vault by default
I know luckperms supports vault I just don't know whether it supports vault by default (a.k.a it doesn't need a config option set to true or something)
when I used it I needed to install it as dependency.
but that's not important, I need to fix it for Ultra Permissions
you've checked the config to make sure it doesn't need configuring?
I will check the config and the settings
there is a setting that seems a bit like it is for vault (but I am not sure) but it doesn't seem to change anything
it's called Default Permissions
@sinful meteor
you know by the way that you can just use UltraPermissions' built-in PAPI placeholders right?
Oh
It disables.
^^^^^^^^^ does what it says on the tin
What does it mean though?
Does it mean that I don't need to download the placeholders?
Oh ok
or so I would imagine
Correct.
Hey there :P
Is there a way to reset placeholderapi data (only for one placeholder)?
Thank you in advance
What placeholder?
^
%statistic_cake_slices_eaten%
the statistics are stored in player data files located in the world folder
so I would have to delete whole players data to reset it?
Al pa sam tist specific line, sam mislm da bo corruptal file ce to nardis
you can also edit the files if you know what you are doing
is there a placeholder for player_empty_inventory_slots_qty?
@austere hawk
https://www.spigotmc.org/resources/statz.25969/
%statz_blocks_broken_<block_ID:data>%
%statz_blocks_broken_<block_name>%
^^
all good
what is the command?
-papi <expansion>
cheers
What is the ecloud for saberfactions and ftop
@short osprey They parse/dispatch plugins informations with placeholders
In scoreboard, you can put %ezrankspro_rankprefix%
EzRanksPro (a plugin) will return rank prefix to this placeholder (PlaceholderAPI) and PlaceholderAPI will send this to a scoreboard plugin (FeatherBoard for example)
It's a bit of a way to communicate information between plugins
I am having aa issue where when i use the placeholder it pushes it over or doesnt show all the text. THis is on my scoreboard
the problem is that until 1.13 or something like that the scoreboard only accepts 16 characthers. I think the only way to fix it is to update
missing essentails econemy
-SuperBVote
Do -papi
@bronze zodiac Unknown expansion.
@bronze zodiac to use essentials economy you need to use vault placeholders
oh if you don't have it then install it. you will need it for more than just essentials economy
yes
Im trying to use %formatting_format_{playerpoints_points}% in BungeeTabListPlus. But it only allows PAPI placeholders inside ${} and the {playerpoints_points} confuses it. Is there any other way to writing %formatting_format_{playerpoints_points}%?
The way i've tried already is ${player formatting_format_{playerpoints_points}} and it doesn't work
${player formatting_format_${playerpoints_points}} try this way. I am not sure it will work but it is worth a try
uh
you could always put it in a javascript placeholder
🤷♂️
slightly annoying that btlp does that
the fact that it removes the need for %% is slightly weird
they should just add %% back and then parse the entire thing as placeholders
and then run it through their own system
Hey could anyone help with the javascript addition to Papi
Hey y'all I've searched for quite a bit and was wondering if dynamic text is possible?
For example:
I have a custom item that I want to change the lore of every so often. So if my players have say, a diamond pickaxe with lore placeholder "%custom_text%" I want it to pull information from a custom_text.txt document or a similar way. That way if I change that info in the text document it updates every pickaxe with the new lore. If that makes sense.
I am not sure but maybe javascript?
You asking for a custom plugin or? Because unless you have something which would re set the items lore, that won't work
I looked into javascript expansion it might be what I want.. but no outside of a custom plugin. It'd just be %custom_text% in the lore of and item and it references say a document/skript/javascript. Changing it wherever would update that items' lore.
Not possible, yes you can update the text, however you'd need something to update the item's lore
So probably we would listen for say.. they move it to a chest from inventory vice/versa. login/logout
You'd need a custom plugin for that
You can't listen to events inside JS, meaning that's your only option
gotcha, thanks!
Anyone here use MassiveCore Factions and use PAPI for placeholders? I can't seem to get mine to work. I tried it with the MVDW placeholders and that seems to work so not too sure why PAPI isnt able to work. I've downloaded the expansion and everything like that.
Anyone know something about Javascript placeholders having issues with concurrent usage? Used a javascript placeholder in chat and tablist and they would sometimes not output their return text/ output their return text twice.
need help with placeholder checkItem
who can help?
how to connect that with requirement at deluxe menus
does that returns true and false...
no
depends on what placeholder you use
%checkitem_amount_<modifier1>,<modifier2>,<...>% returns a number
that you have
%checkitem_<modifier1>,<modifier2>,<...>% returns yes/no or anything you have set in palceholderapi config to return
so if you haven't changed anything it returns yes or no
can i send you code
so you want to check if the player has 3 items
no no
that have the name which contains that?
SKULL_ITEM
skull_item:3
check that player has 10 heads
what is your server version?
1.8
what does /papi parse me %checkitem_mat:SKULLITEM,namecontains:&6Pig Head%
return?
oh wait
again
I made a mistake
try this
/papi parse me %checkitem_mat:SKULL_ITEM,namecontains:&6Pig Head%
try this command and see what it returns
no
then try this one: /papi parse me %checkitem_mat:SKULL_ITEM:3,namecontains:&6Pig Head%
oh well
and 397:3
use data for data
oh right
/papi parse me %checkitem_mat:SKULL_ITEM,data:3,namecontains:&6Pig Head%
I hate 1.8-1.12 😦
good thing that cj is here to save the day
try the one I gave above
nothing
/papi parse me %checkitem_mat:SKULL_ITEM,namecontains:&6%
said no
on yours
on mine
said yes
but if i write &6P or &6Pig...
said no
maybe it's &6&LP or something
- '[console] im remove %player_name% skull_item data:3 name:&6Pig_Head skullOwner:Pig 1'
this removes head
ill make heads.. all start with another color
smh
If I update PAPI, will I have to redownload the ecloud expansions?
/papi parse me %rel_factions_relation_color%%factions_faction%
When I run this command it doesnt show the color just the faction name... I use MCore factions and all that. Anyone know how to fix this?
- Update PlaceholderAPI
- You have the Skript expansion but you don't have Skript installed.
This error wouldn't be occurring if you were on the latest version.
Then remove the Skript expansion.
update, restarted server
09.05 23:57:27 [Server] ERROR Could not pass event ServerLoadEvent to PlaceholderAPI v2.10.6
Sounds like you got bigger problems then.
Startup log
Is there a placeholder for SuperMobCoins?
@mint fable Unknown expansion.
Guess not
bruh imma slap a man silly
@tulip schooner
have you checked the plugin page?
Like... at all?
it's in the features right near the top of the page too
Was asking nicely. Because I did not see anything on the github Wiki page of Placeholders. You don't have to rugged things out.
I just don't understand not checking the plugin page 🤷♂️
it means the author of supermobcoins didn't reach out to us
How do I use this for the time
%server_countdown_11.05.2020_00.00.00%
Because that says invalid date
you didn't give a format, check that link out
Im so confused
%server_countdown_<SimpleDateFormat>_<time>%
Just for reference what would it be if for example I wanted to set the countdown to countdown until tonight at midnight
you put the format on the left
and the time on the right
did you see the example?
%server_countdown_dd.MM.yyyy_01.01.2020%
o
dd.MM.yyyy is the format
O shit im stoop
01.01.2020 is the countdown date
ty
👍
Sorry about that
Hey there 😛 I use PAPI and i tried /papi ecloud download LuckPerms and when i do /papi reload after that this error pops out ^
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
nvm this worked thanks bot xD
The question is to WorldGuard expansion. Is it possible to find out if the player is the owner of the region in which he stands?
I found only %worldguard_region_owner%, but it gives me owners list ("nick1, nick2, nickN")
Afaik no
javascript
@mint fable so I need to separate %worldguard_region_owner% by ', ' and then check if it equals to player's name, correct?
sounds good to me
Hi!
I have some problems with the log, anyone can help me please?
.... [17:11:04 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.10.6 generated an exception while executing task 104
java.lang.NoClassDefFoundError: com/iCo6/system/Accounts
at net.milkbowl.vault.economy.plugins.Economy_iConomy6.getBalance(Economy_iConomy6.java:129) ~[?:?]
I deleted the Iconomy6 but I have that error
It means whatever com/iCo6/system/Accounts is cannot be found.
Then you're probably using some kind of expansion for it.
Ensure that you've removed it from your expansions folder.
okay thanks dude 😄
Yup!
where i can find text for &4You do not have permission...
i want to edit color of text
Placeholder to count items collected? Like how on hypixel it counts total collected from mining/minions
Look into statistics
Statistics can only count blocks broken, I want collected, like unique items that go through your inventory
Yeah I don't think something like that exists without a custom plugin.
I'm not aware of any public plugin like that.
Crap...
hey guys
how would i go about making like a ranking of who has the highest kills in order
is this possible
So the issue with that is you can't get the statistics of a player who is offline.
There are plugins like Statz that allow you to track it though.
Unsure of how updated it is.
i see here that it can parse players killed per player
probably no good way to do a list huh

I know plugins like LeaderHeads allow you to do fancy stuff and create Leaderboards but I believe it's paid and I'm not aware of a free alternative.
Hello! Is it possible to use papi placeholder from Factions on 1.15.2 JE in the Chatex Tablist?
It seems no
|Tablist:
Change: true
format: '[%factions_faction%] %prefix%player%suffix'|
Here is the code fragment
And the tablist shows me something like [%factions_faction%] [God] exterminated
But not the faction name
??
have you downloaded the expansion?
/papi ecloud download Factions
/papi reload```
but still the plugin might not support PlaceholderAPI placeholders
Yes
then the plugin might just not support placeholder
can i run the command "papi parse %player_name% %javascript_cooldown_1_start%" in server console?
Depends, do you have a player instance? (As in where are you trying to do this)
it said "This command can only be used in game. "
Would there be a placeholder to determine if a certain player is online?
%player_online%
ah thanks
Hello, im trying %bungee_<servername>% but neither %bungee_KitPvP% or %bungee_<KitPvP>% works
it always keeps giving 0
i made someone join kitpvp server and it updated the scoreboard but it doesnt change
are you sure the name is KitPvP and not kitpvp?
also try it using /papi parse me %bungee_kitpvp% and see if it works like that
So I remember there being a placeholder that returned a list of online players but can't find it. I remember it being %essentials_list% but that is not the one. Anyone got any ideas?
isn't it ListPlayers ?
@junior muskThe eCloud is currently non responsive, please report this to staff in https://helpch.at/discord
@junior musk Unknown expansion.
yeah
@junior muskThe eCloud is currently non responsive, please report this to staff in https://helpch.at/discord
if we're talking in the discord lol
so the players that are online?
like a list??
I don't think that is possible
I think you can only see if that server is online and how many players are online
actually
%pinger_players_testplugins.com:25565%
I think this returns a list of players on a server as well
okay ill try
Allows you to show, how many players are online on the entire network, or just on a specific server.
%bungee_total%
%bungee_<servername>%```
not who is online but how many
hey i have a problem with VoteParty and PAPI
I can't add on cloud VoteParty
@shrewd sierra #spigot-linking
No expansion found with the name : VoteParty
well that doesnt do it, it doesnt show how much
ive tried that alr
is it case sensetive?
the server name
yeah I know what you mean
so if server name on the bungee is KitPvP i have to put exactly that in
oki ill try i guess i think i alr had that
also test /papi parse me %bungee_KitPvP% and see what that returns
oki
it doesnt work
my friend went on kitpvp server and it gives 0
./glist shows him on it
help me
please
the command /papi ecloud download VoteParty doesn't work
no expansion found
but %bungee_total%" does work @turbid tide
Voteparty doesnt need one @shrewd sierra
really?
``VoteParty
NO DOWNLOAD COMMAND
%voteparty_votes_recorded%
%voteparty_votes_required_party%
%voteparty_votes_required_total%
%voteparty_player_votes%``
no download command needed
it says
@turbid tide %bungee_total% works fine but /papi parse me %bungee_KitPvP% still gives 0 even tho my friend is on it
it works with featherboard?
no
yeah
Featherboard uses diffrent placeholder
yeah
{placeholderapi_voteparty_votes_recorded}
but @turbid tide what now
also for anything voteparty related please go to #spigot-linking
well @austere hawk have you downloaded the expansion?
yes
i just said, bungee total does work
but specific server doesnt
its the same expansion
XD
I will lose track of messages
maybe theres a bugg in the placeholder?
becaus 1 of the 2 placeholders in the Bungee expansion just doesnt work
@final shadow sorry for the tag but might this be a bugg?
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
try using the pinger placeholder instead
which?
so %pinger_online_testplugins.com:25565% will show amount of player
in numbers
no
it will show if the server is online or offline
%pinger_players_testplugins.com:25565%
oh okay thx
@turbid tide still doesnt do it i dont get it, (i only got PlaceholderAPI in the Lobby server btw
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
%pinger_players_5.255.77.22:25568% doesnt give the players of of it
hello? can someone help still?
i just want a scoreboard in the lobby of my bungeecord to see other server's player amount
thats it
ive only got placeholderapi in my lobby
are the other servers in your bungeecord?
yes
^^
and?
is the name correct?
does total show 0 as well?
so are you sure the servername is correct?
it needs to be the exact same as the one in your bungee configs I believe
yeah
case sensitive?
%bungee_KitPvP% just gives 0
try all lowercase
its in bungeecord as KitPvP
oki
doesnt placeholderapi have to be in the proxy server aswell then to check the amount?
No
It uses channels (which is what bungee uses) to retrieve player counts.
im still trying
wat
gotta startup a second mc to check it since nobody is online atm
i see
Isn't it something like plugin messaging doesn't work if the server is empty?
I forgot the circumstances around that.
huh? what do you mean?
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Channels require 1 or more players online for it to properly work
Which if no one is on, might explain why the playercount is always returning 0
Which also would make sense
no i mean when someone is online on that server is still gives 0
it always giveds 0 no matter if anyone is online
Ahh
glare is a fool
no u
How's the lowercase testing going?
the what
@austere hawk
is what still valid
That method of getting players
Someone might need to debug that then
XD
Could probably just add a debug to each line here to make sure it's actually working https://github.com/PlaceholderAPI/Bungeecord-Expansion/blob/master/src/main/java/com/extendedclip/papi/bungeeexpansion/BungeeCordExpansion.java#L138-L150
i don't have a bungee setup
kk
what do u want me to send?
bungee config
bungeecord config?
@trim mist can you point me to where it even gets the players
I don't understand how it even gets servers
The plugin messaging
but where does the value come from
I see in.readInt()
but where is that integer set
Rephrase
It's an implementation of the PluginMessageListener class iirc
Which is built into bungee
but don't we send AND receive the message?
Yes, this is what listens to it being sent
oh wait wait
Does it return 1 per person or something?
because I see the received takes a player
Line 62 it hooks into the channel
ye
When that channel gets a message from something like bungee, it handles it.
yes
I get that
i just don't know how the actual player count is even gotten
unless it sends a message per player
👍
oki
just for sake of IP
if I learned how this expansion works I might be able to fix, but I got no idea sadly
wait for a fix? I know it's worked for a ton of other people
ah
its 1.15.2-1.7 but server is 1.15.2 yes
Uh idk why
y
it does send 1 per player
for some reason I feel that could be done easier
just get the count and return it, right?
i don't get where the int comes from tho
It's passed through the byte or whatever
I get that part
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
oh wait wait
I think
ya lemme see that
oh i'm dumb
big dumb
i never clicked that earlier idk why
https://imgur.com/koUODYk on this one u can see hes on Kitpvp bnut it doesnt show on scoreboard using %bungee_kitpvp%
have you tried using /papi parse me %bungee_kitpvp% or /papi parse me %bungee_KitPvP%?
ignores case
it don't work @turbid tide
that's what the whole wall of text is from me and glare and aethix
well I didn't read it xD I just saw that he is trying it on scoreboard so I assumed maybe the sb is broken or not accepting palceholders
ye
is there a placeholder to check if a player is wearing a certain item? CheckItem seems to check in the entire inventory, can't see a modifier for a slot
@turbid tide it all works fine on scoreboard
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
u need to put in which servers to track!
right?
or not anymore?
You need to specify the exact name of the server you want to check (case sensitive) also
ill try it
ill just try
yep
Pls no tag anymore today. Got an exam in 30 minutes.
gl
goodluck glare!
ive changed:
bungee: check_interval: 30
to
bungee: tracked_servers: - Lobby - Kingdom - Survival - KitPvP check_interval: 30
no error in console
?codeblocks
Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```
For example:
```yaml
test:
- “hi”
- “there”
```
Produces:
test:
- “hi”
- “there”```
i know how they work lol
but
@mint fable is it possible that placeholderAPI has a refresh time?
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
and can i lower it?
becaus parsing %bungee_Lobby% does give 4 (correct number)
but on scoreboard u saw scoreboard refresh a few times at 3 and refreshes later to 4
@austere hawk check the config
bungee:
tracked_servers:
- Lobby
- Kingdom
- Survival
- KitPvP
check_interval: 30```
changed it to 1
the tracked servers doesnt make a diffrence XD
why are you doing check_interval 1
that's insanely fast
I recommend not checking that often
I'd say 30 or 60 personally
idk why else it wouldnt do it becaus %bungee_lobby% does work but %bungee_KitPvP% always gives 0 even when someone online
doesnt Papi have to be in the Proxy?
ive only got it in the lobby right now
are you on the lobby server?
yea
what if you try it from the kitpvp server
bungee_lobby*
i meant %bungee_lobby% gives me 1 right now
lobby gives 1 kitpvp 0
now go to kitpvp and do the same
oh gotta install papi on there sec
what
wait u gotta have papi installed on all servers u trying to find?
i asked that b4 if i had to have it on any other server XD
just asked in chat
why never test it tho
cuz that admin said it checked through bungeecord itself so i thought okay wont need then
or smthng
I believe he was saying you don't need it on the proxy
because I remember you asking about that
at least that's how I read it
yea also asked that
idk, give it a try
oki
i don't know if it matters, but it doesn't hurt to try
yup
nah, I don't think it does matter
Are we still on this bungee placeholder thing?
Kk
i tried lobby and Lobby (its registered as Lobby on bungee) gave same answer
will try out but aint got FTP to Kitpvp but ive got ftp to a diff server on the network so gimme a sec
btw you can remove tracked_servers
yea i know
it was worth a try
yes
ive installed it all on a diffretn server and connected it to bungeecord
in the diffrent server typing /papi parse me %bungee_ProjectWasteland% does give 1 now
im on that server
letting a friend join the lobby now checking if i can see it in here and diffrent way around
ok
you sir @mint fable have found yourself a fix! XD it works now :D
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
i installed placeholderapi on the other server aswell
ah
and it showed up!
on scoreboard
interesting
maybe the plugin in lobby finds one in the other server which the one in the other server can grab the online players sending it over to the lobby
make ssense i think
true
Can I track statistics from players for each world apart
Like the playtime for the world "survival" and world "skywars" I only can find total of all world. I want more than only time, need a solution for all statistics
not rly
because Statistic expansion gets the stats from minecraft which combines them.
🤔how do big server do it?
Or do I need bungeecord for that?
I tried perworldplugin but thats outdated
[13:26:36 ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.mcstatistics.StatisticsExpansion
[13:26:36 ERROR]: [PlaceholderAPI] org.bukkit.Material.isItem()Z
Any help?
wrong version
@lucid loom even if u want multiple gamemodes best is to do it on bungeecord
wayy more organised instead of having a huge server with 2 servers on it with not much ram,
Is there any placeholder that shows the minimum amount of player and the maximum? If there is, what plugin does it come from?
@wraith mulch get the online players and type the max urself XD
why need a placeholder to tell whats the max when it doesnt change at all and u set it urself
just do like %online_players% / 200 lmao
Yeah but I was hoping that finding that kind of placeholder would allow me to find the plugin that can set the max and minimum player for a world.
But true I'll just start of with %online_players% / limit
No but I want to create an Arena and only show the max and min amount of players in that world.
I think I'll just continue using multiverse-Core
ah in that world
I don't think it's possible to have a max amount of players in a world without a plugin
Ok thanks for the help👍
Anyone know why vote party won't work on my featherboard?
please go to #spigot-linking
@turbid tide All done dawg
use {placeholderapi_<placeholder>}
now you have #voteparty unloked
so when you need help with that
you can ask there
it works?
Lemme see
btw on featherboard that is how you use all the palceholders from PlaceholderAPI. Just use {placeholderapi_<placeholder>}
without the <> of course
can you paste the placeholder you used?
- "&bVote Party » &6{placeholderapi_voteparty_votesneeded}/200"
well votesneeded is not a placeholder from what I can see
%voteparty_votes_required_party%
%voteparty_votes_required_total%
%voteparty_player_votes%```
these are the placeholder from voteparty
Ahh
here you go
if you try to use PlaceholderAPI placeholders
take them from here
Hmm
So it says 36/200 vots
- "&bVote Party » &6{placeholderapi_voteparty_votes_recorded}/200"
Will it reset when it gets to 200?
It'll reset when it gets to whatever the amount is.
set in the config.
200 is hardcoded there, that means nothing to the plugin.
It'll reset
Ite sick, thanks guys. <3
Yup
is there a placeholder for distance in blocks or at least km? if so do i need an extra plugin? i do not like using statistics cm one 😦
use math alongside the statistics
ohh boy ok i will look into that.. i am very new to this. thank you
anyone have an example off hand?
thank you! had to drop math almost 3 times in my college career so far 0.0
%math_[precision:0]{placeholder}/1000% for example
can someone write some javascript for me that generates a number between 2 specified numbers because ive been trying for an hour and i dont know anything about js (its for a placeholder)
var min = 0;
var max = 101;
function randomInteger() {
var random1 = Math.random() * (max - min);
random1 += min;
return Math.floor(random1).toFixed();
this will return a number from 1 to 100
@tall hinge
you just change the numbers
at the top
min and max
@turbid tide how do i use the placeholder?
because its not %javascript_random1% which i thought it was going to be
well i got that to work but now it says "Script error" when i papi parse it
ok so it was missing a } but now it says this function randomInteger() { var random1 = Math.random() * (max - min); random1 += min; return Math.floor(random1).toFixed(); }
@turbid tide do you know why its doing that?
@tall hinge,
Please respect the rules, be patient and don't ping staff members!
var min = 0;
var max = 101;
function randomInteger() {
var random1 = Math.random() * (max - min);
random1 += min;
return Math.floor(random1).toFixed();
}
randomInteger();```
here
that one was not 100% complete
you needed to close and call the function
it says "Script error"
ar min = 0; var max = 101; function randomInteger() { var random1 = Math.random() * (max - min); random1 += min; return Math.floor(random1).toFixed(); } randomInteger();
^ in <eval> at line number 1 at column number 3```
ya... 👍
Is there a Bungee Version of the API?
atm no
What is the javascript Placeholders?
%javascript_...%
what can i type in there?
like p.getPlayer();
etc
you have to create a script first
and then use the identifier of that script in the placeholder
here's the wiki https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Hello! I have an issue where only the ecloud placeholders show up?
plugins without ecloud download doesn't work
That's the plugins which supplies those placeholders issue then
but when i type /papi list, they show up?
is there a java api to add a papi extension?
is it just the standard papi jar that i use?
oh nvm found the wiki
yep thanks
When I do: /papi ecloud download statistic
And after /papi reload
The statistic expansion isn't loaded and I'm in the latest version of PAPI
use the expansion pinned here
and replace the old jar by this one in your Expansions folder in your PlaceholderAPI folder
hi can someone help? i downloading factions expansion but it don't show & work
i tried to add manually but it still don't work
can i tag you @turbid tide @mint fable @carmine veldt @glad glen
@jolly ore,
Please respect the rules, be patient and don't ping staff members!
oooooof
yeah... xD
Since you felt the need to mass tag, you are going to have to wait for someone from the community to help. They were going to, but your selfish actions determined that you weren't worth their time. Maybe next time you will think before doing something so childish.
You can wait another 16. These are volunteers. They work fine, user error.
Mind moving your question to #deluxechat ?
Sure
Hey, I'd like to register a new expansion. What do I have to do for it?
make sure to follow the correct steps for the type of expansion you're making
if you have a plugin, put it in an internal class
I already made an internal class for it and got it all sorted out already but would like to have it become official
If you made an internal class you don't need to have it official
so I hope you didn't make an internal class then
Haha I did- I'm a little confused as to why someone told me my plugin's placeholders didn't work with TitleManager but someone else reported that it worked for them. Both are on 2.10.6. Do you have any ideas?
I have 0 detail, so no.
@crisp storm so you made an internal class in your plugin?
Or did you follow the wrong guide?
I followed the right one and I made an internal class within my plugin since ages ago. I'm wondering if this is a mistake on my side or theirs as it works for everyone else I've asked about it so far
Of course, I'll go through their setup and see if I can figure it out
Thanks regardless
Hi! I have some problems with Placeholder API
Go ahead
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
here you have the error
?ecloudblock
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
yeah, but I mean, it is possible to remove that error from the console?
Use a plugin which removes certain console messages
okay thanks
Is there a placeholder to check the status of a certain player?
status?
Like if they are online or offline.
Pretty sure that is only for the user using the command
Ok nvm I got that to work, is it possible to change the message it displays?
javascript
rip I can't stand javascript
How come
idk I just never preferred working with it. It's one of those things I guess
Quick question, just out of curiosity, what's your standpoint when it comes to Skript
Like do you mean if I know the language or just in general like my opinion?
your opinion
I always found it to be confusing and just never took the time to learn it
Well perfect, I guess i'll deal with the message yes with that online placeholder xD
I mean I can make you the js if you want
It really isn't a big deal I don't wanna waste your time
function formatString()
{
return "%your placeholder%" === "yes" ? "Yes" : "No";
}
formatString();
Here's a link which will help you set it up https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
so only the yes is being replaced in this code?
the return boolean will change the No as well (anything that doesn't equal to "yes" will be changed to "No")
i see