Advertisement
Guest User

announce.sk

a guest
Jul 27th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. command /announce [<text>]:
  2. permission: announce.use
  3. permission message: &c&lError &8» &7Access denied.
  4. trigger:
  5. if arg-1 is not set:
  6. send "&6&lAnnounce &8» &7Command Syntax: &6/announce <message>" to command sender
  7. if arg-1 is set:
  8. #title manager command below
  9. make console execute command "tm broadcast &6ANNOUNCEMENT\n&7%arg-1%"
  10. #code provided below
  11. set {_split::*} to arg 1 split at ""
  12. set {_set} to 1
  13. loop {_split::*}:
  14. if mod("%loop-index%" parsed as number,30) is 0:
  15. add 1 to {_set}
  16. set {_text::%{_set}%} to "%{_text::%{_set}%}%%loop-value%"
  17. loop {_text::*}:
  18. broadcast "%loop-value%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement