Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setcommand <text>:
- permission: skript.admin
- trigger:
- if player is holding air:
- send "&c手にアイテムを持ってください!"
- else:
- send "&6今持っているアイテムのコマンドを「%arg-1%」にセットしました"
- set {command::%player's tool%} to arg-1
- command /setcooltime <number>:
- permission: skript.admin
- trigger:
- if player is holding air:
- send "&c手にアイテムを持ってください!"
- else:
- send "&6今持っているアイテムのクールタイムを%arg-1%秒にしました"
- set {cooltime::%player's tool%} to arg-1
- on rightclick:
- if player is not holding air:
- if {command::%player's tool%} is set:
- if {wait} is not set:
- execute console command "%{command::%player's tool%}%"
- set {wait} to {cooltime::%player's tool%}
- wait {wait} seconds
- delete {wait}
- command /check:
- trigger:
- if {command::%player's tool%} is set:
- send "「%{command::%player's tool%}%」がセットされています"
- send "クールタイムは%{cooltime::%player's tool%}%秒です"
- else:
- send "&cコマンドがセットされていません"
- command /clearcommand:
- permission: skript.admin
- trigger:
- send "&c手に持っているアイテムのコマンドをリセットしました"
- send "&7ちなみに前のコマンドは「%{command::%player's tool%}%」でしたよ"
- delete {command::%player's tool%}
Advertisement
Add Comment
Please, Sign In to add comment