1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please help me

Discussion in 'Skript' started by Meatball, Mar 22, 2020.

  1. Meatball

    Meatball Member

    Joined:
    Mar 22, 2020
    Messages:
    2
    Likes Received:
    0
    I am trying to write a simple skript that announces a welcome message upon a player join

    on join
    Broadcast "..."

    I was wondering how I could get the player's name who just joined and add it to the message. Thanks for your help.
     
  2. Runakai

    Runakai Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    429
    Likes Received:
    25
    on join:
    send "The user %player% has joined!" To all players
     
  3. Meatball

    Meatball Member

    Joined:
    Mar 22, 2020
    Messages:
    2
    Likes Received:
    0
    Thanks
     
  4. monty

    monty Member

    Joined:
    Monday
    Messages:
    2
    Likes Received:
    0
    You can fetch their user through the expression %player%.
     
  5. oHeckGage

    oHeckGage Member

    Joined:
    Tuesday
    Messages:
    18
    Likes Received:
    1
    You can do:

    Code (Text):
    1.  on join:
    2.    if arg-1 has played before:
    3.      send "&c%player% &6has just joined!" to all players
    4.    else:
    5.      send "&dWelcome! &6%player% &dhas joined for the first time!"  to all players
     
  6. Runakai

    Runakai Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    429
    Likes Received:
    25
    No you can not. Who's arg-1? Ducky?
     
    • Like Like x 1
  7. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    436
    Likes Received:
    14
    I think this could help you:
    Code (Skript):
    1.  
    2. on first join:
    3.     send "&e%player%&6 has just joined for first time!" to all players
    4.  
    5. on join:
    6.     send "&e%player%&6 has just joined!" to all players
    7.  
     
Loading...