#placeholder-api

1 messages · Page 171 of 1

untold adder
#

how str_replace works?

visual pilot
#

str_replace_minecraft_mine_our
Would replace all strings called "mine" in "minecraft" and will replace it with "our"

minecraft->ourcraft

#

Not sure if I can ping the dev to let them know

#

I also can't open an issue report on the repo

errant iron
#

you're supposed to use commas as separators

#

it should be %str_replace_minecraft,mine,our%

visual pilot
#

Oh oof, the example should probs be changed then

errant iron
#

i dunno where the example is, but there's literally a code comment about it lol

#
/*
        * Usage: %str_<method>_param1,param2%
        * Parameter type: default as String.
        * <number> as Number (auto transform to int or double by dot)
        * <numberi> force as int    eg.<2i>,<2.1i> -> 2
        * <numberd> force as double eg.<2d>,<2.0d> -> 2.0
        * <numbera> as ascii char   eg.<37a> -> %; <37A> -> 7 (UpperCase => Hexadecimal)
        * <t> as boolean true
        * <f> as boolean false
        * $  => %
        * \$ => $
        * \< => <
        * \> => >
        * \, => ,
        * \\ => \
        * */```
turbid tide
visual pilot
#

It's in the readme and also tab completed

errant iron
#

%str_function_parameter1,parameter2……%

#

that's the example in the readme

#

obviously separated by commas

#

The parameters part consists of multiple variables, separated by a comma ,.

#

also in the readme

visual pilot
#

Right, but %str_replace_minecraft_mine_our% is also on the readme

#

Anyways, thanks for letting me know lol

errant iron
#

ah lol, I see that now

#

weird that's the only one like that

#
[17:55:12 INFO]: ourcraft```
#

even in the test output he uses commas

visual pilot
#

They must've typed _ out of reflex or something lol

turbid tide
#

yeah. I just PRed a change.

errant iron
#

what a hero

turbid tide
#

xD

errant iron
#

did you also change the chinese version?

turbid tide
#

NO

untold adder
#

who are the devs of statistics?

#

expansion

turbid tide
#

don't believe there are any yet

visual pilot
#

This placeholder is pretty good, especially since making JavaScripts is such a pain xD

turbid tide
untold adder
#

yeah there is a bug on statistics ecloud

turbid tide
#

ok Star. fixed Chinese version as well

turbid tide
#

make sure you're on the latest spigot release

untold adder
#

well idk maybe, I was on 1.16 when I tried

turbid tide
#

I'm also looking at the expansion code right now and don't see why it would go over 24. it literally has a hours %= 24; line.

errant iron
untold adder
#

hmm

turbid tide
#

yes. 1 year ago

#

that's why I'm saying. it was fixed

turbid tide
untold adder
#

oh ok!

turbid tide
#

tho

#

Ok. So @untold adder I take all that back. They did fix it 11 months ago. but for some reason didn't push it to the ecloud. latest from the ecloud still has the bug.

untold adder
#

oh so that was the issue

magic rock
#

hello guys, how to do something like %statistic_time_played_playername% ?

turbid tide
#

yeah. strange that they've let it there for 11 months

turbid tide
magic rock
#

Thank you Blitz!

turbid tide
proud tide
#

oh alright

#

thanks a lot!

untold adder
#

I have an annoying problem and I don't know how to fix it like I am using javascript expansion with quick js, and the problem is that BukkitPlayer doesn't work or something like that, I tried using the default scripts with the player, and still doesn't work, classic error Caused by: com.koushikdutta.quack.QuackException: SyntaxError: unexpected character

var player = BukkitPlayer;

function worldTime() {
    if(player.getWorld().getTime() < 13000){
        return "§e☀";
    }
    else if(player.getWorld().getTime() >= 13000){
        return "§b☽";
    }
}
worldTime();
vivid sparrow
#

@thorn thunder

thorn thunder
#

Could you send the complete stacktrace?

blazing pier
#

Hello, do you know why when I do /papi reload, the placeholders of my plugins don't work anymore. I couldn't find anything on the documentation to know if I have to do something when a user does this command.

turbid tide
#

you probably didn't override the persist method and returned true

#

@blazing pier

turbid tide
blazing pier
#

and for register i do that:

plugin = getPlugin(Plugins.PLACEHOLDER);
if (plugin != null && plugin.isEnabled()) {
    AuctionExpension auctionExpension = new AuctionExpension(this);
    auctionExpension.register();
}
turbid tide
#

a placeholder that can make a scoreboard? no

#

or what exactly u mean?

blazing pier
#

hooo, wheaa, thank to you

turbid tide
#

👍 yw

untold adder
turbid tide
#

google StopWatch plugins. Idk of any but I assume there's some out there.

#

not that I know of. no

subtle dove
#

!

turbid tide
#

how do you know the ecloud is not enabled?

#

what happens when you try to download an expansion?

#

also have you checked config.yml? make sure its enabled there as well?

vivid sparrow
blazing pier
vivid sparrow
#

What is this question supposed to mean?

turbid tide
#

yeah lmao. the Vault expansion supports OfflinePlayers no matter where its used. or what exactly you need to know?

vivid sparrow
#

Test

turbid tide
#

they do not

#

indeed

dusky hound
#

Heeelp !!!!

uncut hollow
#

How to get placeholders to work for scoreboard revision?

austere hawk
#

bump

warm oriole
#

can i do it so that if a placeholder is empty, it returns a different string?

magic rock
# warm oriole can i do it so that if a placeholder is empty, it returns a different string?

/papi ecloud download JavaScript
/papi reload

go to plugins/PlaceholderAPI/javascripts
create file something.js

put this in it

var placeholder = "%placeholder%"
var output;

placeholder === true ? output = placeholder : output = "custom thing";

change %placeholder% to placeholder what are you checking
change "custom thing" to your thing
/papi reload
and it should work (maybe, im noob in JS)

use placeholder %javascript_filename% (without .js)

silver minnow
#

since a string is not a boolean

magic rock
silent sequoia
#

I’m just wondering but I have a question about discord if this is the correct server

deft kelp
#

Yo can someone help? I've installed both PAPI and Vault plugins in my server but when I try to install the vault expansion for PAPI, it doesn't seem to get detected. I've already tried multiple things including reinstalling both plugins serveral times and installing the mvdw expansion(which also doesn't get detected).

#

By the way, everytime I do /papi reload and it's not detected, nothing appears in the console.

fervent spire
#

Either really. Both work really well.

#

Have you done /papi ecloud download Vault and /papi reload

hard basalt
#

hmmm

#

do u have the correct version of papi ?

#

and vault

#

and also luckperm

deft kelp
hard basalt
#

u on 1..8.8

deft kelp
hard basalt
#

latest is not what u need

#

2.10.5 is the correct version i think

deft kelp
hard basalt
#

yes

deft kelp
#

vault and papi

#

?

hard basalt
#

yes

deft kelp
#

ayt hopefully this works

warm oriole
#

How can i use js with 1.8.8?

turbid tide
#

you update to java 15 or newer and download the latest expansion

deft kelp
#

do I have to install an earlier version of the expansion aswell?

hard basalt
warm oriole
tender vaporBOT
turbid tide
warm oriole
#

ok

deft kelp
#

with the downgraded vault and papi'

turbid tide
#

@deft kelp what's your problem again?

turbid tide
#

can you do /papi dump and send the generated link here?

turbid tide
#

yes. I Think console also works

deft kelp
#

I'm using an older version of papi rn that doesn't have it

#

coz i thought downgrading would fix it

#

ill update again

turbid tide
#

oh please don't. very very rarely downgrade fixes anything

deft kelp
#

hold up im updating again

turbid tide
#

it looks to me like the expansion is there.

#

what does /papi reload do?

deft kelp
turbid tide
#

and nothing else? not even in console?

deft kelp
#

vault isn't detected

turbid tide
deft kelp
#

idk with vault though

#

[12:10:55 INFO]: loopyz issued server command: /papi reload
[12:10:55 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[12:10:55 INFO]: [PlaceholderAPI] Fetching available expansion information...
[12:10:55 INFO]: [PlaceholderAPI] Successfully registered expansion: player

#

this is what happens in the console

#

and I have the vault expansion installed but it isn't detected

turbid tide
#

okok. can you please:

  1. stop server
  2. go to plugins/PlaceholderAPI/expansions
  3. delete Expansion-vault.jar
  4. go to: https://api.extendedclip.com/expansions/vault/
  5. press: download latest
  6. get what you just downloaded and put it in plugins/PlaceholderAPI/expansion
  7. start the server
deft kelp
turbid tide
#

please do. and if it doesn't work, send the latest generated startup log

hard basalt
#

is the latest papi not support 1.8 ?

deft kelp
hard basalt
turbid tide
#

well. a new one must've generated. so I want that one

deft kelp
#

ill paste the new one

deft kelp
#

I restarted the server, ran /papi list then stopped it

#

Don't mind the luckperms error in the start, I accidentally pasted it in the spigot server instead of bungeecord LOL

turbid tide
#

yeah. is the Vault plugin you have the latest from spigot by any chance?

deft kelp
turbid tide
#

so not a development build?

deft kelp
#

I can reinstall if you want

turbid tide
#

please try. bcz I'm losing my minds here xD

deft kelp
#

latest version is 1.7.3 ryt?

turbid tide
#

you know. I've just realised. You're on 1.8.8.
What if the vault expansion doesn't support 1.8.8 at all? hmmm

turbid tide
deft kelp
#

but I think that also means that I'll have to install the expansion for 1.8?

#

or is it the same

turbid tide
#

hmm. not sure actually

deft kelp
#

Placeholder API should work in 1.8 right?

#

hmm

turbid tide
#

yes

deft kelp
#

I'll try to dl the expansion for 1.8?

turbid tide
#

sure. but Idk which one that is

deft kelp
#

umm does vault with placeholder api work in 1.8 in general?

#

or I'll have to use another plugin?

turbid tide
#

placeholderapi does. idk about vault

deft kelp
#

@turbid tide dyk other peeps that were able to use vault in 1.8 with PAPI

#

?

#

or they used an alternative

turbid tide
#

not sure actually. never encountered this before now

austere hawk
#

Is bedwars1058 still available with the ecloud?

deft kelp
#

out of nowhere

#

after I downloaded luckperms for spigot

#

now the vault expansion works???

#

i guess my problem is solved lmaoo

turbid tide
#

wait. @deft kelp you had no permission plugin?

deft kelp
#

but for the bungeecord I did

#

i thought that was enough but I decided to dl luckperms in the lobby just to be safe

#

then out of nowhere vault works

#

does the expansion need a permission plugin to work?

turbid tide
#

it might. not sure

deft kelp
#

well tys for all of your help!

turbid tide
#

@deft kelp the problem with not having luckperms on your spigot is that vault won't be able to get the permissions and ranks anyways

deft kelp
turbid tide
#

yeah.

deft kelp
turbid tide
#

ugh

#

rank?

#

what is rank

#

in this case

#

is it a number? is it an actual rank?

#

what are you putting instead of rank

#

when you're trying it

#

@austere hawk

#

ugh no

#

rank is a number

#

so 1

#

would be top 1

#

2 top 2

#

what "official wiki" is this that you're talking about?

#

wait. so you want to get the player's current rank?

#

oh Ic. Ic.

#

Ok. So first of all.

#

Are you aware that all top placeholders were removed in newer versions of the Vault expansion?

#

welp. it was moved to the essentials expansion. still work in progress tho.

#

you can still get the old baltop placeholders from vault by doing 2 things:

#

downloading version 1.5.2 of Vault expansion
enable them in plugins/placeholderap/config.yml

turbid tide
#

nah. that's how you enable all the baltop placeholders

#

then you can use the placeholder you used before

austere hawk
#

bump

austere hawk
#

where i can ask for help?

subtle rivet
#

Is there a placeholder for accurate amount of sugar-cane harvested?

turbid tide
subtle rivet
#

And cactus / other farming items that are usually harvested from the bottom

stone edge
#

(i think)

trim mist
#

The regular statistic ones are based upon whatever Minecraft tracks so it depends on if it counts that all or not.

subtle rivet
#

I see it, but I don't think the sugar-cane and cactus above it counts haha

stone edge
#

but not when you break from bottom

subtle rivet
#

Lemme test it again

turbid tide
#

pretty sure it does not

subtle rivet
#

Tryna make quests but setting up any form of tracking for cane or cactus is horrid

trim mist
#

Yeah if MC doesn't track every block in that, then statistics won't show it. Most likely would have to custom track that.

subtle rivet
#

:( i've dodged the solution for too long

#

Can you upload singular placeholders lol

austere hawk
#

@turbid tide Perfect. I installed Placeholder API and alls is fine but after i tryed to install the Expansion "Server" and the reload my Server shows the Error: https://paste.helpch.at/aweniyigeg.http
There u have also the Dump output.

Anyone hava an Idea?

subtle rivet
#

Might upload that and cactus as two placeholders

trim mist
#

Well yeah, expansions can have as many placeholders as you want. Just create a new one.

subtle rivet
#

Huh, well it ain't returning anything on the stats one

trim mist
#

So yeah if it only counts it as 1, you'd have to write your own plugin to properly track it to handle all the other blocks.

subtle rivet
#

/papi parse TombSpyder %statistic_break_item:SUGAR_CANE% That's returning zero, am I being dumb?

turbid tide
#

it might be that no stats are recorded

#

any chance that you are on Purpur?

subtle rivet
#

On paper

trim mist
#

Pretty sure break item for for like item in hand broken.

austere hawk
#

@turbid tide Me?

turbid tide
#

ohh yeahhh. its mined what you want to use Amis

turbid tide
trim mist
#

That or a plugin is modifying the class loader because it uses a line of code to get the version in that expansion iirc.

austere hawk
#

@turbid tide But what expansion? xD

turbid tide
#

your server expansion

#

or if not that, what glare said ^^

trim mist
#

It's still in statistic expansion.

austere hawk
#

Sorry i dont understand

subtle rivet
#

I'd take it getting accurate tracking for this would require a plugin? and not just an expansion?

#

Wait no, it wouldn't right?

trim mist
#

I mean you'd have to keep the data somewhere for it, so you'd make a plugin and then an expansion inside the plugin to pull data from.

subtle rivet
#

So the expansion would require a plugin to work also

#

I didn't realise papi did not handle any storage

#

That complicates things

austere hawk
#

hehehe

turbid tide
#

ugh. I don't know if you can run titles from javascript. you can run commands but that's about it.

#
function runCommand(sender, command) {
  BukkitServer.dispatchCommand(sender, command);
}

function run() {
  if ("%placeholder_to_parse%" == "true") {
    runCommand(BukkitServer.getConsoleSender(), "title send %player_name%");
  }
}

run();``` something like this
#

you would have to parse the placeholder at the start and at the end somehow. this really sounds like not a job for javascript

#

like even if it is somehow possible it sounds very bad

#

yes. but in your javascript. you would have to somehow know when they go afk

#

and the only possible way I can think of is parsing the placeholder every tick

#

it is parsing every tick. unless the tab refreshes less often or it has a cache system

vivid sparrow
#

@turbid tide just put the console sender in that method as well lol xd

turbid tide
trim mist
subtle rivet
#

I feel like a sq-lite database would be ideal

#

Wait

#

Is there a way to override default statistics, that way the plugin wouldn't be required?

trim mist
#

I have no idea. That's not really a PAPI matter. We pull directory from the Bukkit API at that point.

#

So we pull whatever data is given to us through Minecraft itself, any custom stuff would most likely require a plugin.

austere hawk
#

Hey, can anyone tell me if this is going to work?

#
function run() {
  if ("%murdermystery_office:state%" == "Waiting" || "%murdermystery_office:state%" == "Starting") {
    var stats = "%javascript_waiting%";    
  } else {
  if ("%murdermystery_office:state%" == "In-game") {
    var stats = "%javascript_ingame%";        
  } else {
    if ("%murdermystery_office:state%" == "Ending") {}
    var stats = "%javascript_ending";
  }
}

run();
turbid tide
#

also

#

you're setting stat

#

but never returnng anything

#

you should return stats probably

#

instead of setting it in a local variable?

austere hawk
#

I mean did I do good the ifs?

turbid tide
#

hmmm

#

could probably be improved

austere hawk
#

Can you help me to improve it? It's my first time doing this LOL

turbid tide
#

hmm. what exactly are you trying to do?

austere hawk
#

Idk javascript, I know just a bit of c++ lol

turbid tide
#

so if the state is waiting or starting you return a custom javascript

#

if its ingame another one

turbid tide
#

I can test it tho in a second as well

#

yup

#

seems like its working

austere hawk
#

Thankuuu

turbid tide
#

yw 👍

untold adder
#

I got that code working with some Java but I want to do something with BukkitPlayer

grand zenith
#

Using JavaScript expansion:
I am parsing %player_yaw%, making it a normal number and if it's above 180, doing yaw-360 and after that there are 32 if statements for checking diff yaw values between 2 numbers and then returning a value for the placeholder. How can I make the script to run better? (to use less resources) It's using nashorn engine also I am using it in a bossbar

turbid tide
#

can we see your current script? @grand zenith

turbid tide
turbid tide
#

why are you doing that entire thing? is that a special symbol? or what. bcz in the paste bin they all look the same

grand zenith
#

special char

#

in a texture pack

turbid tide
#

anyways. few things you can improve is have just 1 check per if statement

grand zenith
#

how

turbid tide
#
if (yaw <= -170)
if (yaw <= -160)
if (yaw <= -150)
...
if (yaw <= 180)```
#

since you return

#

every time it gets to the second if

#

it can't be lower than -170

#

so it will always be between -170 and -160

#

also. maybe have a if (yaw < -180) return "danger" or whatever

#

don't really know if there's anything else you can really improve

grand zenith
#

ok thx

#

it's the same resources usage

turbid tide
#

yeah. didn't expect it to increase significantly

junior musk
#

oh wut

#

that actually exist

untold adder
#

case "world_time":
return String.valueOf(p.getWorld().getTime());

#

I was looking into the code and saw that

junior musk
#

weird that it isn't there

slim dawn
#
[30.08 22:21:12] [Server] [WARN]     at java.base/java.lang.Class.getDeclaredField(Class.java:2549)
[30.08 22:21:12] [Server] [WARN]     at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:49)
[30.08 22:21:12] [Server] [WARN]     at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:270)
[30.08 22:21:12] [Server] [WARN]     at PlaceholderAPI-2.10.10.jar//me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160)
[30.08 22:21:12] [Server] [WARN]     at PlaceholderAPI-2.10.10.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
[30.08 22:21:12] [Server] [WARN]     at PlaceholderAPI-2.10.10.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98)
[30.08 22:21:12] [Server] [WARN]     at SimpleScore-LATEST-[3.8.1].jar//com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.replacePlaceholders(ScoreboardTask.kt:107)
[30.08 22:21:12] [Server] [WARN]     at SimpleScore-LATEST-[3.8.1].jar//com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.applyPlaceholders(ScoreboardTask.kt:96)
[30.08 22:21:12] [Server] [WARN]     at SimpleScore-LATEST-[3.8.1].jar//com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run(ScoreboardTask.kt:70)
[30.08 22:21:12] [Server] [WARN]     at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101)
[30.08 22:21:12] [Server] [WARN]     at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
[30.08 22:21:12] [Server] [WARN]     at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[30.08 22:21:12] [Server] [WARN]     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[30.08 22:21:12] [Server] [WARN]     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[30.08 22:21:12] [Server] [WARN]     at java.base/java.lang.Thread.run(Thread.java:831)```
#

Does anyone know how to fix this?

grand zenith
tender vaporBOT
grand zenith
#

and now it's not consuming like anything

#

👍

turbid tide
untold adder
#

I tried doing my code on java with placeholders on javascript and I get ```
Caused by: com.koushikdutta.quack.QuackException: SyntaxError: unexpected character

```js
function worldTime() {
    if("%player_world_time%" < 13000){
        return "&e☀";
    }
    if("%player_world_time%" >= 13000){
        return "&b☽";
    }
}
worldTime();
silver minnow
#

that isn't java

slim dawn
#

Or a redirect to a previous messages where this fix was talked about

silver minnow
#

but @untold adder that's because you need to convert the string (text) to a number

untold adder
silver minnow
silver minnow
#

maybe someone more experienced in js can help.. but i know enough that it's erroring bc ur comparing a string to an int ¯_(ツ)_/¯

untold adder
#

well that's true but it's pain, I tried a lot of alternatives, but no succes, kinda P A I N

jade cove
#

Hello, why when i do /papi reload, all placeholder plugin with papi integration are broken ? is it a bug or is it normal ?

magic rock
edgy moth
unique leaf
#

Is there a PAPI Placeholder that shows the amount of "jumps" all the players on the server ever "jumped" that includes offline players?

silver minnow
trim mist
#

I mean isn't there a statistic for times jumped? Just loop all offline players, but that can get kinda resource intensive.

silver minnow
#

oh

#

maybe

#

¯_(ツ)_/¯

#

oh wait

#

d;spigot Statistic%jump

ionic fractalBOT
magic rock
#

how that works

#

how it knows player jump

silver minnow
#

client prob sends info to server

magic rock
silver minnow
#

says "update this statistic to jump" idk

magic rock
#

wait, where are the statistic saved? in world folder?

silver minnow
#

🤷

#

also why are reactions not allowed in here ;-;

#

these permissions are weird

#

(besides services/special/hidden channels)

trim mist
#

Yeah statistics are saved in player data in worlds iirc.

magic rock
#

its in world/stats/uuid.json just checked

#

but why its saving jumps lol

trim mist
#

Idk. Just a statistic Minecraft figured to add?

random thistle
#

how to add lp rank to tittle manager

#

lines:

  • '&b&m&6-----------------'
  • '&6> &e&lPlayer Name:'
  • '&b%{name}'
  • '&r'
  • '&6> &e&lPing:'
  • '&b%{ping} MS'
  • '&r&r'
  • '&6> &e&lMoney:'
  • '&b%{money}'
  • '&6> &e&lRank:'
  • '&b%{group}'
  • '&b&m&6-----------------'
#

d;help

ionic fractalBOT
#
Help:

Command(s): d;info
Example: d;info
Description: Display info about the bot.

Command(s): d;docs, d;javadocs
Example: d;javadocs
Description: Get a list of javadocs.

Command(s): d;prefix
Example: d;prefix <prefix>
Description: Set the server's command prefix.

Command(s): d;algorithm
Example: d;algorithm <algorithm>
Description: Set the server's algorithm.

fierce crane
#

Hey! Is there a way I could edit placeholder messages?

#

I wanted %date% to be "Aug 31, 2021" instead of "31.8.2021".

#

Is there a way I could edit it?

austere hawk
#

Hi

#

need help

fervent spire
#

with? Can't help you unless you tell us what you need help with.

austere hawk
#

how do i dounload on placeholder api?

#

it dosnt seem to work

fervent spire
#

What?

inland moat
#

tokenmanager placeholders do not work, should i contact TM developer?

fervent spire
#

"do not work" is not a clear description of the issue.

inland moat
#

it just displays %tm_tokens% and not the amount of tokens

fervent spire
#

What does /papi parse me %tm_tokens% show

inland moat
#

%tm_tokens%

inland moat
#

is there a way to fix it?

slim dawn
#

How do I update player expansion?

#

I have this spam that I can't get rid of

turbid tide
#

/papi ecloud download player then /papi reload

slim dawn
#

Doesn't fix anything for me.

turbid tide
#

/papi dump and send the generated link here

slim dawn
turbid tide
slim dawn
#

I think I found the problem. I did what you said, but it happened again. So I have decided to delete SimpleScore.jar

#

The spam is gone.

turbid tide
#

yes. temporarely. until you use the %player_ping% placeholder again

untold adder
fallen shard
#

Hello I'm looking for 2 different placeholders however I can't seem to find them (I may be blind)

  1. a placeholder to count the number of items in a given players inventory ( %playername_dirt% would print say 34)

And
2) something I can use to calculate with from the last placeholder ( 34 * 2 outputs 68)

#

For a bit of context, we are using command panels to make a shop and they don't have a sell all only sell x amount

untold adder
#
  1. Checkitem expansion
  2. math expansion with JavaScript
#

Check the placeholders wiki for checkitem

fallen shard
#

Ty

sacred cave
#

how I can to register new extends PlaceholderHook?
im tried this

            PlaceholderAPI.registerPlaceholderHook(this, new Placeholders());
turbid tide
#
new Placeholders().register();```
sacred cave
#

its dosent works, the class is

public class Placeholders extends PlaceholderHook {

    @Override
    public String onPlaceholderRequest(Player p, String identifier) {
        if (identifier.equals("ringsfound")) {
            return "tets";
        }

        return null;
    }
}
turbid tide
#

ugh. idk what wiki you've read but that is not a thing anymore

#

read this please

sacred cave
#

thx

sacred cave
#

how I can check if the placeholder exsits?
ringsfound

untold adder
#

/papi parse me %pluginname_ringsfound%

turbid tide
#

not plugin name. identifier.

untold adder
#

yes

tardy glade
#

is there any extension that can create countdowns?

vivid sparrow
#

server

midnight egret
#

Displaying 40m, 27s
I want to change 40dk, 27sn

untold adder
untold adder
#

you are using java 8, download a lower version of javascript

midnight egret
#

how i download lower version of javascript

untold adder
#

firstly delete the javascript expansion by going into the expansions folder from PlaceholderAPI, then papi reload, then /papi ecloud download JavaScript Version(number)

midnight egret
untold adder
#

1.6.0

midnight egret
#

ok

midnight egret
errant iron
#

🥲

raw panther
#

^ reason to not use papi js

#

1.6 gb of ram usage

thorn thunder
#

Use nashorn instead if that helps

#

You dont have to use quickjs

raw panther
#

not possible on jdk 16

#

solution was just to recode the placeholders in java and it fixed the performance issues

thorn thunder
#

It uses nashorn by default

untold adder
#

Well Java for sure remains the best for placeholders, but why do you need to make a plugin for 1 simple placeholder

silver minnow
turbid tide
#

@thorn thunder. Performance issues have been reported quite a bit on both quickjs and nashorn. Couldn't really gather more information I'm afraid.

thorn thunder
#

I know the issue

#

Found the fix

#

But struggling to find time to actually implement it

#

It should be fine mostly with nashorn tho

turbid tide
#

Oh. Ok then.

thorn thunder
turbid tide
#

Oh. Why? xD

thorn thunder
#

Absolutely no idea 🥲

regal orchid
#

Cant post images here :(

tender vaporBOT
regal orchid
#

I dont think the rainbow placeholder is working xd

untold adder
#

Are you using Animation expansion?

jaunty zephyr
#

Currently using the statistic %statistic_time_played%, and for players who have been playing since before the statistic expansion, it's lowballing what their actual time played is

#

where does PAPI store its statistics for that expansion?

#

The placeholders for seconds, minutes, hours, and days played are all correct, but the main %statistic_time_played% placeholder is far too low

umbral karma
#

Hi

#

How i can ask for upload my expansion to ecloud?

hidden panther
#

🤷‍♂️

untold adder
turbid tide
turbid tide
tender vaporBOT
# jaunty zephyr Ty
Hey!

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

grand zenith
jaunty zephyr
#

Is there a PAPI placeholder for the amount of diamonds acquired, NOT the amount of diamond ore mined?

#

in the minecraft statistics, there's a section for items "Picked up"

turbid tide
#

Then probably yes

sand gulch
#

Hello, for some reason, I cannot use the countdown placeholder from the server expansion on anything. I cannot use it on deluxehub and holographic displays, even though it works just fine with a parse

#

Wait I can't post images?

tender vaporBOT
sand gulch
#

Parse command:

/papi parse me %server_countdown_kk.dd.MM.yyyy_12.18.09.2021%

jaunty zephyr
#

Is it possible for a custom PAPI javascript expansion to hook into another plugin?

#

For example, I'm trying to detect a worldguard region in a custom javascript expansion of mine and I'm not sure how I would do it

regal orchid
#

Im using plain text and then the rainbowcolor placeholder

#

The plugin dev of the plugin that is serving that message used the same server jar as me, the same config and the same chat plugin

#

And it worked. Apart from those things what could be the cause?

balmy marten
safe oriole
#

Guys Help Plz my placeholder in holograms are not working ?!!

safe oriole
tender vaporBOT
umbral karma
#

@balmy marten Ok I'll send you a message

tender vaporBOT
umbral karma
#

Oh sorry for @

#

I can't dm you

balmy marten
#

Accept my friend request and you will be able to

modern lynx
#

Why it does not work? What is the problem?

#

Placeholders doesn't work for username section in ParseOther

turbid tide
#

also. because you can't have % inside placeholders.

modern lynx
#

ok

modern lynx
#

%player_uuid% makes UUID like 069a79f4-44e9-4726-a5be-fca90e38aaf5, but I want 069a79f444e94726a5befca90e38aaf5. How can I do that? Is there a way to do that with Formatter or something?

sharp jay
#

try using %formatter_replace_<target>_<replacement>_<text>%

vivid sparrow
#

It might not work

#

Could try js

#
function replaceDashes() {
    return BukkitPlayer.getUniqueId().toString().replace('-', '')
}
replaceDashes()```
turbid tide
#

also. it doesn't make the UUID like that. That is the UUID.

timid fox
#

hi

#

guys

#
PlaceholderAPI.setPlaceholders```
#

this method seems to auto parse color codes

#

this is a disadvantage for me

#

im setting placeholders for a message for discord

#

so when it tries to ping a role it needs <@&ID>

#

& and the next number turns to a color code, which breaks the message

#

anyway to remove the color parsing?

modern lynx
safe oriole
#

Guys help I want to make leaderboards using placeholders anyone know how I can do it

warm topaz
#

u can use a plugin like ajLeaderboard / LeaderHeads to handle leaderboards

safe oriole
#

Okay I will see

turbid tide
timid fox
#

Im not gonna force my users to use my fork

#

This cant happen

turbid tide
#

ah. thought its a private plugin

warm topaz
#

isnt there a deprecated method that allows u to disable it?

turbid tide
#

hasn't worked in a while

warm topaz
#

ah

turbid tide
#

it was something like

#

PlaceholderAPI.setPlaceholders(Player, String, Boolean)

#

and true would color it

#

false won't

#

for the boolean parameter.

#

oh wait. @timid fox it is still there. try using it just in case

timid fox
#

Thx so much

turbid tide
#

nvm

#

lamo

#

return setPlaceholders(player, text);

#

it literally calls that

#

why?

warm topaz
#

i just found that lmao

turbid tide
#

I'm so fucking confused. why would they make it like that? xD

warm topaz
#

🤡

turbid tide
#

I found this out before but forgot how fucked it is

austere hawk
#

i download vault expension but dosnt work !!

turbid tide
#

do you have the vault plugin installed?

modern lynx
#

how can I change refresh delay of Player expansion?

turbid tide
#

there is no refresh? the plugin doesn't cache anything afaik

modern lynx
#

%player_online% placeholder for my offline alt is still parses yes

#

I left 2 mins ago

#

no wait I was parsing myself

#

ok

turbid tide
#

lol xD

modern lynx
#

How can I use %formatter_number_format_{gemseconomy_balance_cookies}%' with ParseOther? It doesn't work when I use it as %parseother_{artwart}_{formatter_number_format_{gemseconomy_balance_cookies}}%. It shows %formatter_number_format_gemseconomy_balance_cookies% exactly same.

turbid tide
#

yes. bcz you can't use placeholder in placeholder in placeholder.

modern lynx
#

ok

vernal kelp
turbid tide
#

n

vernal kelp
#

Perfect ! Thank you 🙂

visual pilot
#

Is there a placeholder that can capitalize each word in a sentence/string?

warm topaz
#

@turbid tide does string expansion uppercase placeholder uppercase the whole string

turbid tide
#

yeah

#

it does

warm topaz
#

smh

#

new placeholder idea then :)

austere hawk
#

Why is expansion vault not working

#

@warm topaz

tender vaporBOT
magic rock
#

did you downloaded Vault wxpansion (/papi ecloud download Vault) and then reloaded papi (/papi reload)
if yes provide server log and /papi dump
also /papi parse me %some_vault_placeholder% works?

indigo grail
#

any placeholder to check the inhand item durability left?

sonic lake
#

Someone please help i cant download the skript expansion

#

^thats the log

#

dump

balmy marten
#

[PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

#

Skript expansion is outdated, author would need to update it

austere hawk
#

Hey, can anyone help me to make a javascript placeholder?

magic rock
austere hawk
#

I tried to do something but it looks like I keep getting an error

#
var counter = setInterval(timer, 1000);
function starting() {
    var players = "%murdermystery_office:players%";
    switch (players) {
        case "12":
            var count = 15;
        case "2":
            var count = 60;
    }
}

starting()

function timer() {
    count = count - 1;
    if (count <= 0) {
        clearInterval(counter);
        return;
    }
    var countexport = count.replace(/0/g, "𝟎").replace(/1/g, "❶").replace(/2/g, "❷").replace(/3/g, "❸").replace(/4/g, "❹").replace(/5/g, "❺").replace(/6/g, "❻").replace(/7/g, "❼").replace(/8/g, "❽").replace(/9/g, "❾");
    return countexport;
}

timer()
#

@magic rock

#

The error is saying something about setInterval

turbid tide
#

probably bcz timer is not a variable?

#

you probably meant to call the function in there?

vivid sparrow
#

you type the function name to call it from a setInterval function

turbid tide
#

oh

vivid sparrow
#

like you would do this::timer in java or () -> timer()

#

but setInterval will most likely not work

#

count is also not defined

austere hawk
#

I tried to do it like this:
If the arena office haves 2 players connected then a countdown of 60s would start else
if there are 12 players, the countdown would jump to 15s

#

So I just tried to like copy code from stackoverflow and to use the code that Blitz gave me because I don't know any JS, I know just a bit of C++

winged saffron
#

I need to have Xp level number like 1 to 30 on aplaceholder, which one to use ?

turbid tide
#

so you need a placeholder that returns the amount of exp levels a player has? then use %player_level% or %player_levels%

winged saffron
#

I need the level itself not the amount of xp i cannot find a placeholder for that

turbid tide
#

yes. player levels returns the level

winged saffron
#

you are right

#

sorry

#

tnx

austere hawk
#

Can anyone help me to fix that?

nova flame
#

Hi, I need help ! My server throws me an error and I don't know how to solve it

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

nova flame
#

plis help

turbid tide
austere hawk
nova flame
austere hawk
nova flame
#

Español

austere hawk
#

I'll use google translate

turbid tide
#

in your console execute: /papi dump

austere hawk
#

Escribir /papi dump

#

En la consola

nova flame
#

The problem is that the server does not start, but now I try and send

twin sluice
#

Hi, how can I have a placeholder for a certain player like: %player_claims_<player>%?

twin sluice
#

How?

austere hawk
#

Try to make one with javascript but idk if it can do what you want to do

twin sluice
#

Hmm but like isn't it possible with any extension

austere hawk
#

I don't think so

silver minnow
#

this?

nova flame
#

Let me explain, I just updated my server to java16, and now it doesn't start the server directly so I can't put the command they tell me

twin sluice
#

exactly

#

thanks!!! dkim19375

nova flame
#

1.16.5

austere hawk
#

Yo, can someone look at the WorldGuard PAPI expansion?

#

There's a glitch with it due to region templates and parent regions.

#

When you set a region template or parent region/inheritances, the %world_region_name% will glitch between the template and the region name itself.

#

Can you fix it so it actually returns the region's name consistently?

#

I asked the WorldGuard devs, and they told me to report it back to you.

#

^ Yeah that's an issue that's affecting me heavily as well.

austere hawk
turbid tide
#

can you show us the error?

austere hawk
#

yah sure

#

I think it fixed by itself?

#

nvm

#

I was on the wrong server

tender vaporBOT
austere hawk
#

oop-

turbid tide
#

yeah.

#

as gaby said

#

that is not a valid method

#

in nashorn

#

so you can't use it

#

setInterval I mean

#

that doesn't exist

austere hawk
#

Do you have any ideas how can I change it?

turbid tide
#

change what exactly?

austere hawk
#

setInterval

turbid tide
#

no idea. don't know anything similar that is available in nashorn

austere hawk
#

Do you have any idea how could I do a countdown?

sly spear
#

hello everyone!

im trying to download PlayTime from ecloud but its telling me its not exsisting. has anyone any suggestion?

(using spigot 1.17.1 and papi 2.10.10)

lethal basin
#

try playertime instead of playtime it works for me

sly spear
#

its downloaded but wont register

#

okay just did a full plugin reload and its working 😄

#

thanks ❤️

indigo grail
#

any placeholder to check the inhand item durability left?

indigo grail
#

qwq

silk canopy
#

I wonder why the script was removed from the plugin and when it will be added, it is urgently needed

sage magnet
indigo grail
#

rlly?

#

how?

turbid tide
turbid tide
#

well. not might. it will.

indigo grail
#

that only say you the durability that you already use

#

i want to know the durability left

turbid tide
#

wait what? I'm 99% sure that shows the durability left

indigo grail
#

no

#

give me a sec

turbid tide
#

yeah. that's what the code does.

#

it gets the durability left

indigo grail
#

no

#

i send a pick, wait me

silk canopy
turbid tide
silk canopy
#

yes

turbid tide
indigo grail
#

there i send u the screenshot

turbid tide
#

you have to manually download it but it takes like couple seconds Efehan.

indigo grail
#

that Hoe is about to break

silk canopy
#

Thanks

turbid tide
indigo grail
#

ok

sage magnet
#

It does

#

I have a UI where I’m checking for that too with check item

turbid tide
# sage magnet I have a UI where I’m checking for that too with check item
%checkitem_<modifier1>,<modifier2>,<...>%        - Returns if user has the item
%checkitem_amount_<modifier1>,<modifier2>,<...>% - Returns amount of items the user has
%checkitem_remove_<modifier1>,<modifier2>,<...>% - Removes the items from the players inventory - Can be used with amount, it just has to be after. (Ex. `%checkitem_amount_remove_<...>%`) Please be careful as it does REMOVE ITEMS FOR GOOD
%checkitem_give_<modifier1>,<modifier2>,<...>%   - Gives the player items. Returns true if successful, returns the number of items NOT given if unsuccessful. (When unsuccessful items can still be given, it just might not be all of them)```
#

not according to the wiki

#

there's only 4 types, one that returns yes/no if they have an item

#

1 that returns the amount

#

1 that gives the item

#

and 1 that takes the item

sage magnet
#

What did he wish to check again?

turbid tide
#

he wants the durability value

#

like no matter what item in main hand

#

show the durability

sage magnet
#

Ohh, I misunderstood it then, my bad.

turbid tide
#

@indigo grail are you willing to use a javascript then? not sure why the expansion doesn't show the durability left. I'll report the bug on github but until then I can try and make a javascript placeholder instead

indigo grail
#

rlly? qwq ❤️ TSM!!

turbid tide
#

I can't really test it at the moment

#

actually. I might be able to. 1 min

placid light
#

can someone tell me is it ok to have 100+ papi placeholders that check on something in gui menu?

#

how much bad can it get with a lot of players in terms of lagging

#

(1.16.5, or any version)

turbid tide
#

well. that really depends. a lot on the plugin/placeholder itself. like some placeholder might make a database call each time. if you have placeholders like those, it can be bad. but if the plugins were at least somewhat well made, you shouldn't really have that kind of problems.

placid light
#

well, i will have a lot of placeholders that will grab value from the .yml file (database) and math it with something and output it

#

100+ in one deluxemenus menu

turbid tide
#

I mean it really isn't a way to tell

indigo grail
#

how can i put that on my server?

#

qwq

turbid tide
#

you'll have to test

#

1 sec Red. it doesn't work

#

working on fixing it

#

bcz rn it does the same thing

placid light
turbid tide
#

as the other placeholder

placid light
#

btw blitz did you create string papi expansion

turbid tide
#

yes I did

placid light
#

can you add java8 support and can you explain how it works in an example please
at least this second thing i wrote

turbid tide
#

which placeholder you want example for?

placid light
#

what if i want multiple ones

turbid tide
#

well. tell me which

placid light
#

i saw %string_equals_{server_name}_Lobby% example
how to add more names like {server_name} to check if they are "Lobby"

#

to check if %server_name% equals or %example_placeholder% equals

#

in the same placeholder

indigo grail
#

Blitz, that dosn't work

#

qwq

#

it still sending me "248" instead "2"

turbid tide
#

working on fixing rn

turbid tide
#

not really sure I understand your question

turbid tide
#

use %player_item_in_hand_durability%

#

it also works for the armor placeholders and item in offhand.

indigo grail
#

is that the player expansion?

turbid tide
#

yes.

#

updated it.

#

to add a new placeholder

indigo grail
#

oh

#

ok

#

let me see

turbid tide
#

do you know how to manually update it?

indigo grail
#

yes

#

delete the old one and put this one

turbid tide
#

alr 👍

turbid tide
#

well. you can't really do that from isnide the string expansion

#

its meant for just 1 string

placid light
#

and i would also like to
for example is %someplaceholder% == 13689
how to make string to check if it has for example 3 in it, then output is "yes"

turbid tide
#

you will probably have to use a custom javascript placeholder

#

or stuff like this

placid light
#

will wait

indigo grail
#

Yes! it work! i love u Blitz!!!!! uwu ❤️

turbid tide
#

@placid light you can use this placeholder %string_contains_<string>_<match>% for that. it would look something like this: %string_contains_{someplaceholder}_3%

placid light
#

sorry if i am asking too much

turbid tide
#

you'll have to use the javascript one

#

for that

#

but you need to know some javascript

placid light
#

yeah there's the problem

#

thanks

clever leaf
#

hi

#

i have a problem with placeholders

#

i want to use them in my server, but when I write them, the scoreboard say %objective_score_<obj-name>% instead of the actual score

#

Can anyone help me in voice chat to configure my scoreboard?

turbid tide
clever leaf
#

I have downloaded the AnimatedScoreboard Plugin and Placeholder plugin

#

I need more plugins?

turbid tide
austere hawk
#

can anyone help me to make a like 15s countdown?

dense trail
#

Does anyone know where I can find a simple if else statment for a placeholder ?

#

I want to make a placeholder withing javascript that would display "none" if a player has no town or nation

neat solar
#

Heya, could somebody assist me in understanding what this error means? thanks!

silver minnow
#

so it won't register

neat solar
#

Is there a way to fix this? I've been fiddling with it for around a day now.

silver minnow
#

might be because its outdated or smth

#

not sure, you'll have to contact the author

neat solar
#

oml

#

thanks

silver minnow
#

np

neat solar
#

It's the current version of papi on pixelmon 1.12.2.

#

So who can I contact for assistance? @silver minnow

#

Sorry for the ping ^

silver minnow
#

the author, idk who it is ¯_(ツ)_/¯

#

wait a min

tender vaporBOT
#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17

Version:

v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.10 - Dev Builds
v2.10.10 - Dev Builds

silver minnow
#

@neat solar use PAPI version 2.10.9

#

wait

#

isn't Pixelmon a mod

#

not a plugin

neat solar
#

I'm using Magma.

silver minnow
#

😬

#

alr

neat solar
#

Magma is pretty steady. lol

#

Also, I had somebody else download it onto a 1.17.1 server, didn't seem to work either for whatever reason.

silver minnow
cinder oyster
neat solar
#

pretty sure it'd have been fixed, could be server sided

silver minnow
#

lol
but this is the parts of the error message that are important:

[PlaceholderAPI] Failed to load expansion class EssentialsExpansion - One of its properties is null which is not allowed!
java.lang.NullPointerException: The expansion version is null!

[PlaceholderAPI] Failed to load expansion class EssentialsExpansion
I don't think I need to explain this 🥴

One of its properties is null which is not allowed!
Basically each expansion has a bunch of properties (ex: name), and null means "nothing" or in this case it's better to think of it as "missing"

java.lang.NullPointerException: The expansion version is null!
This means that the expansion version is "nothing" or "missing"

the rest just shows where the code is being called and stuff, unless you're the developer you don't have to worry about it

neat solar
#

It's been fixed, literally repeated the same steps over and over again until it worked LOL

silver minnow
#

interesting

#

wait what steps?

neat solar
#
  1. Uninstall Papi + Respective folders.
#
  1. Reinstall Papi (2 versions)
#
  1. Download the essentials expansion
#
  1. Reload
#
  1. Type in chat. Didn't work
#

and repeat that process from most of yesterday and most of today until it worked! angry_fingerguns

silver minnow
#

lol

#

im still confused on why it works

#

but oh well

#

¯_(ツ)_/¯

neat solar
#

I have no fucking idea either

silver minnow
#

try restarting the server again

neat solar
#

apologies for the language, not sure what the rules are like in here.

#

I stg if I restart and it disables

#

I will cry.

silver minnow
#

🥲

silver minnow
neat solar
#

it has been fixed

dusk delta
#

help me about Progress-Expansion pls.

#

%progress_bar_{superior_island_upgrade_hoppers-limit}%

#

idk how to do

sharp jay
#
/papi ecloud download progress
/papi reload```
#

did you run these

dusk delta
#

yes

#

but it show only 1

#

up grade tier 2 but it show &a■&7■■■■■■

dense trail
#

Do javascript placeholders lag the server ?

balmy marten
#

Depends what they're doing

clever leaf
#

hey, how can I had to my scoreboard other scoreboards? I have one scoreboard in my server that is "points".
In my custom scoreboard I want to put your nuber of points, the top 3 with more points and the bottom 3 with less points

#

Is that possible?

dense trail
tender vaporBOT
dense trail
#
var TownName = '%townyadvanced_town%';

function getTownName() {
    if (TownName == "") return "&cNone";
    else if (TownName !== "") return "%townyadvanced_town%";
    else return TownName;
}
getTownName();
balmy marten
#

Should be no issue then

dense trail
#

Alrighty thanks a lot.

turbid tide
fleet chasm
#

placeholder is not working idk why the version good and everything ok when i type /papi reload it didnt say anything and then i reload server then also no changes

#

@slow crystal\

#

anyone?

#

its urgent

slow crystal
fleet chasm
silver minnow
#
  • don't reload server
  • what placeholder?
fleet chasm
slow crystal
#

Sorry man papi is a bit above my pay grade

fleet chasm
#

its urget

silver minnow
#

placeholder is not working
and then i reload server then also no changes

#

no

#

don't ping staff

slow crystal
#

No sir, I would suggest you consult the #rules

silver minnow
#

..

fleet chasm
slow crystal
#

🤩

fleet chasm
#

the i type /papi reload :/

sharp jay
#

restart your server??

silver minnow
#

?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

fleet chasm
sharp jay
#

did you run /reload?

#

please dont

fleet chasm
#

ya /papi reload not working

sharp jay
#

its a bad command

fleet chasm
fleet chasm
silver minnow
#

/reload breaks things

fleet chasm
sharp jay
#

No

silver minnow
#

...

#

i give up

#

ima go

sharp jay
#

If you try I dont help

silver minnow
#

cya

fleet chasm
#

okh

#

lol i didnt

sharp jay
#

what errors

fleet chasm
sharp jay
#

?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

fleet chasm
sharp jay
#

so when you type /papi

#

you got 0 errors?

fleet chasm
#

wait let me

sharp jay
#

@silver minnow you help him

fleet chasm
#

yup no errors

#

idk all good just /papi rerload didnt work

#

u can come in server and check

sharp jay
#

so what errors shows up when you type /papi reload

#

send me your latest logs

#

?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

fleet chasm
fleet chasm
#

;-;

sharp jay
#

I will not be able to assist you without your logs

#

Gl

fleet chasm
#

come in vc i will present

#

ok?

turbid tide
#

what's up

sharp jay
#

Nothing he doesnt want to provide logs

#

so I cant help

turbid tide
#

oh

#

k

sharp jay
#

yaa

turbid tide
#

wait. why is that?

sharp jay
#

good question

turbid tide
#

@fleet chasm ? why can't you provide the logs? or is it that you don't want to?

#

The whole point of logs are to log warnings and errors so problems can be solved more quickly

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

turbid tide
#

you put them in this paste bin ^

#

and send the link in here

#

also. if possible. generate new logs first by restarting the server.

#

and send the newly generated ones

fleet chasm
#

okh

#

@turbid tide

turbid tide
#

I'll take alook in a minute. ingame rn

fleet chasm
turbid tide
#

me too. me too.

turbid tide
fleet chasm
#

ok

turbid tide
# fleet chasm https://paste.helpch.at/ebifikuned

Oh. So you don't have the essentialsx plugin.
There's 2 fixes:

  1. You install theEssentialsX plugin. (if you need it of course)
  2. You go to plugins/PlaceholderAPI/expansions and delete the file called Expansion-essentials.jar then restart the server.
turbid tide
#

not made by me but ty

tender vaporBOT
turbid tide
#

no problem. 👍

edgy thunder
#

hey, i am running a 1.17 server and i think that it not detecting placeholder

#

[17:19:12 INFO]: Ninoide issued server command: /protecciones
[17:19:15 INFO]: CONSOLE issued server command: /eco take %player_name% 50000
[17:19:15 INFO]: Error: Jugador no encontrado.
[17:19:15 INFO]: Jugador no encontrado. (%player_name%)

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

turbid tide
#

@edgy thunder execute these 2 commands ^

edgy thunder
#

yeah, it worked, thanks you so much ^^

finite temple
#

how to add a placeholder

iron gull
#

hey there, i am getting java.lang.NullPointerException: The expansion version is null! on https://github.com/PlaceholderAPI/Example-Expansion with PlaceholderAPI 2.10.10 (fresh install)
is this a recent issue?
Update: seems to be that the version string MUST be hard coded now using ${project.version}

neon nymph
#

Is there a way to allow old Placeholder hook classes so I can use Token Manager without issue?

turbid tide
sharp jay
#

what perm plugin you using?

neon nymph
turbid tide
#

but it seems like the latest one doesn't use PlaceholderHook. it uses PlaceholderExpansion. so it should work

neon nymph
#

I get this when I start with that expansion in:
[PlaceholderAPI] tokenmanager is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

turbid tide
#

that's strange. what version of tokenmanager u got?

neon nymph
#

The one from the Spigot plugins page

#

Is there another I should be using?

turbid tide
#

hmm. that's the latest from github as well. strange. idk. maybe I'm seeing things.

#

anyways. that's not being added back. it has been changed and removed for a reason

neon nymph
#

Okay. It's just the Command Panels uses TM for the tokenpaywall= command, which makes it difficult to really know where this is going in the future

#

I asked them about it as well. The only free one for 1.17 is called "NotTokens" and they have a placeholder already, but it isn't compatible with Command Panels

#

At least it's the only free one I've come across, after lots of digging