Advertisement
Guest User

Untitled

a guest
Oct 6th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. options:
  2. SE: &f[&bSignEdit&f]
  3.  
  4. command /signedit [<text>] [<text>]:
  5. permission: sk.signedit
  6. permission message: permission message here
  7. trigger:
  8. if targeted block is not sign:
  9. send "{@SE} &cYou must be looking at a sign to use this."
  10. stop
  11. player cannot build at the targeted block:
  12. send "{@SE} &cYou cannot edit that sign."
  13. stop
  14. if argument 1 is not "1" or "2" or "3" or "4":
  15. send "{@SE} &cInvalid line number. Line numbers are 1-4"
  16. stop
  17. if argument 1 is not set:
  18. send "{@SE} &3Usage&7: &b/signedit <line> <text>"
  19. stop
  20. if argument 2 is not set:
  21. send "{@SE} &cPlease specify new sign text."
  22. stop
  23. if argument 1 is "1":
  24. set line 1 of targeted block to "%colored argument 2%"
  25. send "{@SE} &7Line changed."
  26. if argument 1 is "2":
  27. set line 2 of targeted block to "%colored argument 2%"
  28. send "{@SE} &7Line changed."
  29. if argument 1 is "3":
  30. set line 3 of targeted block to "%colored argument 2%"
  31. send "{@SE} &7Line changed."
  32. if argument 1 is "4":
  33. set line 4 of targeted block to "%colored argument 2%"
  34. send "{@SE} &7Line changed."
  35.  
  36.  
  37. hope you like it if you ever see it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement