Advertisement
0123Atsuse

Untitled

Apr 30th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. command /insertlore <number> <text>:
  2. permission: admin
  3. usage: insertline <line (0 = before first line)> <text>
  4. trigger:
  5. set {_cnt} to 1
  6. loop 20 times:
  7. #最低loreは1行ある前提で何行あるか求める
  8. if line {_cnt} of lore of player's tool is not set:
  9. exit 2 sections
  10. add 1 to {_cnt}
  11.  
  12. set {_cnt2} to {_cnt} - arg 1
  13. loop {_cnt2} times:
  14. set line ({_cnt}+2 - loop-number) of lore of player's tool to line ({_cnt}+1 - loop-number) of lore of player's tool
  15. set line (arg 1 + 1) of lore of player's tool to colored arg 2
  16. send "%arg 2%&7を&b%arg 1%&7行目に入れました"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement