#(Joshie) Hey hey, Looking for help with a join message script.

1 messages · Page 1 of 1 (latest)

broken goblet
#

https://paste.denizenscript.com/View/108903

Hey so this is what i'm at so far, and it works well. (Found the script online and modified it a little, if anybody recognizes it lol, but it's pretty simple)

Now my issue is, I only want the message to display once the resource pack has FULLY loaded. Not when accepted.

This is because sometimes players can take 30 seconds to load a pack (on slow internet) and I don't want them to miss the welcome messages.

undone capeBOT
#

(Joshie) Hey hey, Looking for help with a join message script.

undone capeBOT
#

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>

frank cave
#

so.. did that answer the question..? 😛

broken goblet
#

Sort of, a little bit confused on how to implement

#

Because thats an event

#

And i'm listening to the on join

frank cave
#

sure.. instead.. dont listen to the join and listen to that event instead?

broken goblet
#

after resource pack status:SUCCESSFULLY_LOADED

#

Tryna figure out how to write it lmao

frank cave
#

no, that event doesnt take a switch statement (although it prob would be a good feature)

#

just a basic if statement

broken goblet
#

Oh i see

hazy mesa
#

!e resource pack status

flat steepleBOT
# hazy mesa !e resource pack status
Group

Player

Event Lines

resource pack status

Switches

status:<status> to only process the event when a specific status is returned. Same status names as returned by 'context.status'.

Triggers

when a player accepts, denies, successfully loads, or fails to download a resource pack.

Has Player

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

Context

<context.status> returns an ElementTag of the status. Can be: SUCCESSFULLY_LOADED, DECLINED, FAILED_DOWNLOAD, ACCEPTED.

frank cave
#

oh.. man i am blind today..

#

so yes how you had it originally would work fine

broken goblet
#

Oh god damn it

#

The original way didnt work

#

big ide error

#

uh

#

is it resource pack status status

#

?

#

Cuz thats confusing lmao

hazy mesa
broken goblet
#
on resource pack status status:SUCCESSFULLY_LOADED:
radiant kestrel
# broken goblet

just want to let you know that the line with the flag check has two :s in it which will probably cause problems

broken goblet
#

Wasn't this your script bread? xD

radiant kestrel
#

huh?

broken goblet
#
# Player Joins Server Event.
# Written by Breadcrumb
#

LMAO

radiant kestrel
#

wha

broken goblet
#

You wrote this apparently.

hazy mesa
#

Either way that wasn't in your original paste it seems - probably added that on accident

radiant kestrel
broken goblet
#

Oh i know i ripped out lots of the script, I think I found it on some github

#

Yeah I think that's the one

#

Is that frowned upon btw? I'm new to this lmao

hazy mesa
#

As in, the ::?

broken goblet
#

Noo using the script lol!

hazy mesa
#

Oh you meant using the scripts lol I'm dumb

broken goblet
#

Like I guess people only release things public if they are comfortable with people having access to it?

#

Also how can i reset my flag - if <player.has_flag[HAS_JOINED_THE_SERVER_BEFORE]>:

Just for testing purposes 😄 ❤️

hazy mesa
#

That depends - if it's on Denizen's resource forum it's available for anyone to use, if it's somewhere else see that place's license

#

In this case Bread's repo has the MIT license which permits more-or-less anything as long as you don't hold the original create liable

broken goblet
#

Damn, glad I asked tbh lmao

hazy mesa
flat steepleBOT
# hazy mesa !c flag
Group

core

Syntax

flag [<object>|...] [<name>([<#>])](:<action>)[:<value>] (expire:<time>)

Short Description

Sets or modifies a flag on any flaggable object.

Description

The flag command sets or modifies custom data values stored on any flaggable object (the server, a player/NPC/entity, a block location, ...).
See also !language flag system.

This command supports data actions, see !language data actions.

Flags by default are added permanently (or for the lifetime of the object they're attached to).
You can optionally specify a system time the flag will expire at, using either a DurationTag or a TimeTag.
If a DurationTag is used, it will be equivalent to: <util.time_now.add[<your_duration_here>]>

hazy mesa
#

Just remove the flag from yourself

broken goblet
#

Is it possible to use placeholders in this message?

#

%player_nick%

#

Will default to normal name if they dont have a nick

#

(papi)

hazy mesa
#

Generally you'd use Denizen tags instead of placeholders (where possible)

broken goblet
#

is there a denizen tag for an essentials nick?

#

lmao

#

I have depenizen

hazy mesa
#

Isn't that just their

#

!t display_name

flat steepleBOT
# hazy mesa !t display_name
Cannot Specify Searched Tag

Multiple possible tags: <PlayerTag.display_name>, <LibsDisguiseTag.display_name>, <MythicMobsMobTag.display_name>, <ItemTag.display>, <server.scoreboard[(<board>)].objective[<name>].display_name>.

broken goblet
#

I dont think so

hazy mesa
#

!t PlayerTag.display_name

flat steepleBOT
hazy mesa
#

Pretty sure it should be, tias

#

But if not

#

!t placeholder

flat steepleBOT
# hazy mesa !t placeholder

Returns the value of the placeholder.
For example, <placeholder[server_name]>
Note that you do not need to include the "%" marks on the placeholder.
The queue's linked player, if any, will be linked to the placeholder as well for any player-specific placeholder usage.
Note: this should generally only be used for reading values from other plugins not already supported by Depenizen.
This should not be used for cases where a Denizen tag already exists, or should exist.

Required Plugins or Platforms

Depenizen, PlaceholderAPI

Returns

ElementTag

broken goblet
#

Yeah it wouldnt know which player though would it

#

oop

hazy mesa
# flat steeple

^ It has a linked player, you're already using it for the flag checks

broken goblet
#

Oh sweet!

#

so it auto passes the player to the placeholder

#

neat.

hazy mesa
slow etherBOT
#
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.)

#

@broken goblet