Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. command /thepit [<text>] [<text>] [<number>] [<player>]:
  2. permission: test
  3. trigger:
  4. if arg-1 is "help":
  5. send "&a----------[ThePit]----------"
  6. send "&7/thepit help "
  7. send "&7 ThePitCommandのヘルプを表示します"
  8. send "&7/thepit money "
  9. send "&7 ThePitのGoldの設定をします"
  10. send "&7 (/thepit money [<Player>] で他プレイヤーもしくは自分の所持Goldを確認出来ます)"
  11. send "&7 (/thepit money <add/set/remove> <gold> [<player>] で他プレイヤーもしくは自分にGoldを渡せます"
  12. send "&a----------[ThePit]----------"
  13. if arg-1 is "money":
  14. if arg-2 is not set:
  15. send "&6現在の貴方のGold: %{thepit.money.%player%}%Gold"
  16. if arg-2 is set:
  17. send "&6現在の%arg-2%さんのGold: %{thepit.money.%arg-2%}%Gold"
  18. if arg-2 is "add":
  19. if arg-3 is not set:
  20. send "&c追加したいGoldを指定してください。(/thepit money add <数> [<プレイヤー>]"
  21. if arg-4 is not set:
  22. add arg-3 to {thepit.money.%player%}
  23. send "&6+%arg-3% Gold&7 (現在のGold: &6%{thepit.money.%player%}%Gold)"
  24. else:
  25. add arg-3 to {thepit.money.%arg-4%}
  26. send "&6+%arg-3% Gold to %arg-4% (%arg-2%さんの現在のGold: &6%{thepit.money.%arg-2%}%"
  27. if arg-2 is "set":
  28. if arg-3 is not set:
  29. send "&c設定したいGoldを指定してください。 (/thepit money set <数> [<プレイヤー>]"
  30. if arg-4 is not set:
  31. set {thepit.money.%player%} to arg-3
  32. send "&aYour Gold is set to &6%arg-3%"
  33. else:
  34. set {thepit.money.%arg-4%} to arg-3
  35. send "&a%arg-3% Gold is set to &6%arg-4%"
  36. if arg-2 is "remove":
  37. if arg-4 is not set:
  38. remove arg-3 from {thepit.money.%player%}
  39. send "&aremoved your &6%arg-3% Gold&7 (Current Gold: %{thepit.money.%arg-4%}% Gold"
  40. else:
  41. remove arg-3 from {thepit.money.%arg-4%}
  42. send "&aremoved %arg-4% &6%arg-3% Gold&7 (Current Gold: %{thepit.money.%arg-4%}% Gold"
  43.  
  44.  
  45. on death:
  46. add random integer between 15 and 20 to {thepit.money.%attacker%}
  47.  
  48. variables:
  49. {thepit.money.%player%} = 0
  50.  
  51. variables:
  52. {announcement.prefix} = &4[&cannounce&4] &f
  53.  
  54.  
  55. command /announcement [<text>] [<text>] [<text>]:
  56. permission: aytk.announcement
  57. trigger:
  58. if arg-1 is not set:
  59. send "メッセージを指定してください (文章にスペースを入れるとスペース後の文が反映されなくなります"
  60. else if arg-1 is set:
  61. broadcast "%{announcement.prefix}%%Colored arg-1%"
  62. else if arg-1 is "help":
  63. send "&4----------[announcement]----------"
  64. send "&c/announcement help "
  65. send "&c announcementCommandのヘルプを表示します"
  66. send "&c/announcement prefix "
  67. send "&c announcementのprefixを表示します(他人からは表示されません)"
  68. send "&c/announcement prefix set "
  69. send "&c announcementのprefixをsetします"
  70. send "&4----------[announcement]----------"
  71. else if arg-1 is "prefix":
  72. if arg-2 is not set:
  73. send "&a現在のannouncementのPrefixは&f %{announcement.prefix}% です"
  74. else if arg-2 is set:
  75. set %{announcement.prefix}% to Colored arg-2
  76. send "&aannouncementのPrefixを&f %Colored arg-2% に設定しました
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement