Jump to content

Welcome with a join counter


Recommended Posts

Here is a welcome join counter 

on first join:
  set join message to "&3&lWELCOME &b%player%&f has joined for the first time! &8(&7##%{joins}%&8)"

on join:
  set join message to "&8[&a+&8] &b%player%&f has joined."
  
on quit:
    set quit message to "&8[&c-&8] &b%player%&f has quit."  

Link to comment
Share on other sites

Ban indentation, inafitiant, try something like this next time, it's way more efficiant

on join:
    add 1 to {joins}
    set {joins::%Player%} to {joins}
    if player has not played before:
        set join message to "&2%Player% has joined for the first time &7[%{joins::%player%}%]"
    else:
        set join message to "&2%Player% has joined"

on quit:
    set leave message to "&2%player% has left"
Link to comment
Share on other sites

1 hour ago, Rokivusausage11 said:

Here is a welcome join counter 

on first join:
  set join message to "&3&lWELCOME &b%player%&f has joined for the first time! &8(&7##%{joins}%&8)"

on join:
  set join message to "&8[&a+&8] &b%player%&f has joined."
  
on quit:
    set quit message to "&8[&c-&8] &b%player%&f has quit."  

The join wouldnt even work, theres nothing that adds to the joins

Link to comment
Share on other sites

  • 3 weeks later...
variables:
	{joins.global} = 0



on first join:
	add 1 to {joins.global}
	broadcast "&3&lWELCOME &b%player%&f has joined for the first time! &8(&7##%{joins.global}%&8)"
on join:
	broadcast "&8[&a+&8] &b%player%&f has joined."
on quit:
	broadcast "&8[&c-&8] &b%player%&f has quit."  

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...