Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /name [<text>]:
- trigger:
- if sender does not have permission "skript.admin":
- send "&c次の権限が不足しています:"
- send "&askript.admin"
- stop
- if arg 1 is not set:
- send "&c使用法:/name <名前>"
- send ""
- send "&b手に持っているアイテムの名前を変更します。"
- send "&b名前には装飾コードも指定可能です。"
- send "&eパーミッションノード:&askript.admin"
- stop
- if player's tool is air:
- send "&eこのコマンドを実行するには、アイテムを手に持つ必要があります。"
- stop
- set {_old} to name of player's tool
- send "&b名前を変更しました:"
- if {_old} is not set:
- send "&a%player's tool%&7(%id of player's tool%:%durability of player's tool%) -> &r%coloured arg 1%"
- else:
- 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%"
- set name of player's tool to coloured arg 1
- command /lore [<number>] [<text>]:
- trigger:
- if sender does not have permission "skript.admin":
- send "&c次の権限が不足しています:"
- send "&askript.admin"
- stop
- if arg 1 or arg 2 is not set:
- send "&c使用法:/lore <行数> <説明>"
- send ""
- send "&b手に持っているアイテムの説明文を変更します。"
- send "&b説明文には装飾コードも指定可能です。"
- send "&b行数は1以上である必要があります。"
- send "&eパーミッションノード:&askript.admin"
- stop
- if player's tool is air:
- send "&eこのコマンドを実行するには、アイテムを手に持つ必要があります。"
- stop
- if arg 1 is less than or equal to 0:
- send "&e行数は1以上である必要があります。"
- stop
- send "&b説明文を変更しました:"
- if lore of player's tool is not set:
- 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%"
- else:
- 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%"
- set line arg-1 of lore of player's tool to coloured arg 2
Advertisement
Add Comment
Please, Sign In to add comment