#(NoxoxHa) event on player locale change:

31 messages · Page 1 of 1 (latest)

errant depot
#

Hello! why the event
on player locale change:
works when the player enters the server

cobalt bluffBOT
#

(NoxoxHa) event on player locale change:

cobalt bluffBOT
#

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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

stoic vale
#

!vague

noble elkBOT
# stoic vale !vague
Info: vague

Your question is too vague to be able to answer well.

If you're asking how to do something, please make sure to add some background detail. Make sure to specify your overall end goal and the general design/idea and any existing progress towards that goal, not just the single specific point.

For script-related problems, see also !info haste debug. For non-scripting server trouble, see !logs.

See also !xyproblem

stoic vale
#

I'll have a stab in the dark in assuming that you're not wanting to have your on player locale change script run whilst a player is joining.

If you're not wanting the event to trigger, you can listen to the relevant join event, flag the player for a few ticks / seconds, and subsequently check for that flag in your script.

errant depot
#

"Triggers: when a player changes their locale in their client settings."

but this event is triggered every time a player joins server

is this correct or a bug?
I set the delay and the flags work fine, but if this is fixed, everything will break for me

lethal oxide
#

!debug

noble elkBOT
# lethal oxide !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!

novel rover
#

wouldn't be helpful if the locale was wrong when you join until you got manually edit the setting

errant depot
#

yes, but the description of the event does not indicate that it will work when the player connects to the server.

I spent a little time trying to figure out where the extra message came from when connecting the player.

karmic vapor
#

when a player connects it needs to send its locale, effectively changing it from "none" to whatever the player has

pliant kettle
#

that fires the event

#

the event fires when a player sends their locale; which happens when a player either changes it or connects to the server

#

!event locale

noble elkBOT
# pliant kettle !event locale
Group

Player

Event Lines

player locale change

Triggers

when a player changes their locale in their client settings.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.new_locale> returns an ElementTag of the player's new locale.

pliant kettle
#

but the latter isn't in the description i guess so your argument is valid

spare imp
#

the only "fix" here is adding it to the description of the event fwiw, this is not a bug

errant depot
pliant kettle
still krakenBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@errant depot