#(nybiksigma) after server list ping

49 messages · Page 1 of 1 (latest)

velvet ermine
#

Script:
after server list ping:

  • determine MOTD:rizz passively
  • determine VERSION:Sigma
stoic bobcatBOT
#

(nybiksigma) after server list ping

stoic bobcatBOT
#

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.

velvet ermine
#

Problem on screenshot

warm helm
#

!paste

stable cobaltBOT
velvet ermine
velvet ermine
oak falcon
#

!l script event after vs on

stable cobaltBOT
# oak falcon !l script event after vs on

Modern ScriptEvents let you choose between "on" and "after".
An "on" event looks like "on player breaks block:" while an "after" event looks like "after player breaks block:".

An "on" event fires *before* the event actually happens in the world. This means some relevant data won't be updated
(for example, "<context.location.material>" would still show the block type that is going to be broken)
and the result of the event can be changed (eg the event can be cancelled to stop it from actually going through).

An "after" event, as the name implies, fires *after* the event actually happens. This means data will be already updated to the new state
(so "<context.location.material>" would now show air) but could potentially contain an arbitrary new state from unrelated changes
(for example "<con...

Group

Script Events

oak falcon
#

might be just it ?

cobalt flicker
#

You can't* make determinations w after

#

ye

oak falcon
#

what's surprising is the partial result

#

i.e. actually getting VERSION: :star: on the server list

velvet ermine
warm helm
#

Well, VERSION isn't a thing

#

!e server list ping

stable cobaltBOT
# warm helm !e server list ping
Group

Server

Event Lines

server list ping

Triggers

when the server is pinged for a client's server list.

Context

<context.motd> returns the MOTD that will show.
<context.max_players> returns the number of max players that will show.
<context.num_players> returns the number of online players that will show.
<context.address> returns the IP address requesting the list.
<context.hostname> returns an ElementTag of the server address that is being pinged. Available only on MC 1.19+.
<context.protocol_version> returns the protocol ID of the server's version (only on Paper).
<context.version_name> returns the name of the server's version (only on Paper).
<context.client_protocol_version> returns the client's protocol version ID (only on Paper).

Determine

"MAX_PLAYERS:<ElementTag(Number)>" to change the max player amount that will show.
"ICON:<ElementTag>" of a file path to an icon image, to change the icon that will display.
"PROTOCOL_VERSION:<ElementTag(Number)>" to change the protocol ID number of the server's version (only on Paper).
"VERSION_NAME:<ElementTag>" to change the server's version name (only on Paper).
"EXCLUDE_PLAYERS:<ListTag(PlayerTag)>" to exclude a set of players from showing in the player count or preview of online players (only on Paper).
"ALTERNATE_PLAYER_TEXT:<ListTag>" to set custom text for the player list section of the server status (only on Paper). (Requires "Allow restricted actions" in Denizen/config.yml). Usage of this to present lines that look like player names (but aren't) is forbidden.
"MOTD:<ElementTag>" to change the MOTD that will show.

warm helm
#

"VERSION_NAME:<ElementTag>" to change the server's version name (only on Paper).

velvet ermine
#

Other work?

warm helm
#

Purpur is a fork of Paper, it's not officially supported and we'd usually recommend Paper, but it should work fine

warm helm
#

Did you try with the proper name?

warm helm
velvet ermine
warm helm
#

Please paste your new/updated script

velvet ermine
#

oh

#

i forgot

#

replace after

#

here

velvet ermine
#

but VERSION_NAME works!

oak falcon
#

tried your exact same script on my (Paper) server and it works

#

!debug

stable cobaltBOT
# oak falcon !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!

oak falcon
#

try refreshing your server list while recording a debug
maybe there's another issue

velvet ermine
#

1 sec

velvet ermine
oak falcon
#

that's not a debug

#

that's a log snippet

#

/denizen debug -r then /denizen submit to get a debug

grave crow
#

@green harness ban @velvet ermine 2y alting to go around dns ref: #1245077725903851654 message

green harnessBOT