kjfalkeiae

Untitled

May 22nd, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. command /name [<text>]:
  2. trigger:
  3. if sender does not have permission "skript.admin":
  4. send "&c次の権限が不足しています:"
  5. send "&askript.admin"
  6. stop
  7. if arg 1 is not set:
  8. send "&c使用法:/name <名前>"
  9. send ""
  10. send "&b手に持っているアイテムの名前を変更します。"
  11. send "&b名前には装飾コードも指定可能です。"
  12. send "&eパーミッションノード:&askript.admin"
  13. stop
  14. if player's tool is air:
  15. send "&eこのコマンドを実行するには、アイテムを手に持つ必要があります。"
  16. stop
  17. set {_old} to name of player's tool
  18. send "&b名前を変更しました:"
  19. if {_old} is not set:
  20. send "&a%player's tool%&7(%id of player's tool%:%durability of player's tool%) -> &r%coloured arg 1%"
  21. else:
  22. send "&a%{_old}%&7(%type of the player's tool%, %id of player's tool%:%durability of player's tool%)&a -> &r%coloured arg 1%"
  23. set name of player's tool to coloured arg 1
  24.  
  25. command /lore [<number>] [<text>]:
  26. trigger:
  27. if sender does not have permission "skript.admin":
  28. send "&c次の権限が不足しています:"
  29. send "&askript.admin"
  30. stop
  31. if arg 1 or arg 2 is not set:
  32. send "&c使用法:/lore <行数> <説明>"
  33. send ""
  34. send "&b手に持っているアイテムの説明文を変更します。"
  35. send "&b説明文には装飾コードも指定可能です。"
  36. send "&b行数は1以上である必要があります。"
  37. send "&eパーミッションノード:&askript.admin"
  38. stop
  39. if player's tool is air:
  40. send "&eこのコマンドを実行するには、アイテムを手に持つ必要があります。"
  41. stop
  42. if arg 1 is less than or equal to 0:
  43. send "&e行数は1以上である必要があります。"
  44. stop
  45. send "&b説明文を変更しました:"
  46. if lore of player's tool is not set:
  47. send "&a%type of the player's tool%&7(%id of player's tool%:%durability of player's tool%)&aの説明文(line %arg 1%) -> &r%coloured arg 2%"
  48. else:
  49. send "&7(line %arg 1%)&a%lore of player's tool%&7(%type of the player's tool%, %id of player's tool%:%durability of player's tool%)&a -> &r%coloured arg 2%"
  50. set line arg-1 of lore of player's tool to coloured arg 2
Advertisement
Add Comment
Please, Sign In to add comment