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.

Join Counter!

Discussion in 'Skript' started by RainPlayzYT, Nov 28, 2019.

Thread Status:
Not open for further replies.
  1. RainPlayzYT

    RainPlayzYT New Member

    Joined:
    Nov 28, 2019
    Messages:
    7
    Likes Received:
    0
    Hello! For those who have been wondering, “How do I make it so when a new player joins, it shows the amount of people that HAVE Joined the server?”, Here is a simple skript showing how to do it!Enjoy :emoji_grinning:!!

    variables:
    {uniquejoins} = 1

    on first join:
    set join message to “”
    add 1 to {uniquejoins}
    broadcast “&cWelcome &6%player%&c! &7[#&e%{uniquejoins}%&7]”
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,177
    Likes Received:
    218
    Here is an even simpler script
    Code (Skript):
    1. size of all offline players
    This is the amount of unique joins on your server, no need for a variable and adding to it.

    I also wanted to add, your code:
    Code (Skript):
    1. broadcast&cWelcome &6%player%&c! &7[#&e%{uniquejoins}%&7]"
    won't work, because you have a # in there, which Skript will comment out the rest of that line (# <-- is used by Skript as a comment line)

    simple and correct way to do this: (you need to double up your ##)
    Code (Skript):
    1. on first join:
    2.     broadcast&cWelcome &6%player%&c! &7[##&e%size of all offline players%&7]"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...