#(NoxoxHa) event on player locale change:
31 messages · Page 1 of 1 (latest)
(NoxoxHa) event on player locale change:
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>
!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
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.
"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
!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!
when you first join a server, you automatically send your locale to the server
wouldn't be helpful if the locale was wrong when you join until you got manually edit the setting
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.
when a player connects it needs to send its locale, effectively changing it from "none" to whatever the player has
when a player logs in, they indicate their locale
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
Player
player locale change
when a player changes their locale in their client settings.
Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<context.new_locale> returns an ElementTag of the player's new locale.
but the latter isn't in the description i guess so your argument is valid
the only "fix" here is adding it to the description of the event fwiw, this is not a bug
Thank you, now I know that it works correctly!
no prob bob;
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