Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /thepit [<text>] [<text>] [<number>] [<player>]:
- permission: test
- trigger:
- if arg-1 is "help":
- send "&a----------[ThePit]----------"
- send "&7/thepit help "
- send "&7 ThePitCommandのヘルプを表示します"
- send "&7/thepit money "
- send "&7 ThePitのGoldの設定をします"
- send "&7 (/thepit money [<Player>] で他プレイヤーもしくは自分の所持Goldを確認出来ます)"
- send "&7 (/thepit money <add/set/remove> <gold> [<player>] で他プレイヤーもしくは自分にGoldを渡せます"
- send "&a----------[ThePit]----------"
- if arg-1 is "money":
- if arg-2 is not set:
- send "&6現在の貴方のGold: %{thepit.money.%player%}%Gold"
- if arg-2 is set:
- send "&6現在の%arg-2%さんのGold: %{thepit.money.%arg-2%}%Gold"
- if arg-2 is "add":
- if arg-3 is not set:
- send "&c追加したいGoldを指定してください。(/thepit money add <数> [<プレイヤー>]"
- if arg-4 is not set:
- add arg-3 to {thepit.money.%player%}
- send "&6+%arg-3% Gold&7 (現在のGold: &6%{thepit.money.%player%}%Gold)"
- else:
- add arg-3 to {thepit.money.%arg-4%}
- send "&6+%arg-3% Gold to %arg-4% (%arg-2%さんの現在のGold: &6%{thepit.money.%arg-2%}%"
- if arg-2 is "set":
- if arg-3 is not set:
- send "&c設定したいGoldを指定してください。 (/thepit money set <数> [<プレイヤー>]"
- if arg-4 is not set:
- set {thepit.money.%player%} to arg-3
- send "&aYour Gold is set to &6%arg-3%"
- else:
- set {thepit.money.%arg-4%} to arg-3
- send "&a%arg-3% Gold is set to &6%arg-4%"
- if arg-2 is "remove":
- if arg-4 is not set:
- remove arg-3 from {thepit.money.%player%}
- send "&aremoved your &6%arg-3% Gold&7 (Current Gold: %{thepit.money.%arg-4%}% Gold"
- else:
- remove arg-3 from {thepit.money.%arg-4%}
- send "&aremoved %arg-4% &6%arg-3% Gold&7 (Current Gold: %{thepit.money.%arg-4%}% Gold"
- on death:
- add random integer between 15 and 20 to {_thepit.killmoney}
- add {_thepit.killmoney} to {thepit.money.%attacker%}
- message "&6+%{_thepit.killmoney}% Gold" to attacker
- variables:
- {thepit.money.%player%} = 0
- on script load:
- if {announcement.prefix} is not set:
- set {announcement.prefix} to "&4[&cannounce&4] &f"
- command /announcement [<text>] [<text>] [<text>]:
- permission: aytk.announcement
- trigger:
- if arg-1 is "help":
- send "&4----------[announcement]----------"
- send "&c/announcement help "
- send "&c announcementCommandのヘルプを表示します"
- send "&c/announcement <text> "
- send "&c アナウンスをしますメッセージは<text>に指定してください"
- send "&c (スペースを入れるとスペースの後の文字は反映されないので注意してください)"
- send "&c/announcement prefix "
- send "&c announcementのprefixを表示します(他人からは表示されません)"
- send "&c/announcement prefix set "
- send "&c announcementのprefixをsetします"
- send "&4----------[announcement]----------"
- else if arg-1 is "prefix":
- if arg-2 is not set:
- send "&7現在のannouncementのPrefixは&f %{announcement.prefix}% &7です"
- else if arg-2 is set:
- set {announcement.prefix} to Colored arg-3
- send "&aannouncementのPrefixを&f %Colored arg-3% &aに設定しました"
- else:
- if arg-1 is not set:
- send "&cメッセージを指定してください (文章にスペースを入れるとスペース後の文が反映されなくなります /announcement help)"
- else:
- broadcast "%{announcement.prefix}%&f %Colored arg-1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement