#(dotheflopboy) placeholder with offline player

47 messages · Page 1 of 1 (latest)

tranquil garnet
#

Hey, i want to use placeholders from other pluigins in Denizen Discord bot but it only works for online players? If i use <placeholder[].player[]>

velvet cipherBOT
#

(dotheflopboy) placeholder with offline player

velvet cipherBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

quasi forum
#

depends whether the placeholder support offline players or not afaik

tranquil garnet
#

but i tried with a placeholder which supports offline players

quasi forum
#

well they probably dont

#

I know that for luckperms_primary_group_name you would need to have offline lookup enabled

#

but overall

#

do you want exactly these placeholders?

#

most of them you can just do with denizen

tranquil garnet
#

dont found with denizen

fast breach
#

I suppose <placeholder[cmi_user_playtime_seconds].player[<[player]>]> returns the players playtime, which you can just read from statistic

#

!t player.statistic

fleet reefBOT
fast breach
#

It's called PLAY_ONE_MINUTE and returns the play time in ticks.

#

You can make your own math, or use a DurationTag to get the time in days/hours/minutes.

#

!t durationtag.formatted

fleet reefBOT
# fast breach !t durationtag.formatted

Returns the value of the duration in an easily readable format like 2h 30m,
where minutes are only shown if there is less than a day left and seconds are only shown if there are less than 10 minutes left.
Will show seconds, minutes, hours, days, and/or years.

Returns

ElementTag

fast breach
#

I suppose <placeholder[luckperms_primary_group_name].player[<[player]>]> returns the players primary group, which should be just, this tag.

#

!t player.luckperms_primary_group

fleet reefBOT
fast breach
#

!t luckpermsgrouptag.group_name

fleet reefBOT
fast breach
#

For <placeholder[votingplugin_alltimetotal].player[<[player]>]>, you could listen to the votifier vote event and use a player flag. Would need to do some logic and migrate the current vote number into flags.

#

Would need to switch to a supported vote listener plugin too though

tranquil garnet
#

So this is not working: <player[<[player]>].luckperms_primary_group.group_name>

fast breach
#

!debug

fleet reefBOT
# fast breach !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

tranquil garnet
tranquil garnet
fast breach
#

Could you test the tag on an online player?

fast breach
fleet reefBOT
# fast breach !checklog https://paste.denizenscript.com/View/134034
Server Version

Paper version 1.21.5-113-ba7fb23 (MC: 1.21.5)

Plugin Version(s)

Citizens: 2.0.38-SNAPSHOT (build 3795) -- (:warning:Outdated build, behind by 25)
Denizen: 1.3.1-SNAPSHOT (build 7172-DEV) -- (Outdated build, behind by 1)
Depenizen: 2.1.1 (build 880) -- (Current build :white_check_mark:)
dDiscordBot: 0.7 (build 304) -- (Current build :white_check_mark:)

Checked For

@fast breach

UUID Version

4 (:white_check_mark: Online)

Java Version

21.0.4 :white_check_mark:

Other Noteworthy Plugin(s)

WorldGuard: 7.0.13+82fdc65, MythicMobs: 5.9.1-SNAPSHOT-f9364d9b, ProtocolLib: 5.4.0-SNAPSHOT-747

Possibly Relevant Plugin(s)

TAB: 5.2.0 - This plugin adds Below_Name scoreboards to NPCs.
CMI: 9.7.14.2 - CMI tends to mess with a large variety of server features and often gets in the way of issue debugging.
ModelEngine: R4.0.9 - ModelEngine has Citizens support, but that support is known to be buggy. Issues related to NPCs that use ModelEngine should be reported to ModelEngine support, not Citizens.
Multiverse-Core: 5.0.2-pre.2 - Multi-world configuration plugins may affect NPCs in unexpected ways.

tranquil garnet
fast breach
#

Oh so it seems to work only with online players

fast breach
tranquil garnet
#

making denizen group system?

fast breach
#

I did not say that

tranquil garnet
#

yes i think about it

#

but denizen placeholders doesn't really work on my Scorboard/Tab plugin

fast breach
#

What placeholders do you use

tranquil garnet
#

i mean when i use denizen placerholder like %denizen_<player.formatted_money>% in Tablist oder Scoreboard plugin it shows this:

fast breach
#

Yeah this happens when the plugin attempts to access the placeholder asynchroniously

tranquil garnet