Advertisement
ShowcasesMC

[Skript] Join/Leave/Death Messages

May 27th, 2019
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #Join/leave/death Messages Skript by Showcases
  2. #First join message
  3. on first join:
  4. execute player command "/spawn"
  5. add 1 to {totaljoins}
  6. set join message to "&7Welcome &a%player%&7, has joined for the first time on the server! &a##%{totaljoins}%"
  7.  
  8. #Join message
  9. on join:
  10. if player has permission "showcases.command.silentjoin":
  11. set join message to "&7Join our discord! &a&nhttps://discord.gg/EUtGQdA" #You have to add something to the join message... or it will say "player has joined the server"
  12. wait 10 tick
  13. send "&7You have joined silently." to player
  14. else:
  15. player has played before:
  16. set join message to "&7[&a+&7] &7%player%"
  17.  
  18. #Quit message.
  19. on quit:
  20. set leave message to "&8[&c-&8] &e%player%"
  21. stop
  22.  
  23. #Death message.
  24. on death of player:
  25. if victim is player:
  26. set the death message to "&e%victim%&7 was slain by &e%attacker%&7"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement