Advertisement
kaliumsan

Untitled

Feb 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. #Protector version:1.0
  2.  
  3. options:
  4. prefix: &1[&9Protector&1]&r
  5.  
  6. on join:
  7. if {tnt.%player%} is not set:
  8. set {tnt.%player%} to false
  9. else:
  10. stop
  11.  
  12. command /protector [<text>] [<text>] [<player>]:
  13. permission: minecraft.command.op
  14. permission message: &c権限がありません。
  15. aliases: /pr
  16. trigger:
  17. if arg 1 is not set:
  18. send "&6&l&m------------------------------------------"
  19. send "&b/protector help : ヘルプを表示します。"
  20. send "&b/protector add <権限> <名前> : 指定したプレイヤーに権限を付与します。"
  21. send "&b/protector remove <権限> <名前> : 指定したプレイヤーから権限を剥奪します。"
  22. send "&b/protector check <名前> : プレイヤーに付与されている権限を確認します。"
  23. send "&b/protector list : 権限の一覧を表示します。"
  24. send "&6&l&m------------------------------------------"
  25. stop
  26. if arg 1 is "help":
  27. send "&6&l&m------------------------------------------"
  28. send "&b/protector help : ヘルプを表示します。"
  29. send "&b/protector add <権限> <名前> : 指定したプレイヤーに権限を付与します。"
  30. send "&b/protector remove <権限> <名前> : 指定したプレイヤーから権限を剥奪します。"
  31. send "&b/protector check <名前> : プレイヤーに付与されている権限を確認します。"
  32. send "&b/protector list : 権限の一覧を表示します。"
  33. send "&6&l&m------------------------------------------"
  34. stop
  35. if arg 1 is "add":
  36. if arg 2 is not set:
  37. send "&c権限を指定してください。"
  38. stop
  39. if arg 2 is "tnt":
  40. if arg 3 is not set:
  41. if {tnt.%player%} is false:
  42. set {tnt.%player%} to true
  43. send "{@prefix} &a%player%さんのTNT設置を許可しました。"
  44. stop
  45. if {tnt.%player%} is true:
  46. send "{@prefix} &c%player%さんは既にTNT設置を許可されています。"
  47. if arg 3 is set:
  48. if {tnt.%arg 3%} is false:
  49. set {tnt.%arg 3%} to true
  50. send "{@prefix} &3%arg 3%さんのTNT設置を許可しました。"
  51. stop
  52. if {tnt.%arg 3%} is true:
  53. send "{@prefix} &c%arg 3%さんは既にTNT設置許可されています。"
  54. stop
  55. if arg 1 is "remove":
  56. if arg 2 is not set:
  57. send "&c権限を指定してください。"
  58. stop
  59. if arg 2 is "tnt":
  60. if arg 3 is not set:
  61. if {tnt.%player%} is true:
  62. set {tnt.%player%} to false
  63. send "{@prefix} &3%player%さんのTNT設置を禁止しました。"
  64. stop
  65. if {tnt.%player%} is false:
  66. send "{@prefix} &c%player%さんは既にTNT設置を禁止されています。"
  67. stop
  68. if arg 3 is set:
  69. if {tnt.%arg 3%} is true:
  70. set {tnt.%arg 3%} to false
  71. send "{@prefix} &3%arg 3%さんのTNT設置を禁止しました。"
  72. stop
  73. if {tnt.%arg 3%} is false:
  74. send "{@prefix} &c%arg 3%さんは既にTNT設置禁止されています。"
  75. stop
  76. if arg 1 is "check":
  77. if arg 2 is not set:
  78. send "&6---------------- %player% ----------------"
  79. if {tnt.%player%} is false:
  80. send "&bTNTの設置 : &cfalse
  81. if {tnt.%player%} is true:
  82. send "&bTNTの設置 : &atrue
  83. send "&6------------------------------------------"
  84. stop
  85. if arg 2 is set:
  86. send "&6---------------- %arg 2% ----------------"
  87. if {tnt.%arg 2%} is false:
  88. send "&bTNTの設置 : &cfalse
  89. if {tnt.%arg 2%} is true:
  90. send "&bTNTの設置 : &atrue
  91. send "&6------------------------------------------"
  92. stop
  93. else:
  94. send "無効なテキストです"
  95. stop
  96.  
  97. on place of tnt:
  98. if {tnt.%player%} is true:
  99. stop
  100. if {tnt.%player%} is false:
  101. send "{@prefix} &cあなたはTNTを設置することを許可されていません!"
  102. cancel event
  103. stop
  104. else:
  105. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement