Advertisement
LukaMC59

Untitled

Nov 11th, 2017
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. options:
  2. top-prefix: &8(&b%player%&8)
  3.  
  4. message-color: &7
  5.  
  6. display-time: 5 # in seconds
  7.  
  8. height: 4 # blocks
  9.  
  10. toggle-on: &7You've switched &aon &7Holographic Chat
  11.  
  12. toggle-off: &7You've switched &coff&7 Holographic Chat
  13.  
  14. command /holochat:
  15. trigger:
  16. if {holochat.%player%.toggle} is true:
  17. set {holochat.%player%.toggle} to false
  18. message "{@toggle-off}"
  19. stop trigger
  20. if {holochat.%player%.toggle} is not set:
  21. set {holochat.%player%.toggle} to true
  22. set {holochat.%player%.toggle} to true
  23. message "{@toggle-on}"
  24.  
  25. on chat:
  26. if {holochat.%player%.toggle} is true:
  27. if player has permissions "{@permission-node}":
  28. bind hologram "{@top-prefix};{@message-color}%message%" to player for {@display-time} seconds offset by 0.0, {@height}.0, 0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement