0123Atsuse

Untitled

Jun 8th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. command /se [<text="help">] [<text>]:
  2. aliases: /signedit, /edit
  3. permission: SignEdit.admin
  4. permission message: &cYou don't have permission to perform this command.
  5. trigger:
  6. if arg-1 is "copy":
  7. if target block is sign:
  8. delete {SELineStorage.%event-player%::*}
  9. add line 1 of target block to {SELineStorage.%event-player%::*}
  10. add line 2 of target block to {SELineStorage.%event-player%::*}
  11. add line 3 of target block to {SELineStorage.%event-player%::*}
  12. add line 4 of target block to {SELineStorage.%event-player%::*}
  13. message "&1[&eSignEdit&1] &eSign copied."
  14. else:
  15. message "&1[&eSignEdit&1] &cYou are not facing a sign!"
  16. else if arg-1 is "paste":
  17. if target block is sign:
  18. loop 4 times:
  19. set line loop-number of target block to colored {SELineStorage.%event-player%::%loop-number%}
  20. message "&1[&eSignEdit&1] &eSign pasted."
  21. else:
  22. message "&1[&eSignEdit&1] &cYou are not facing a sign!"
  23. else if arg-1 is "reset":
  24. delete {SELineStorage.%event-player%::*}
  25. message "&1[&eSignEdit&1] &eClipboard cleared."
  26. else if arg-1 is "clear":
  27. loop 4 times:
  28. set line loop-number of target block to ""
  29. message "&1[&eSignEdit&1] &eSign cleared."
  30. else if arg-1 is "clipboard":
  31. #set {_SEDataBase.%event-player%} to "%size of {SELineStorage.%event-player%::*}%" parsed as integer
  32. #message "&1[&eSignEdit&1] &eYour clipboard:"
  33. #loop {_SEDataBase.%event-player%} times:
  34. # message "&1[&eSignEdit&1] &eLine %loop-number%: %{SELineStorage.%event-player%::%loop-number%}%"
  35. message "&1[&eSignEdit&1] &eYour clipboard:"
  36. loop 4 times:
  37. if {SELineStorage.%event-player%::%loop-number%} is set:
  38. message "&1[&eSignEdit&1] &e%{SELineStorage.%event-player%::%loop-number%}%"
  39. else:
  40. message "&1[&eSignEdit&1]"
  41. else if arg-1 parsed as integer is set:
  42. if arg-1 is "1" or "2" or "3" or "4":
  43. if target block is sign:
  44. set {_SETemp} to arg-1 parsed as integer
  45. if arg-2 is set:
  46. set line {_SETemp} of target block to colored arg-2
  47. message "&1[&eSignEdit&1] &eLine set."
  48. else:
  49. set line {_SETemp} of target block to ""
  50. message "&1[&eSignEdit&1] &eLine cleared!"
  51. else:
  52. message "&1[&eSignEdit&1] &cYou are not facing a sign!"
  53. else:
  54. message "&1[&eSignEdit&1] &cSign only have 4 lines!"
  55. else:
  56. message "&1[&eSignEdit&1] &eSign Edit by i998979"
  57. message "&cCommands:"
  58. message "&e/signedit <line> <text>: &bSet specific line to specific text"
  59. message "&e/signedit copy: &bCopy the sign that you are facing"
  60. message "&e/signedit paste: &bPaste the sign that you are facing"
  61. message "&e/signedit reset: &bReset the text that you copied"
  62. message "&e/signedit clear: &bClear the text on the sign that you are facing"
  63. message "&e/signedit clipboard: &bShow your clipboard message"
  64. message "&e/signedit help: &bShow this help page"
  65. on quit:
  66. delete {SELineStorage.%event-player%::*}
  67. on right click:
  68. if player's tool is ink sack:
  69. if clicked block is sign:
  70. cancel event
  71. delete {SELineStorage.%event-player%::*}
  72. add line 1 of clicked block to {SELineStorage.%event-player%::*}
  73. add line 2 of clicked block to {SELineStorage.%event-player%::*}
  74. add line 3 of clicked block to {SELineStorage.%event-player%::*}
  75. add line 4 of clicked block to {SELineStorage.%event-player%::*}
  76. message "&1[&eSignEdit&1] &eSign copied."
  77. on left click:
  78. if player's tool is ink sack:
  79. if clicked block is sign:
  80. cancel event
  81. loop 4 times:
  82. set line loop-number of clicked block to colored {SELineStorage.%event-player%::%loop-number%}
  83. message "&1[&eSignEdit&1] &eSign pasted."
Add Comment
Please, Sign In to add comment