Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. command /nick:
  2. permission: server.nick
  3. trigger:
  4. open chest with 1 row named "&b&lNicks" to player
  5. format slot 0 of player with paper named "&fNick As &7Default" to close then run [execute console command "setnickrank %player% default"]
  6. format slot 2 of player with paper named "&fNick As &aVip" to close then run [execute console command "setnickrank %player% vip"]
  7. format slot 4 of player with paper named "&fNick As &aVip&6+" to close then run [execute console command "setnickrank %player% vip+"]
  8. format slot 6 of player with paper named "&fNick As &9Mvp" to close then run [execute console command "setnickrank %player% mvp"]
  9. format slot 8 of player with barrier named "&c&lCancel" to close
  10.  
  11. command /setnickrank <player> <text>:
  12. permission: *
  13. executable by: console
  14. trigger:
  15. if arg 2 is "Default":
  16. set {frank.%arg 1%} to ""
  17. set {chatnick.%arg 1%} to true
  18. set {fakerank.%arg 1%} to "Default"
  19. send "&3Type Your New Nickname In The Chat !" to arg 1
  20. if arg 2 is "Vip":
  21. set {frank.%arg 1%} to "&8[&aVip&8]"
  22. set {chatnick.%arg 1%} to true
  23. send "&3Type Your New Nickname In The Chat !" to arg 1
  24. if arg 2 is "Vip+":
  25. set {frank.%arg 1%} to "&8[&aVip&6+&8]"
  26. set {chatnick.%arg 1%} to true
  27. send "&3Type Your New Nickname In The Chat !" to arg 1
  28. if arg 2 is "mvp":
  29. set {frank.%arg 1%} to "&8[&9Mvp&8]"
  30. set {chatnick.%arg 1%} to true
  31. send "&3Type Your New Nickname In The Chat !" to arg 1
  32.  
  33. on chat:
  34. if {chatnick.%player%} is true:
  35. cancel event
  36. set {name.%player%} to message
  37. send "&cYour Displayed Nick Now Is %{frank.%player%}% &7%message%"
  38. set {chatnick.%player%} to false
  39. if {frank.%player%} is set:
  40. set chat format to "%{frank.%player%}% &7%{name.%player%}% &8| &7%colored message%"
  41. set player tab name to "%{frank.%player%}% &7%{name.%player%}%"
  42. set player's display name to "%{frank.%player%}% &7%{name.%player%}%
  43.  
  44. command /unnick:
  45. permission: server.unnick
  46. trigger:
  47. delete {frank.%player%}
  48. send "&cYou've successfully unnicked"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement