#placeholder-api

1 messages ยท Page 34 of 1

junior musk
#

EssChat doesn't support PlaceholderAPI so it won't work

#

what did you try? can you send your entire menu?

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โ€ข HelpChat Paste - How To Use

austere hawk
austere hawk
junior musk
#

send the menu

austere hawk
#

How can i uploud file?

cinder idol
austere hawk
#

?

#

video quality isnt good

#

give me the link

cinder idol
austere hawk
cinder idol
#

if you looked at what @tender vapor sent 10 sentences above ๐Ÿ’€

austere hawk
#

done it

#

thats the regular config guys if your example

#

each command from [console] dosent work no matter what config is it

#

its not a syntx problem theres problem with the doing stuff in the name of [console] none commands will work

junior musk
#

do you get an error in console?

#

and what do you get in chat?

austere hawk
#

not an error in the console

#

and not an error in the chat

#

and i got the latest version

sweet vapor
#

what about player deaths kills

lime wigeon
#

hi, whenever I want to join the server, I have to type /papi reload for player_displayname to load, can someon help me with it?

sweet vapor
#

statistic_player_kills
statistic_deaths

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

junior musk
lime wigeon
junior musk
#

yes

lime wigeon
junior musk
#

latest.log

lime wigeon
#

they are long

#

ther is it

lime wigeon
junior musk
#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โ€ข HelpChat Paste - How To Use

junior musk
#

pastebin works as well

#

remove AnimaBossbar

#

it registers it's own player expansion for some reasons and seems to be broken anyways, seeing the amount of errors it throws

#

use another plugin for bossbars like TAB which you already have

austere hawk
#

Someone is gonna help me or what ?

#

I dont get an error at the console for using that [console]

#

It dosent work

sweet vapor
junior musk
#

can you show your code?

sweet vapor
#

no pic perms

#

sent in dm

#

@junior musk

junior musk
#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

junior musk
#

what if you do /papi parse <player> %statistic_deaths%?

#

does it return the correct value in chat?

sweet vapor
sweet vapor
junior musk
#

did the player ever join the server?

sweet vapor
#

yes

#

and he have deaths

junior musk
sweet vapor
junior musk
#

then maybe it doesn't work

#

I thought it did, but maybe it doesn't actually support offline players

sweet vapor
#

how can i make sure

junior musk
#

well we just did

#

if it doesn't work, then that means it's not supported

lime wigeon
turbid geyser
#

I have an issue where %server_online% is returning the incorrect amount of players. I've traced this back to a plugin that is using NPC's as some sort and in an ticket the dev claims that the plugin counting the players is in the wrong: https://gitlab.com/TauCu/modispensermechanics/-/issues/9#note_1593766530
Does anyone have experience with this kind of issues / is there already a fix available for the Server expansion?

real parrot
#

Any ideas why this placeholder dont works from console? (but works from player using /papi parse me)

  var max = BukkitServer.getOfflinePlayers().length
  for (var i=1; i < max; i++) {
    i += 9
    var score = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%ajlb_lb_statistic_hours_played_"+i+"_daily_value%")
    if (score <= 0) return i.toFixed()
  }
  return -1
}
getNextScore()
getNextScore()```
still torrent
#

Hello, script plugins and plotsquared plugins do not work in the scoreboard for my aternos server. When I try to download it from Papi, it says there is no such plugin, it used to work 2 years ago

junior musk
#

you could use null instead

junior musk
still torrent
#

Can you upload plotsquared expansions to ecloud for me?

junior musk
#

the expansion is inside the plugin

#

install the plugin and it'll load the expansion automatically

#

no need to download anything else

dense trail
#

does anyone have a template for an if else statement placeholder with a permission requirement?

#

Or perhaps a switch if thats more beneficial

vivid sparrow
junior musk
#

if that's the case, then you might want to ask the NPC plugin's dev to make a PAPI expansion with a placeholder returning the amount of real players excluding NPCs

sharp bloom
turbid geyser
dense trail
sharp bloom
# dense trail Elaborate?

smh :/ u are a support in eco and u don't know how u can make your own placeholders w the eco system in libreforge?

#

ask exan he knows

dense trail
#

I've never used that feature legit never

sharp bloom
#

L bozo :/

dense trail
#

quit being sarcastic for once, it's annoyting kris

sharp bloom
#

sorry sweetheart:/

dense trail
#

it's okay just stop it.

sharp bloom
#

cat_szwink oke pookie

frigid elk
#

hi

turbid brook
#

The PINGER expansion in the check_interval: 30, I want to know if it is in ticks?

lone cobalt
#

Ive been always trying to find a better way of handling colors mostly, for example for ranks, so i can change them easily, ive been wondering how the performance of placeholders are, specifically javascript ones, because the idea i had is to make many javascript scripts for each color and then whenever i need the color of a rank forexample id call the placeholder, but for example for menus this would be like 20 times on a single load, every chat message, is it a bad idea?

mint fable
#

probably not a great idea tbh

#

changeoutput mmight be able to do what you need though

#

not really sure what that is

lone cobalt
mint fable
#

do you use luckperms

lone cobalt
#

I more mean, for example we have 3 ranks and each with color admin: &c , guest: &7 , user: &4

Lets say i use these colors in like 20 menus and countless plugins, i want a easy way to change for example users color top &8

lone cobalt
mint fable
#

you could store the color within luckperms meta I think

#

although, actually that might be an issue currently with dm

lone cobalt
#

could i retrieve it with a placeholder?

mint fable
#

yes

lone cobalt
mint fable
#

but i would give it a try

#

even if you can't store the color &7 maybe just storing 7 could work

lone cobalt
#

Still not what i mean

#

Well maybe it is

#

any idea how to grab a specific groups prefix and not the players?

mint fable
#

/lp user/group <user|group> meta set <key> <value> [context...]

#

doesn't need to be prefix/suffix fyi

lone cobalt
#

good to know

mint fable
#

can be any meta you want, just namme it color

lone cobalt
#

How could i retrieve the admins group meta data without having the admin group?

#

dont see it on LP wiki

mint fable
#

ah man I don't think you can

#

buttt

#

I saw a good idea once

#

save all the colors to the default group's meta

#

like

#

color.admin

#

color.default

#

and then %luckperms_meta_color.admin% should work

#

for all players

#

interesting way to store data

#

but

lone cobalt
#

thats a good idea

mint fable
#

global variables that persist upon restart

lone cobalt
#

How is the performance over btw? Never have looked into it or ran into any issues

mint fable
#

lp is usually pretty good about their performance

#

so I'd imagine pretty good

lone cobalt
#

Well i mean more Placeholder side of things

#

The whole interpolation stage

mint fable
#

papi is pretty basic, it's really just a base api

#

performance good

lone cobalt
#

Alright will do ur idea, very good one

mint fable
#

can't take all the credit, but no problemo

lone cobalt
#

either way big kiss

plush dove
#

Is there a placeholder for what block a player is in?

lone cobalt
#

in or on?

#

%player_block_underneath%

#

thier docs are hella good should use them ;)

lone cobalt
tender vaporBOT
lone cobalt
#

dont want to add the meta to each rank separately

mint fable
#

you can try {} for the inner placeholder instead of %%

#

if it doesn't work, get the utils expansion and do it

lone cobalt
#

No docs for them?

#

dont really get how u meant to use the utils placeholders

mint fable
#

check the ecloud for github

#

download link

lone cobalt
#

Can you send the thing from the bot agian? Dissapeared dont know what the cmd is for the bot

#

nwm found it :)

#

%utils_parse_luckperms_meta_color.{luckperms_highest_group_by_weight}% very long one indeed, just for color :)

#

Okay apparently my chat format is so long its recognized as a link :)

#

Thanks for help Cj really apreciate it

jagged snow
#

I can't find a placeholder that indicates the current xp points. Does anyone happen to know one, or does no placeholder exist for that?

#

nevermind i found %player_current_exp%

copper hazel
#

hi, I'm used command: /papi ecloud download SpeedPerSec and get error: Failed to find an expansion named: SpeedPerSec

vivid sparrow
broken cipher
#

hello
how to parse raw placeholder value?

#

&4Test exactly like this

#

/papi parse me %placeholder% outputs colored one

sharp bloom
broken cipher
#

is it possible to use placeholders inside of placeholders and to what extent? or that depends on per each expansion?

#

like can i use changeoutput and inside of it this %utils_uncolor_{placeholder}% (which as you can see will have {placeholder} inside of this utils uncolor + that will be all inside of changeoutput; is this possible now?)

#

and if it is possible, how? will %utils_uncolor_{placeholder}% become {utils_uncolor_{player_name}} inside of changeoutput?

#

whatever the {placeholder} i try, it always surrounds it with %

broken cipher
sharp bloom
sharp bloom
#

idk what u r trying to make :/

#

gimme the specific placeholders

weak tundra
#

Is there a way to get the date when a player first joined?

junior musk
#

%player_first_played%

lament acorn
#

I need help, I'm getting a "exception whilst handling plugin message"
This is the full traceback:

java.lang.IllegalStateException: java.io.EOFException
        at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:458) ~[guava-31.0.1-jre.jar:?]
        at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
        at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:455) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCustomPayload(ServerGamePacketListenerImpl.java:3226) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.handle(ServerboundCustomPayloadPacket.java:37) ~[?:?]
        at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.handle(ServerboundCustomPayloadPacket.java:15) ~[?:?]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1402) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:188) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1379) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1372) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
        at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[?:?]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1506) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1228) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
        at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:318) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.io.EOFException
        at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:337) ~[?:?]
        at java.io.DataInputStream.readUTF(DataInputStream.java:583) ~[?:?]
        at java.io.DataInputStream.readUTF(DataInputStream.java:558) ~[?:?]
        at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:456) ~[guava-31.0.1-jre.jar:?]
        ... 19 more```
I am currently running pufferfish 1.18.2
What could it be? Should I reinstall placeholderapi?
#

However, the placeholders work nicely, the problem is the error in console which I hate to see.

broken cipher
#

is javascript expansion safe to use?

#

i see it won't autocomplete when i type /papi ecloud download Java

#

for everything else it does

#

i know there was some exploit or something

#

why is it unverified? is the exploit still present?

junior musk
junior musk
# broken cipher is javascript expansion safe to use?

it's not verified because it can indeed be used for bad things, but if use correctly or if you do small calculations and have your permissions an plugins set up correctly so normal players can't placeholders at will, then you should be fine

broken cipher
#

ok so i can use it for things like timers or whatever, and no other player can access it without permission

#

ok i thought something is very wrong with it and that's why it's excluded from being verified

#

thanks for clarification

#

so we must manually download/add it?

junior musk
#

yeah

#

though I think one of the main point was also that Aternos didn't like that people could download the expansion and run code KEKW

broken cipher
#

yeah understandable

lament acorn
#

bungee expansion gives lots of errors idk why

junior musk
#

which version are you using? (/papi info Bungee)

#

should be 2.3

lament acorn
#

i fixed it

#

thanks tho

junior musk
#

how? ๐Ÿ‘€

plush dove
#

is there a placeholder that takes off the end characters of a string? so inputting blue_concrete_powder would give me blue

mint fable
real parrot
tender vaporBOT
junior musk
# real parrot null or --null?

--null is in the /papi parse command you run in game, you have to use null in JS to say you don't have any player instance

coral ibex
#

I have a question: why was the JavaSkript extension removed from ecloud?

junior musk
#

it was not removed, it is just unverified

#

you need to download it manually from the ecloud

#

check Manual Download

coral ibex
#

when will he be checked and added to the team?

junior musk
#

it won't

eternal obsidian
#

%server_uptime%

#

/papi ecloud download server

#

/papi reload

sharp bloom
#

not rly, but u can write it yourself OKK

sharp bloom
#

probably yes but with the nbt

severe finch
#

ok but i not need nbt for durability, well i need like way to see if durability is higher than 1000. so far if i will do >1000 it will output yes even if it is not true.

lapis frost
#

What can i do about that?

junior musk
#

try the manual download

lapis frost
#

Sure, good to know there is a manual download

#

yes, the manual download works :D
Thank you for your help

slow zealot
#

What's placeholder for playtime in hours?

#

@sharp bloom I guess you can help out with this ;-;

sharp bloom
#

via the statistic expansion /papi ecloud download statistic

slow zealot
west osprey
#

how can i make when you see not " damage dealt: 1000 " but " damage dealt: 1k " instead?

sharp bloom
#

and the <number> can include a placeholder too

#

but idk if u have any placeholder that returns that damage :/

west osprey
sharp bloom
#

formatter expansion

west osprey
#

wasn't it something with formatted?

#

i remembed

#

do i need to restart the server after that or not?

west osprey
sharp bloom
west osprey
#

so it formats everything

oak sail
#

How can we register placeholders that would be like "%<welcome/leave set >_welcome_description%" and "%<welcome/leave set >_leave_description%"

#

I have a list of all the sets and stuff, I just need to somehow find out how to get the first part

obsidian echo
#

Does anyone know what placeholder api expansion shows the CPU usage?

west osprey
mint fable
pearl holly
#

Any staff member here to help

#

?

tender vaporBOT
#
FAQ Answer:
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait

Source

pearl holly
mint fable
#

no, sorry

pearl holly
#

Ok

#

I will sort something out๐Ÿฅฒ

oak sail
# mint fable little bit confused by what you're trying to do, but all placeholders start with...

I'm working on a system to have configurable welcome and join messages, and in the config I have this ```yaml
Messages:
explorers_expedition:
name: "Explorer's Expedition"
join:
description: "This is a test join message"
text: "gradient:#8c7a6b:#d2b48c:#8c7a6bCharting new lands, <player> arrives.</gradient>"
permission: "vampirismmc.messages.explorers_expedition.join"
leave:
description: "This is a test leave message"
text: "gradient:#8c7a6b:#d2b48c:#8c7a6b<player> sails to unknown horizons.</gradient>"
permission: "vampirismmc.messages.explorers_expedition.leave"

minstrels_melody:
name: "Minstrel's Melody"
join:
description: "This is a test join message"
text: "gradient:#6a5acd:#dda0dd:#6a5acd<player> strums into the symphony of our world.</gradient>"
permission: "vampirismmc.messages.minstrels_melody.join"
leave:
description: "This is a test leave message"
text: "gradient:#6a5acd:#dda0dd:#6a5acdThe final note plays as <player> exits the stage.</gradient>"
permission: "vampirismmc.messages.minstrels_melody.leave"```

#

I want a way to be able to have a placeholder with the name and descriptions of these

mint fable
#

okay, just know that all placeholders will start with your identifier

#

so you could make it %mycustomexpansion_explorers_expedition welcome_description%

#

you'd have to split the parameters on a space ( ) so you can get the name first

oak sail
#

ahhhh

#

does it support spaces?

mint fable
#

ofc

oak sail
#

interesting

#

how would I do this in the code btw?

mint fable
#
paramArray = param.split(" ");
setName = paramArray[0];
paramArray2 = paramArray[1].split("_");
type = paramArray2[0];
field = paramArray2[1];
pearl holly
mint fable
#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โ€ข HelpChat Paste - How To Use

mint fable
#

@pearl holly this

oak sail
# mint fable ```java paramArray = param.split(" "); setName = paramArray[0]; paramArray2 = pa...

you think this would work? java @Override public String onRequest(final OfflinePlayer player, @NotNull final String params) { String[] paramArray = params.split(" "); String setName = paramArray[0]; String[] paramArray2 = paramArray[1].split("_"); String type = paramArray2[0]; String field = paramArray2[1]; return VampirismMCPlugin.INSTANCE.welcomeMessages.entrySet().stream().map(stringConfigurationSectionEntry -> { if (!Objects.equals(stringConfigurationSectionEntry.getKey(), setName)) return "null"; return stringConfigurationSectionEntry.getValue().getConfigurationSection(type).getString(field); }).toString(); }

mint fable
#

possibly, but I would cache the values from config into memory

oak sail
#

how do I do that?

mint fable
#

retrieve all the config info when the expansion initializes and store it to a field variable

#

then retrieve it from there when the placeholder is requested

#

otherwise you will be making a call to the config every time the placeholder is called

#

which could be multiple times per second

mint fable
#

ah... well

#

if you want some more in depth help maybe try #development @oak sail

oak sail
#

ok

twin breach
#

%math_{bungee_serverName2}+{bungee_serverName2}[precision:0]%

#
[15:18:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[15:18:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{bungee_survivalsf}+{bungee_nether}%
[15:18:28 WARN]: [PlaceholderAPI] [math] Cause:       {bungee is not a valid integer number.
[15:18:30 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[15:18:30 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{bungee_survivalsf}+{bungee_nether}[precision:0]%
[15:18:30 WARN]: [PlaceholderAPI] [math] Cause:       {bungee is not a valid integer number.
[15:18:36 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
#

servers: survivalsf and nether

#

why doesn't it work?

hushed cedar
#

How can I fix this placeholder?

%checkitem_amount_<modifier1>,<modifier2>,<...>% is the example in the description of CheckItem Expansion.

%checkitem_amount_<totem_of_undying_>,<%metadata tag "exploder" of attacker%>%

%metadata tag "exploder" of attacker% is a metadata tag made in skript that returns the playername

junior musk
#

also make sure you have the Bungee expansion downloaded

twin breach
hushed cedar
# junior musk remove the <>

It's %checkitem_amount_mat:totem_of_undying% but how do I add the specifc player (%metadata tag "exploder" of attacker%)

junior musk
#

I have no idea

junior musk
#

only the precision needed to change

old ibex
#

Can I reset everyone's placeholderapi data for example players kill. Even after deleting all player's data in the world file it still didn't get deleted

next gazelle
#

Hey, was wondering if anyone knew the placeholder for displaying a players max health

#

like if he has 10 hearts it would show 10, or if he has 11 it will show 11

vivid sparrow
#

%player_max_health% ?

bronze cargo
#

Does anyone know how to use the variable? progress?

plush dove
#

Is there a placeholder for the block a player is looking at

#

or perhaps their fish location?

eternal obsidian
#

fish location?

clear dust
#

How do i write this correctly so that the zmenu_argument_item processes. I can replace the placeholder with what it would return and it works but every thing iv tried i cant get that placeholder to return when inside the math and inside the nascraft placeholder.

"%math_1:_{nascraft_buyprice_{zmenu_argument_item}}%"
mint fable
#

you need utils

#

%utils_math_1:_{nascraft_buyprice_{zmenu_argument_item}}%
@clear dust

snow needle
#

is it possible to lower the value of a placeholder? for example %statistic_player_kills%, if a hacker kills 50 people and i dont want that to affect anything, would it be possible to remove those from the placeholder?

tender vaporBOT
#
Hey!

Please respect the rules, be patient and don't ping staff members!

clear dust
rigid locust
#

Hi, anyone know how to get total player online in "velocity"

in bungeecord i have to use %bungee_total% but in velocity what should i install and use?

junior musk
junior musk
junior musk
#

bungee-plugin-message-channel = true

rigid locust
#

Ah in velocity config right?

junior musk
#

yes

old ibex
#

Does anyone know how I can reset everyone's placeholderapi data for example players kill. Even after deleting all player's data in the world file it still didn't get deleted

junior musk
#

did you delete the world while the server was shut down?

old ibex
#

I didn't delete the world I only deleted the players data in the world files

#

And yes the server was off

junior musk
#

I'm not sure how where it could be saved then

old ibex
#

is there not any command to reset an API data to all players

junior musk
#

๐ŸคทPAPI doesn't store the data, MC does

#

PAPI just retrieves it

old ibex
#

Oh I understand thanks

#

I deleted the player data file and the stats file is there any other file I need to delete in the world folder?

junior musk
#

I don't know

#

I thought it was just the player data file but apparently not

tender hill
junior musk
#

remove the _ from your identifier

#

also, the String in onPlaceholderRequest is not the entire placeholder but only the params

#

so you just have to check for level_pl, not societyunites_level_pl

plush dove
junior musk
#

yup

#

I think

#

wait

#

wait don't tell me I forgot to add that

#

I forgot

#

๐Ÿฅฒ

#

I'll add it tomorrow

plush dove
#

๐Ÿ˜‚ thank you very much

sharp bloom
#

tan any idea how do fix this :/ ?
%math_0:_4*{utils_parse_checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_{deluxemenus_meta_craftplanks_STRING_wood}}%

#

aa %math_0:_4*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_{utils_parse_deluxemenus_meta_craftplanks_STRING_wood}% seems to work

#

nvm smthing is wrong now cause it returns 0

#

the %utils_parse_deluxemenus_meta_craftplanks_STRING_wood% returns wood

#

so %math_0:_4*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_wood}%

sharp bloom
#

so i guess its something in the utils that i am missing? :/

#

or mby combined with the rest it doesnt get parsed properly?

#

normally it would return an issue or smthing on console but i only get 0

#

smh smh i just had to use utils in the start ac_cat_angry

junior musk
#

gg

sharp bloom
distant lava
#

Hello everyone, we are using a custom javascript code that @junior musk helped us write. We have ChatControlRed for chat formatting and it uses DiscordSRV to send messages from discord to in-game, however, this %javascript_getPrefix% placeholder shows as Error: Player is null when a message is sent from discord when the player isnt online. Is there anything we can add to the javascript code to fix this somehow?

function getPrefix() {
  var donator = "%luckperms_prefix_element_highest_on_track_donator%";
  var player = "%luckperms_prefix_element_highest_on_track_player%";
  var tag = "%eternaltags_tag%";

  // For non-donor players
  if (donator === "") {
    if (tag === "") {
      // If no tag is equipped
      return player;
    } else {
      // If a tag is equipped
      return player + "" + tag;
    }
  }

  // For donors
  if (tag !== "") {
    // If tag is equipped, return donator rank and tag
    return donator + "" + tag;
  } else {
    // If no tag is equipped, return donator and player rank
    return donator + "" + player;
  }
}

getPrefix();
junior musk
#

not really, this script depends on an online player so this can't work

#

I don't think JS even supports offline players

austere hawk
#

Is there a placeholder to check if a player has an item in their inventory

mint fable
#

?checkitem

tender vaporBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.
And click here for the CheckItem wiki with DeluxeMenus example menus.

mint fable
#

@austere hawk this

sharp bloom
plush dove
#

and it doesnt seem to detect water, which is what I really need

#

trying to get the coords of where the player fished up a fish

granite kernel
#

is there any placeholder to get the number of mobs in a world

sharp bloom
#

um

#

^

#

nop not in world, checked there too :/

#

probably there isnt

#

weird

vivid sparrow
#

Yeah

granite kernel
#

;-;

#

wait so %server_total_entities% works?

sharp bloom
#

for the entire server

#

not just a world

granite kernel
#

thats works for me

#

i have end and nether disabled

sharp bloom
#

oh oke

#

then u r fine

granite kernel
#

do i need any other expansion

#

for it to work?

vivid sparrow
#

Only server.

granite kernel
#

oh ok

#

tysm

granite kernel
sharp bloom
#

oh yes

#

use the living

#

the entities will count armor stand

#

item frame

#

paintins

#

minecarts

#

boats

granite kernel
#

ok so do villager count?

#

in living

sharp bloom
#

armor stands

#

oh i mentione dthem

#

yes

granite kernel
#

i need only monsters lol

vivid sparrow
granite kernel
#

ok thanks

obsidian canyon
#

how to i erase a placeholder data

devout lava
sharp bloom
junior musk
junior musk
sharp bloom
#

ooof mood, i had an acid reflux, woke up at 4;30am and didnt sleep ever since :/

#

but i got tier 5 in the meantime ;3

junior musk
#

lol nice

#

well, rip and nice

sharp bloom
#

also check this out #bot-commands message cat_shock

junior musk
#

wow

#

gg

sharp bloom
#

ad_doge_palmface grinding for the helpful role

junior musk
#

You should have gotten it by now tbf

sharp bloom
#

aa_cat_stare say that to cube

#

i like how my profile looks here now

#

everything is purple

vivid sparrow
#

I know some of you wanted a count up placeholder, so here it is ๐Ÿ™‚

sharp bloom
#

rather than using the wacky js

#

whats its format?

#

dd/mm/yyyy? or mm/dd/yyyy

vivid sparrow
#

same as for countdown

#

default is whatever is set in papi config, which is MM/dd/yy HH:mm:ss

sharp bloom
#

aa_cat_stare hot

#

i ll probably use it w utils and localtime too

#

to make smthing fancy

vivid sparrow
plush dove
warm topaz
#

why is that default ๐Ÿ˜”

vivid sparrow
#

blame clip

junior musk
# plush dove ๐Ÿ‘‹ Did you ever add the coordinates placeholder?

https://api.extendedclip.com/expansions/player-j17/
You can now get the x, y and z positions, as well as get fluids/sources
Ex: %player-j17_block_looking_at:10:fluids_x%
(10 is the distance, fluids means any fluid layer is taken in account, you can also use sources to only take full water sources)

plush dove
#

โค๏ธ thank you so very much!

junior musk
rigid egret
#

uhmm hello I use this plugin: Player Profiles
There are certain placeholders when a visitor opens his profile.

But the problem is that it lists the visitor's placeholder.

Is there a target placeholder for this?

I tried the ParseOther plugin and it still didn't work.

plush dove
#

Is the target online?

junior musk
#

You'll need to ask the PlayerProfiles' dev to parse placeholders for the target instead of the viewer

rigid egret
#

It captures the placeholder of the person who opened the menu.

example:
%mmocore_level%

my level: 10
Other player: 15

but when I open his profile it shows 10.

rigid egret
junior musk
#

that's not really possible

granite kernel
#

How to reset a placeholder's data

warm topaz
#

if its something built-in, e.g statistics, then it probably belongs to the playerdata inside of the world folder

granite kernel
tender vaporBOT
woeful schooner
#

How can I make a placeholder expansion that will send requests via http to the api and receive a response from it without delaying the main thread

junior musk
#

run an async repeating task that makes the requests, cache the values and retrieve them in the onRequest method of the PlaceholderExpansion

granite kernel
junior musk
#

I don't know how they're stored

granite kernel
#

:-;

elfin harness
junior musk
elfin harness
#

o i see. my bad there

dusky thunder
#

Hi there! I need to return a value in an NBT, and I tried using checkitem's getinfo but I can't seem to figure out the syntax for it. The few things described are very "yes/no" oriented

#

Is it possible to return a value? In this case it's just a numeric value

turbid tide
dusky thunder
#

the tag in question is PublicBukkitValues..score:usage

turbid tide
#

replace slot with the slot number or mainhand or offhand

#

oh. nbt value

#

nvm

#

for some reason I was thinking of just custom model data

dusky thunder
#

Heh it's alright, thank you though

#

is "mat" supposed to work with getinfo?

#

cause when I try it returns nothing

turbid tide
#

Acording to the github page, it should

#

%checkitem_getinfo:mainhand_mat%

#

try this

#

and see what it returns when you hold the item in your main hand

dusky thunder
#

it returns blank for mainhand and 0

#

the item is in slot 0

turbid tide
#

@mint fable any chance you can help here?

turbid tide
dusky thunder
#

I just updated a moment ago so I'd say I am

turbid tide
#

ah. we need the columns

dusky thunder
#

columns?

turbid tide
#

%checkitem_getinfo:0_mat:%

turbid tide
dusky thunder
#

omg is it just cause of the colon at the end??

#

hold on

granite kernel
#

help

turbid tide
#

actually it is called stats

granite kernel
#

oh

#

tysm

dusky thunder
#

Alright with your help I've managed to return all NBT tags of the item, even though I tried to specify a path

sharp bloom
#

@dusky thunder %checkitem_getinfo:mainhand_mat:% for the mainhand

dusky thunder
sharp bloom
#

aa_cat_stare oh

#

i think i can help w this one too

dusky thunder
#

still appreciated

#

Yea? I've gotten to the point of returning all NBT tags and their values, but I need a specific one

#

/papi parse me %checkitem_getinfo:0_nbtints:NBTTagCompound:PublicBukkitValues{"score:usage"}:% - currently the command I'm working on modifying

sharp bloom
#

u trying to check for score from the executable plugins right?

turbid tide
dusky thunder
#

trying to find the usage in EI yes

dusky thunder
#

which is the same result as the one you posted Blitz

turbid tide
#

I don't think you can check compound tags with checkitem expansion

#

from what I can see it only works with basic int and string values

dusky thunder
#

I was thinking if you can do yes/no, you should be able to just flat out return the value though?

sharp bloom
#

can u send me the usage from the item?

dusky thunder
#

usage is 1991

sharp bloom
#

%checkitem_getinfo:mainhand_nbtstrings:PublicBukkitValues..score:score-usage=1% try this

sharp bloom
#

this one might be close

#

but it will return an x amount not yes/no

sharp bloom
dusky thunder
sharp bloom
#

that doesnt use getinfo tho

dusky thunder
dusky thunder
sharp bloom
#

oh

sharp bloom
#

smh :/

#

lemme do few tests too

turbid tide
#

Maybe %checkitem_getinfo:mainhand_nbtstrings:PublicBukkitValues..score:usage

dusky thunder
turbid tide
#

well, my knowledge really ends here.

dusky thunder
#

That's okay, thank you very much though! You've gotten me so much closer

dusky thunder
sharp bloom
#

omg i m dumb @dusky thunder kekw

#

its an int value

#

%checkitem_getinfo:mainhand_nbtints:PublicBukkitValues..score:usage=1%

#

boom

#

found it ad_doge_palmface

dusky thunder
#

it returns all compound tags, not just the value

sharp bloom
#

try this ^

dusky thunder
#

oh wait I accidentally added a colon

sharp bloom
dusky thunder
#

okay so

#

it returns 0

sharp bloom
dusky thunder
#

but the usage is 1991

sharp bloom
#

bruh?

#

do u hold the item that has a usage?

dusky thunder
#

I got it

#

%checkitem_getinfo:mainhand_nbtints:PublicBukkitValues..score:usage=101% instead of score:score-usage

#

"101" is random

#

Thank you so much!

sharp bloom
#

but i didnt ay score:score ;-;

dusky thunder
#

oh it was quicker for me to just arrow up and modify sorry ๐Ÿ˜‚

#

in-game

#

originally you said score:score-usage

sharp bloom
#

yeah well, i changed it :/

#

cause i used the example for the variables

dusky thunder
#

Yea I didn't notice

#

Yea

#

THank you!

sharp bloom
#

thats what u use for the variables for an item

#

np :d

woeful schooner
#

is it possible to listen PlayerJoin event in external papi expansion?

mint fable
#

sure

fresh trout
#

how i can add dependency of placeholder api in maven

#

;3

prisma lagoon
#

Hello

#

Would anyone know why my leaderboards arent showing all players from Placeholderapi

forest goblet
#

You can give Placeholder for kills in the arena itself and not in the general one? plugin Bedwars1058

vivid sparrow
prisma lagoon
#

you maybe have any insight on why this is happening?

vivid sparrow
#

No

prisma lagoon
#

Its strange, im the owner and its not showing me on the leaderboards

vivid sparrow
#

The leaderboards plugin might have a permission to hide players and ig you have it

forest goblet
#

thahks

junior musk
prisma lagoon
tender vaporBOT
# woeful schooner oh thx
Hey!

Please respect the rules, be patient and don't ping staff members!

junior musk
nocturne flax
#

What is the place holder api of saber faction ? I need this pleaseโ€ฆ.

junior musk
nocturne flax
#

Thx !

warm plover
#

Any idea why I always ge tthis error on startup?
[23:54:43 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [23:54:43 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [23:54:43 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0:_{aureliumskills_power}-10% [23:54:43 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0:_{aureliumskills_power}-10% [23:54:43 WARN]: [PlaceholderAPI] [math] Cause: '{aureliumskills_power}-10' is not a valid Math expression. [23:54:43 WARN]: [PlaceholderAPI] [math] Cause: '{aureliumskills_power}-10' is not a valid Math expression.

#

This placeholder is on my scoreboard and parses fine, but why does it say it's invalid at first? Sometimes it's also messed up on the scoreboard too on joining and I have to reload the tab plugin to fix it

sharp bloom
warm plover
#

It results in 27

#

Like it shows fine on the scoreboard, I just wanna get rid of the error lol

sharp bloom
warm plover
#

It's only me online dunno if that makes a differnece

sharp bloom
#

try changing it to 10-aurelium

#

oh

#

well try the change and see idk :/

#

i ve had similar weird issues too

warm plover
#

Well changing it would make it -27

#

So idk how that'd work lol

sharp bloom
#

r_ew right

#

what about

#

hmm lemme think

warm plover
#

I'm gonna try delaying the scoreboard

#

I dunno if that'll help but maybe it's parsing before the placeholder registers or smthing

#

nope ;-; rip

sharp bloom
#

yeah the {aureliumskills_power} doesnt get parsed

#

normally it works tho right?

#

like /papi parse me %aureliumskills_power%

warm plover
#

Ye

#

It parses as 37

sharp bloom
#

on start up? or randomly

warm plover
#

When someone joins when the start starts

sharp bloom
warm plover
#

Joins for the first time since the server started ye

sharp bloom
#

ye makes sense

#

probably the scoreboard tries to parse if faster than the aurelium has data on that user?

#

aa_cat_stare simply a guess tho, i dont have any idea

#

but it would make sense for aurelium to take 1-2 seconds to "create" a user

plush dove
#

Does anyone know a placeholder that will repeat a character for defined times?

#

For example %repeat_$_3% would show $$$

#

I could use javascript and a for loop, but JavaScript isn't optimized

vivid sparrow
#

Do you remember adding smth like this to the string expansion @turbid tide ?

turbid tide
#

Nope. The expansion doesn't have this feature.

#

It does sound like something it should maybe

vivid sparrow
#

Yeah I can make a pr

turbid tide
#

๐Ÿ‘ please do. Don't forget to update version please so I can just release it on ecloud

sharp bloom
#

hey bliz, could u look at yourself the material: placeholder- and maybe open a github issue?

#

for example if u use placeholder-%player_item_in_hand% that item wont be updated if u re open the menu

#

unless u /dm reload

#

which wasnt the case in one of the previous dev builds

junior musk
#

oh yeah I see why it does that

#

the material is parsed and then replaced

#

but when the menu reopens/refreshes, the material stored isn't a placeholder anymore, but the previous parsed output

sharp bloom
#

ye weird :/

junior musk
sharp bloom
#

i noticed it yesterday with my enchant gui too, while i was trying to help someone displaying their slots

vivid sparrow
#

Looks like a bug introduced by accident

sharp bloom
#

the "stone sword" is the main hand

#

i even tried 3 different methods to check if it was an issue w dm

#

placeholder-%parseother_{{player}}_{player_item_in_hand}%
placeholder-%parseother_{{player}}_{checkitem_getinfo:mainhand_mat:}%
placeholder-%utils_parseother:[player]_{checkitem_getinfo:mainhand_mat:}%

turbid tide
sharp bloom
#

lemme backup my menus first

#

i just realized that my menus are even bigger in size than the jar itself pepesip

turbid tide
#

I personally tested it with this:

  'random_material':
    material: placeholder-%string_random_DIRT,GRASS_BLOCK,DIAMOND_BLOCK,GOLD_BLOCK%
    slot: 7
``` and whenever I close and open the menu, I do get one of those random materials
sharp bloom
#

aight i ll test it w my enchant menu, since it used to be fine before the placeholder change

#

material: placeholder-%player_item_in_hand%

sharp bloom
turbid tide
#

Good to know. Thanks

sharp bloom
vivid sparrow
sharp bloom
plush dove
#

โค๏ธ yall fast asf

jagged snow
#

does anybody know if there is an placeholder which returns a specific nbt?

woeful schooner
#

how to cancel BukkitTask's on papi reload?

#

in external expansion

junior musk
#

implement the Taskable interface in your PlaceholderExpansion class, and you'll get a start and stop method

#

ah

#

well both work I guess

woeful schooner
#

?

vivid sparrow
#

I forgot about that, but Taskable is probably the proper way to do so

junior musk
#

alright

woeful schooner
#

thx guys

unreal raven
#

anyone have issues with bungee expansion on latest papi? %bungee_total% works fine but %bungee_servername% always shows 0

sharp bloom
unreal raven
#

i do, i just tried one very odl version and it works

#

1.0.1

#

so ig il use that one

sharp bloom
#

u had the 2.3?

unreal raven
#

yes

#

i also tried 3.0 from thsi discord

#

latest one didnt work

plush dove
#

appears that parsed placeholders have a lot of extra formatting, any way to get the plcaeholder stripped of color codes?

#

this is what I mean

little ridge
#

I would like to print the value of testIntNBT, where the type of the tool in hand is NBT, which is an int.
Is this possible?
I've written this far, but I don't know what to do next.
%checkitem_getinfo:mainhand_nbtints:testIntNBT~~~%

plush dove
#

is there a way to make a number always 4 characters long? so %math_{player_health}% would return 20.0, or 7.00, but always 4 characters long

craggy turtle
#

heyo cj89898 can you send me checkitem 2.7.3 when i do /papi ecloud update checkitem its still on 2.7.2

#
[PlaceholderAPI] Successfully registered external expansion: checkitem [2.7.2]
#

i need your fix with the escape chars

#

and escaping it with a \ the yaml parser has a mental breakdown

craggy turtle
#

%checkitem_matcontains:HELMET,inslot:39,nbtints:testIntNBT~~~=12345%

craggy turtle
#

oh its not letting me paste the screenshot

tender vaporBOT
plush dove
craggy turtle
#

but its %math_4:UP_3.14159%

plush dove
plush dove
#

so including the whole number 3

#

I need it to give 3.14 or 3.145 (ignoring the decimal)

#

not 3.1415 (4 decimals, currently does this)

#

yep it shows decimals, even though precision on EvalEx BigDecimal shows otherwisehttps://imgur.com/a/p3RfVzl

craggy turtle
#

hmm what about rounding down with 4?

#

%math_4:DOWN_3.14159%
should be 4 numbers total right?

#

okay yeah i tried it thats for decimal places and not precision, yikes

#

i found this but its unlikely that yu want a whole other expansion for handling it
%formatter_number_[precision]:[roundingmode]_<number>%

#

yeah idk it doesnt look like it will work

hollow fog
#

hi there, sorry if this is long, i'm just going to try to explain as best i can.

i had a question about the local time placeholders, i was trying %localtime_timezone_<TimeZoneID>% which shows the date and the time, the timezone we use is America/New_York, but the date is in the dd/mm/yyyy format instead of mm/dd/yyyy format like it would be in New York ๐Ÿ˜… is there any way to change that, or a different placeholder i should be using instead?

i noticed with %localtime_time_<SimpleDateFormat>% i can use EEE, MMM d, yyyy which is what i was wanting, and then i noticed %localtime_timezone_<TimeZoneID>,<SimpleDateFormat>% which i thought would be a combination of the SimpleDateFormat i choose and local time for the TimeZoneID i choose, but it seems to only be showing me the SimpleDateFormat i choose and not the time for the TimeZoneID at all, am i doing something wrong? I was trying:
%localtime_timezone_America/New_York,EEE, MMM d, yyyy%

tribal sinew
#

where can I download javascript 1.6.0?

plush dove
hollow fog
#

oml, tysm. sorry ๐Ÿคฆโ€โ™€๏ธ

sharp bloom
#

why is the rng expansion so big lol

#

1.4mb

warm topaz
#

kotlin

vivid sparrow
tribal sinew
tender vaporBOT
lethal breach
#

Is there any placeholder I can use to check if the value is empty and returns true ?

mint fable
#

change output probably @lethal breach

lethal breach
tender vaporBOT
proven monolith
#

please help me, I made a js.I expected it to output is int, but instead it outputs floating point numbers. This is code. var sum = 0;
sum += parseInt('%bungee_BedwarsLobby-1%', 10);
sum += parseInt('%bungee_Hbedwars-1%', 10);
sum += parseInt('%bungee_Hbedwars-2%', 10);
sum += parseInt('%bungee_Hbedwars-3%', 10);
sum += parseInt('%bungee_Hbedwars-4%', 10);
sum += parseInt('%bungee_Hbedwars-5%', 10);
sum += parseInt('%bungee_Hbedwars-6%', 10);
sum += parseInt('%bungee_Hbedwars-7%', 10);
sum

#

Thanks everyone, I solved it, because I accidentally installed an extra version of the expansion

vivid sparrow
#

Use the math expansion @proven monolith much better

proven monolith
tender vaporBOT
hushed cedar
#

How can I get the placeholder to see someones health with the playername before like:

%<name>_health%

junior musk
#

%parseother_{<name>}_{player_health}%

barren bramble
#

does placeholderapi support 1.20.4

junior musk
#

yes

timid fox
#

How to apply placeholders with custom braces using the API?

junior musk
#

PlaceholderAPI.setBracketPlaceholders(OfflinePlayer, String)

timid fox
#

But where do I specify the bracket there is only 1 string parameter

junior musk
#

ah

#

you can't modify the brackets

#

it's either %% with PlaceholderAPI.setPlayers(), or {} with setBracketPlaceholders

blissful wave
#

Hello is there a way for a backend server to retrieve a proxy placeholder? Example: i need to find a way of telling on which server other players are without using proxy plugins. Well i can use a proxy plugins but the information needs to be sent to the backend also so when i do papi parse me %server% for example it would tell me. I need it for a plugin that couldn't be installed on proxy but on the backends.

junior musk
#

Without a proxy plugin to send the info to other backends, that's gonna be hard

#

and PAPI doesn't have any way to do that either way

blissful wave
#

There could be a proxy plugin but i need for it to send it to the backend not just to the proxy. Do you know any?

vivid sparrow
#

Use the proxy plugin to request the value from the server where the player is shrug

#

Proxy plugin requests %player_health%
Spigot plugin replies with 20

mint fable
#

@broken locust can you try updating the expansion first, and if that doesn't work, please provide the exact placeholder you are having an issue with

copper osprey
#

รฑ

blissful wave
#

idk if im being understood, i want to know the name of a server or at least world (that could also come in handy) of player on one server while on another server but does plugin like that even exist?

sharp bloom
#

?player

tender vaporBOT
#
FAQ Answer:

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

sharp bloom
#

now for checking in which server a player is, i am not really familiar with the existence of such expansion

copper osprey
#

Help, my server says: Invalid signature for profile public key. Try restarting your game.

blissful wave
#

The %player_world% is good but it works only on the current server right? if i wanted the name of the world a player player is playing on another server papi wouldn't send the packet across the proxy right?

sharp bloom
#

eh i dont think it can send across proxy? but maybe there is a plugin that does that

barren bramble
#

where do i find placeholderapi for 1.20.4

warm topaz
#

latest should already work

barren bramble
#

it threw an error when i tried it

#

i can show you if you want

warm topaz
#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โ€ข HelpChat Paste - How To Use

barren bramble
#

latest is 2.11.5, right?

warm topaz
#

yes

barren bramble
warm topaz
#

thats an issue with protocol lib

vivid sparrow
#

[19:10:24 INFO]: [PlaceholderAPI] Loading server plugin PlaceholderAPI v2.11.5

barren bramble
#

it doesnt work

warm topaz
barren bramble
#

alright ive put the supported 1.20.4 dev build on

#

oh that seemed to work thanks

#

let me just double check in game

lofty valve
#

any way to speed up expansion load? it takes like 10 seconds

lone cobalt
#

Is there a placeholder extension that makes a leaderboard for random player things? Deaths, block breaks what not, i see a statistic one, but one that puts them in a leaderboard?

warm topaz
#

use ajLeaderboard plugin

midnight egret
#

%statistic_break_item% working but %statistic_break_item:coal_ore% not working, why?

vivid sparrow
#

break_block, break_item refers to fully using an item like a pickaxe

midnight egret
vivid sparrow
#

mine_block

midnight egret
tender vaporBOT
midnight egret
#

I saw and I tried these:
%statistic_break_item:coal_ore%
%statistic_break_block:coal_ore%
%statistic_mine_block:coal_ore%

#

But not working on Paper 1.20.4

vivid sparrow
#

yeah idk then, it should be fine shrug

midnight egret
#

and not working COAL_ORE

#

Im using PlaceholderAPI 2.11.5 but is it updated for 1.20.4?

#

Because some placeholders not working

#

%statistic_mob_kills%
%statistic_player_kills%

cosmic needle
midnight egret
#

But this link is not working ๐Ÿ˜„

vivid sparrow
#

Im not sure why the placeholders don't work and afaik this is the only report we got so far

midnight egret
junior musk
#

works fine for me

#

or maybe not

#

it doesn't seem to change at all

#

well tbf the mine_block stat has always been weird and broken XD

midnight egret
#

I solved %statistic_mob_kills% to %statistic_MOB_KILLS%

#

But BREAK_BLOCK not working again

sharp bloom
#

it randomly got back working for me for some unknown reason

novel ferry
#

Hello, I have a problem with a variable that won't let me download

#

It's the one from world, it won't let me download it, help me

cloud moon
#

I have been getting some random console spams

junior musk
#

your tabplugin is trying to parse an animations placeholder which requires a player and doesn't provide one

remote oracle
#

Why you can no longer download the World expansion with a simple command

#

๐Ÿ˜ญ

junior musk
#

because the expansion hasn't been reverified since it got updated

#

idk why but noone has done so

vivid sparrow
#

I will do it later, is it yours?

junior musk
junior musk
remote oracle
#

The plugin is not mine, it's just that since I saw it on the wiki I thought it could be downloaded with the command. ๐Ÿ˜…

cloud moon
junior musk
#

it was once verified and I see no reason why it shouldn't be anymore, unless the author left a malware in there lol

rare stag
#

Hello, is there a placeholder for showing the name of a player who executed a command?

#

Example: %executer_player_name% did %command_executed%

junior musk
#

There isn't

#

I do wonder what would be the purpose?

#

in what kind of plugin would you use that?

#

if it's a plugin that listens to commands executed, then they probably have their own placeholders for that already

rare stag
#

Like, you dont know who sended it, it only shows YOUR name and not the sender's one

junior musk
#

which plugin is that?

#

is it a custom made one?

rare stag
#

It has PlaceHolderAPI support, when I contacted the developer he just said: There might be a Placeholder for that

junior musk
#

I'm not sure I fully understand

#

the plugin is for sending messages to WhatsApp, right?

#

and you want to get a command executed from where?

#

how do you know which command you want

olive forum
#

Hello, we created our server for Bedrock players and Java players, so we also use geyser. With Java and Bedrock on the phone everything works without any problems. For example, as soon as we have a Bedrock player with the PS5 or a Minecraft for Windows player, the client crashes immediately if you enter a "/" as the first character. We have now been able to limit this to 2 plugins, which is Redischat in conjunction with Papi. If you deactivate it, Bedrock players can use the "/" without any problems. Unfortunately, there is no error message in either Bungeelog or the server log. Can you check what could be the problem?

junior musk
#

I'm not sure how PAPI could affect that, it doesn't modify the gameplay in itself, it only provides tools for other plugins

rare stag
junior musk
#

ah

rare stag
#

So it would look like this:
Send: (Person who sended it) > (message)
Recive: (Person who sended it) -> (Person who recived it) > (Message)

#

Now its clear?

junior musk
#

yeah

rare stag
#

Now, what Placeholder or plugin should I use?

junior musk
#

you could use %player_name% -> %player% in the sender/messager's message, and %player% -> %player_name% in the receiver's message

#

%player% is from RoleplayerMessages and will show the other player, and %player_name% is from PlaceholderAPI and will show your name

rare stag
#

Hmmm, It might work

#

Ill update you anything, thanks

novel ferry
#

Hello, I have a problem with a variable that won't let me download

#

It's the one from world, it won't let me download it, help me

vivid sparrow
#

download it manually from the ecloud

olive forum
junior musk
#

couldn't it just be a bug in the client?

#

or even on Geyser's side, since it works perfectly fine for Java clients

#

and you said it works for all Bedrock platforms except one

#

so it could be either a Geyser or client issue

#

I really don't see how PAPI or a chat plugin could make a client crash

olive forum
#

Well, as far as I know, this occurs on 5 Windows Bedrock clients (different PCs and locations), so I don't assume it's a client problem. If we don't use a chat plugin or Bungeechat or CMI chat instead of Redischat, everything works without any problems. If Redischat is active without papi, it works too. therefore it is one of both plugins.

merry juniper
#

New server only PlaceholderAPi and Redischat client Windows Bedrock crashed.

Server Server only RedisChat everything works

olive forum
#

Tronix and me are from the same server

vivid sparrow
#

PlaceholderAPI has nothing to do with bedrock. Try to contact the devs of whatever redischat is or what other plugin is causing issues.

merry juniper
#

Of course, GEyser has to be on it for Bedrock to work on Java

merry juniper
#

I or we think the error lies with Redischat

vivid sparrow
#

PlaceholderAPI is just a bridge between multiple plugins, it doesn't do much on its own, therefor it is very unlikely it can cause this issue. Also, bedrock problems are not our concern since we don't have any support for it ๐Ÿ™‚

merry juniper
#

We will then forward your statement to RedisChat

vivid sparrow
#

perhaps share the error

merry juniper
#

Error is good, it just crashes when you enter a slah, there is no error or I don't know where the crash report from Bedrock is on the PC

junior musk
#

Maybe the issue comes from a PAPI placeholder that's used in RedisChat (which would explain why it doesn't happens when you remove PAPI), try to remove your PAPI's expansions folder, restart the server and try again

#

though I wonder how this could be happening

#

and what placeholder could cause this

vivid sparrow
#

good point

merry juniper
#

No, deleting the extension folder didn't help. As soon as I type a slash, an immediate crash occurs

junior musk
warm plover
#

Whatโ€™s the likelihood that an expansion that can print a players face (colors and all) could be made

junior musk
#

0

warm plover
#

dang, whyโ€™s that?

junior musk
#

well it depends

warm plover
#

I was thinking like:
%playerhead_skin:[URL]_row:1_column:1%, this is a simplified example but yeah

junior musk
#

it could be done 2 ways:

  • some plugins send messages on join with your player head made out of lots of characters in color over multiple lines, a placeholder could just return that same thing
  • if you want a small icon, as in 1 character, you'll need a resource pack
junior musk
#

and I'm not even sure if that's possible

warm plover
#

Itโ€™s not possible from what I know, only player heads can do that

junior musk
#

because it'd mean that you'd have to update the resources pack everytime a player joins with a new character with that player's face and idk if that works

warm plover
#

I was looking for option 1 specifically

junior musk
warm plover
#

Thing is I donโ€™t know how Iโ€™d make it, maybe commission someone for it but Iโ€™m not sure if anyone would take it haha

#

I know someone has an API for player heads in chat not sure if that could be used in it

junior musk
#

๐Ÿคทprobably

#

uh, so you can update resources packs midgame

#

but yeah either way that's for option 2, and you want 1

warm plover
#

probably wouldn't wanna do that but it's always an option

#

Thanks for the resource though, good info ๐Ÿ™

#

This is the API I was talking about

junior musk
#

that's probably what I thought of as well

#

but yeah, if we just do the same thing as that plugin does, but in an expansion instead, you'd have the same thing

warm plover
#

Yeah only thing is I can't but those heads in other plugins via a placeholder lol

#

I guess I don't technically need the placeholder, I could always just paste the result of that plugin, it's for a very specific use case so I'm still thinking i tout

junior musk
#

I can try to see tomorrow or another day if I'm able to do anything

warm plover
#

That'd be awesome

#

I did just try the plugin on a localhost and it's a bit rough, might be too outdated

junior musk
#

it'd probably just be copy-paste, except that I'll make it so RGB actually works since 1.16 added that

warm plover
junior musk
#

exactly what I thought of

#

rip rgb

#

the plugin hasn't been updated since 2019

#

anyways, I'm off to bed, see ya

warm plover
#

Good night

#

Will continue the hunt ๐Ÿซก

analog oak
#

why does this doesn't work? /papi parse me %math_1+27000[precision:2]% in math expansion

junior musk
#

the syntax changed

#

it's now %math_2_1+27000%

warm plover
#

There is this plugin called ChatImage, and the developer is going to be working on placeholders, so you could do any image not just skins! Pretty cool if all works out

junior musk
#

๐Ÿ‘

#

Hey that's a nice imag- OH GOD

analog oak
bronze shell
#

Hi there, i have a very weird issue with a changeouput placeholder, and i'm not sure what is causing it

when my cient do /papi parse me %mmocore_cooldown_bound_1%,
he get the expected result of 0.0
but when he do /papi parse me %changeoutput_equals_input:{mmocore_bound_1}_matcher:noskill_ifmatch:0_else:{mmocore_cooldown_bound_1}%,
the output is "> mmocore_bound_1" instead of giving out the value of the mmocore_bound_1 placeholder.

am i missing something ?

#

it gives this output in both scenario whether the input equals "noskill" or not

mint fable
#

type /papi parse me %mmocore_bound_1% @bronze shell

bronze shell
#

oh yeah sorry i forgot to precise that

#

the %mmocore_bound_1% placeholder is also working fine

mint fable
#

wait, I'm a little confused here

#

you said

the output is "> mmocore_bound_1" instead of giving out the value of the mmocore_bound_1 placeholder.

#

the output is > mmocore_bound_1?

#

or is the output mmocore_bound_1?

bronze shell
#

it literally gives the text "> mmocore_bound_1", it doesnt give the value of the %mmocore_bound_1% placeholder

mint fable
#

really, the output should be either 0 or the {mmocore_cooldown_bound_1} placeholder

bronze shell
#

ikr ๐Ÿ˜ญ

mint fable
#

it should not be returning mmocore_bound_1 at all

#

what you're describing should be... impossible

bronze shell
#

not all my client have this issue, it's specific to this client who did a fresh install of my product. i checked everything with him and everything is correct, down to the placeholderapi config

mint fable
#

is your client able to come here for support?

#

I have to leave really soon, but somebody else can help for sure

#

what your client said seems impossible

bronze shell
#

sure i could ask him to, but i don't think he can help much more than me since he doesn't know how the product works in details

mint fable
#

mmocore_bound_1 should not be returned in chat at all

#

and I have no idea where the > is coming from

bronze shell
#

same ๐Ÿ˜ญ

#

i asked him to redo the papi command and to show me how he wrote it down in minecraft chat

mint fable
#

I'll be back later if you still need help

#

but just to re-iterate: the output should be either 0 or the {mmocore_cooldown_bound_1} placeholder
NOT "the value of the mmocore_bound_1 placeholder" as you stated earlier

#

good luck ๐Ÿ™‚

bronze shell
#

yeye both output is what i'm expecting but im not getting any of those two

#

you can see he wrote the command correctly, and that the weird output is shown in chat

junior musk
#

idk what it is but that's probably the cause

#

the chat shouldn't look like that at all XD

bronze shell
#

okay so it's not papi

junior musk
#

unlikely

bronze shell
#

time for the client to have fun and disable his plugin one by one

bronze shell
#

Bingo, it was a plugin called "CommandPrompter" that was breaking everything

#

it's all good now

junior musk
#

how can it even do that XD

mint fable
#

lol he was stuck in commandprompter

#

should've typed cancel

#

(I see they did, it definitely bugged lol)

#

very odd never heard of that with commandprompter ๐Ÿคทโ€โ™€๏ธ

junior musk
#

same

sudden gull
#

how to remove kit perm I want everyone to have it not only people with permisions

restive nova
#

how to make placeholder inside placeholder parsable in my plugin?

#

any code example?

junior musk
#

it depends on the placeholders you use

#

some placeholders like Math support placeholders within them if you use {} (for example: %math_{server_online}+1%)

#

though not all placeholders support that, and they only support 1 level of nesting, if you need more or want to do it for placeholders that don't support this, you can use the Utils expansion as such: %utils_parse_placeholder1_{placeholder2}%

restive nova
#

I mean I want to implement it in my plugin

junior musk
#

you just parse placeholders normally with PlaceholderAPI.setPlaceholders(OfflinePlayer, String)

mellow trout
#

hello friends

#

I am looking for a mspt placeholder for my server, do you know any placeholders?

#

I use purpur and I will not use plugins like tpsbar or tabtps I will add this mspt value to a menu.

celest plover
mint fable
#

I also noticed on spigot you pushed 4.6, but ecloud still has 4.5, just FYI.

#

||There also seems to be a lot of unnecesary classes in your exported jar file that weren't present in versions below 4.5||

neon anvil
#

is there any way to make a placeholder all caps?

balmy marten
#

So this would force %player_name% to return with all capitals %string_capitalize_{player_name}%

neon anvil
balmy marten
#

Should do, give it a whirl

neon anvil
#

ok, will try out. thanks

balmy marten
#

The outside placeholders will need %%

neon anvil
#

?

balmy marten
#

depending on the plugin you're using it in

neon anvil
#

featherboard

balmy marten
#

oh

#

Then yeah probs {}

#

Been a bit since I've used that

celest plover
tender vaporBOT
celest plover
#

I pushed 4.6 only on spigot because I can't push the new version on ecloud lol

#

I'll check for the useless classes. I moved the project to gradle so maybe that is the problem

celest plover
#

I updated the jar and commited changes on github

gusty nacelle
#

hello