Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /book [<text>] [<text>] [<player>]:
- permission: bookui.use
- executable by: players and console
- trigger:
- if argument 1 is not set:
- message "&8&m=======================&8[&6iBookGUI&8]&m======================="
- message "&a/book add <名前>&f - 新しいGUIを作成します。" to executor
- message "&a/book open <名前> [プレイヤー]&f - GUIを表示します。" to executor
- message "&a/book delete <名前>&f - GUIを削除します。" to executor
- message "&a/book get <名前>&f - GUIの本を入手します。" to executor
- message "&a/book info&f - このスクリプトについて表示します。" to executor
- message "&a/book loggui <名前>&f - ログイン時に表示するGUIを決めます。" to executor
- message "&8&m================================================================" to executor
- else if argument 1 is "help":
- message "&8&m=======================&8[&6iBookGUI&8]&m======================="
- message "&a/book add <名前>&f - 新しいGUIを作成します。" to executor
- message "&a/book open <名前> [プレイヤー]&f - GUIを表示します。" to executor
- message "&a/book delete <名前>&f - GUIを削除します。" to executor
- message "&a/book get <名前>&f - GUIの本を入手します。" to executor
- message "&a/book info&f - このスクリプトについて表示します。" to executor
- message "&a/book loggui <名前>&f - ログイン時に表示するGUIを決めます。" to executor
- message "&8&m================================================================" to executor
- else if argument 1 is "add":
- if executor is console:
- message "&8[&6iBookGUI&8]&a コンソールからこのコマンドは実行できません。" to executor
- else:
- if argument 2 is not set:
- message "&8[&6iBookGUI&8]&a 使い方: &f/book add <名前>" to executor
- else:
- if argument 3 is set:
- message "&8[&6iBookGUI&8]&a 使い方: &f/book add <名前>" to executor
- else:
- if {bookui.book.%arg 2%} is set:
- message "&8[&6iBookGUI&8]&a &f%arg 2%&aはもう使用されています。ほかの名前を使用してください。" to executor
- else:
- if player is holding a written book:
- set {bookui.book.%arg 2%} to executor's tool
- message "&8[&6iBookGUI&8]&a &f%arg 2%&aを新しく作成しました。" to executor
- else:
- message "&8[&6iBookGUI&8]&a 署名された本を持ってコマンドを打ってください。" to executor
- else if argument 1 is "open":
- if argument 2 is not set:
- message "&8[&6iBookGUI&8]&a 使い方: &f/book open <名前> [プレイヤー]" to executor
- else:
- if {bookui.book.%arg 2%} is not set:
- message "&8[&6iBookGUI&8] &aGUI &f%arg 2%&aが見つかりません。" to executor
- else:
- if argument 3 is not set:
- if executor is console:
- message "&8[&6iBookGUI&8]&a コンソールからこのコマンドは実行できません。" to executor
- else:
- open book {bookui.book.%arg 2%} to executor
- else:
- set {_player} to argument 3
- open book {bookui.book.%arg 2%} to {_player}
- else if argument 1 is "delete":
- if argument 2 is not set:
- message "&8[&6iBookGUI&8]&a 使い方: &f/book delete <名前>" to executor
- else:
- if {bookui.book.%arg 2%} is not set:
- message "&8[&6iBookGUI&8] &aGUI &f%arg 2%&aが見つかりません。" to executor
- else:
- delete {bookui.book.%arg 2%}
- message "&8[&6iBookGUI&8] &aGUI &f%arg 2%&aを削除しました。" to executor
- else if argument 1 is "info":
- if argument 2 is set:
- message "&8[&6iBookGUI&8]&a 使い方: &f/book info" to executor
- else:
- message "&8&m=======================&8[&6iBookGUI&8]&m=======================" to executor
- message "&aiBookGUIはバージョン1.0で正常に動作しています。" to executor
- message "&a作成: &fsymvizanさん&a(原作:BookUI)" to executor
- message "&a &fiku55(スクリプトの書き換え、翻訳)"
- message "&8&m================================================================" to executor
- else if argument 1 is "get":
- if argument 2 is not set:
- message "&8[&6iBookGUI&8]&a Usage: &f/book get <名前>" to executor
- else:
- if executor is console:
- message "&8[&6iBookGUI&8]&a コンソールからこのコマンドは実行できません。" to executor
- else:
- if {bookui.book.%arg 2%} is not set:
- message "&8[&6iBookGUI&8] &aGUI &f%arg 2%&aが見つかりません。" to executor
- else:
- give 1 of {bookui.book.%arg 2%} to player
- message "&8[&6iBookGUI&8]&f %arg 2%&aを&f%player%&aに与えました。" to executor
- else if argument 1 is "loggui":
- if argument 2 is set:
- if {bookui.book.%arg-2%} is set:
- set {logbook} to arg-2
- message "&8[&6iBookGUI&8]&a ログインGUIに&f%arg-2%&aを設定しました" to executor
- else:
- message "&8[&6iBookGUI&8] &aGUI &f%arg 2%&aが見つかりません。" to executor
- else:
- message "&8[&6iBookGUI&8]&a 使い方: &f/book loggui <名前>" to executor
- else:
- message "&8[&6bookui&8]&a ヘルプ: &f/book help" to executor
- on login:
- wait 1 seconds
- wait 10 ticks
- command "/book open %{logbook}% %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement