Advertisement
Phe0X

Skript de bienvenue

Jun 18th, 2017
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. on join:
  2. if {bvn.%player%} is not set:
  3. set {lastplayer} to player
  4. set {bvn.%player%} to true
  5. wait 2 tick
  6. broadcast "&6[Bienvenue] &9%player% &3rejoints le serveur pour la première fois ! Souhaitez lui la bienvenue avec &c/bvn &3!"
  7. wait 20 seconds
  8. if {lastplayer} = player:
  9. clear {lastplayer}
  10. command /bvn:
  11. trigger:
  12. if {lastplayer} is not set:
  13. set action bar of player to "&cPas de nouveau joueur !"
  14. stop
  15. if {bienvenue.%{lastplayer}%.%player%} is set:
  16. set action bar of player to "&cVous avez déjà souhaité la bienvenue à ce joueur !"
  17. stop
  18. if player = {lastplayer}:
  19. set action bar of player to "&cVous ne pouvez pas vous souhaiter la bienvenue !"
  20. stop
  21. set action bar of player to "&aVous avez souhaité la bienvenue à %{lastplayer}%"
  22. broadcast "&6[Bienvenue] &9%player% &3a souhaité la bienvenue à &9%{lastplayer}%"
  23. set {bienvenue.%{lastplayer}%.%player%} to true
  24. set action bar of {lastplayer} to "&a%player% vous a souhaité la bienvenue"
  25. on quit:
  26. if {lastplayer} = player:
  27. clear {lastplayer}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement