Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 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.killmoney}
  47. add {_thepit.killmoney} to {thepit.money.%attacker%}
  48. message "&6+%{_thepit.killmoney}% Gold" to attacker
  49.  
  50. variables:
  51. {thepit.money.%player%} = 0
  52.  
  53. on script load:
  54. if {announcement.prefix} is not set:
  55. set {announcement.prefix} to "&4[&cannounce&4] &f"
  56.  
  57.  
  58. command /announcement [<text>] [<text>] [<text>]:
  59. permission: aytk.announcement
  60. trigger:
  61. if arg-1 is "help":
  62. send "&4----------[announcement]----------"
  63. send "&c/announcement help "
  64. send "&c announcementCommandのヘルプを表示します"
  65. send "&c/announcement <text> "
  66. send "&c アナウンスをしますメッセージは<text>に指定してください"
  67. send "&c (スペースを入れるとスペースの後の文字は反映されないので注意してください)"
  68. send "&c/announcement prefix "
  69. send "&c announcementのprefixを表示します(他人からは表示されません)"
  70. send "&c/announcement prefix set "
  71. send "&c announcementのprefixをsetします"
  72. send "&4----------[announcement]----------"
  73. else if arg-1 is "prefix":
  74. if arg-2 is not set:
  75. send "&7現在のannouncementのPrefixは&f %{announcement.prefix}% &7です"
  76. else if arg-2 is set:
  77. set {announcement.prefix} to Colored arg-3
  78. send "&aannouncementのPrefixを&f %Colored arg-3% &aに設定しました"
  79. else:
  80. if arg-1 is not set:
  81. send "&cメッセージを指定してください (文章にスペースを入れるとスペース後の文が反映されなくなります /announcement help)"
  82. else:
  83. broadcast "%{announcement.prefix}%&f %Colored arg-1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement