Paste #108903: Unnamed Denizen Script Paste

Date: 2023/04/16 16:45:01 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


player_joins_the_server:
    type: world
    events:
        on player joins:
            - determine passively NONE

            # If the player has joined before, say hello!
            - if <player.has_flag[HAS_JOINED_THE_SERVER_BEFORE]>:
                - announce "<player.name> has Joined the server<reset>!"
            # If not, flag them, and then welcome them!
            - else:
                - flag <player> HAS_JOINED_THE_SERVER_BEFORE
                - announce "<player.name> has Joined the server for the first time<reset>!"

# Player Quits Server Event.
player_quits_the_server:
    type: world
    events:
        on player quits:
            # This boi right here makes sure the default quit join message does not appear >:)
            - determine passively NONE
            - announce "<player.name> has left the server<reset>!"