7mm

Untitled

7mm
Mar 4th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. command /texts <text> [<text>] [<number>] [<text>]:
  2. usage: &e/texts <disp|add> ...
  3. permission: skript.admin
  4. trigger:
  5. if arg 2 is not set:
  6. message "&4Error: &ctextID is not set."
  7. stop
  8. if arg 1 is "disp":
  9. if {texts-lines.%arg 2%} is not set:
  10. message "&4Error: &cmessage is not set."
  11. stop
  12. if arg 3 is less than 2:
  13. set {_radius} to 1
  14. else if arg 3 is not set:
  15. set {_radius} to 3
  16. else:
  17. set {_radius} to arg 3
  18. loop {texts-lines.%arg 2%} times:
  19. loop all player in radius {_radius} around
  20. message "{texts-message.%arg 3%.%loop-number%}" to loop-player
  21. if arg 1 is "add":
  22. if arg 3 is not set:
  23. message "&4Error: &clinenum is not set."
  24. stop
  25. if arg 4 is not set:
  26. message "&4Error: &cmessage is not set."
  27. stop
  28. add 1 to {text-lines.%arg 2%}
  29. set {text-message.%arg 2%.%arg 3%} to arg 4
  30. message "&2Success: &aメッセージを追加しました"
Add Comment
Please, Sign In to add comment