Advertisement
kaliumsan

Untitled

Feb 24th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.22 KB | None | 0 0
  1. #Protector version:1.0
  2.  
  3. options:
  4. prefix: &1[&9Protector&1]&r
  5. version: 1.0
  6.  
  7. on join:
  8. if {tnt.%player%} is not set:
  9. set {tnt.%player%} to false
  10. if {water.%player%} is not set:
  11. set {water.%player%} to false
  12. if {lava.%player%} is not set:
  13. set {lava.%player%} to false
  14. if {dis.%player%} is not set:
  15. set {dis.%player%} to false
  16. if {aub.%player%} is not set:
  17. set {aub.%player%} to false
  18. if {aub1.%player%} is not set:
  19. set {aub1.%player%} to false
  20. if {asp.%player%} is not set:
  21. set {asp.%player%} to false
  22. else:
  23. stop
  24.  
  25. command /protector [<text>] [<text>] [<player>]:
  26. permission: minecraft.command.op
  27. permission message: {@prefix} &cこのコマンドを実行する権限がありません。
  28. aliases: /pr
  29. trigger:
  30. if arg 1 is not set:
  31. send "&6&l&m---------------------&r &6&lHelp &6&l&m---------------------&r"
  32. send "&b/protector version - Protectorのバーションを表示します。"
  33. send "&b/protector help - ヘルプを表示します。"
  34. send "&b/protector add <権限> <名前> - 指定したプレイヤーに権限を付与します。"
  35. send "&b/protector remove <権限> <名前> - 指定したプレイヤーから権限を剥奪します。"
  36. send "&b/protector check <名前> - プレイヤーに付与されている権限を確認します。"
  37. send "&b/protector list - 権限の一覧を表示します。"
  38. send "&b/protector reset <名前> - 指定したプレイヤーの権限をリセットします。"
  39. send "&6&l&m-----------------------------------------------&r"
  40. stop
  41. if arg 1 is "help":
  42. send "&6&l&m---------------------&r &6&lHelp &6&l&m---------------------&r"
  43. send "&b/protector version - Protectorのバーションを表示します。"
  44. send "&b/protector help - ヘルプを表示します。"
  45. send "&b/protector add <権限> <名前> - 指定したプレイヤーに権限を付与します。"
  46. send "&b/protector remove <権限> <名前> - 指定したプレイヤーから権限を剥奪します。"
  47. send "&b/protector check <名前> - プレイヤーに付与されている権限を確認します。"
  48. send "&b/protector list - 権限の一覧を表示します。"
  49. send "&b/protector reset <名前> - 指定したプレイヤーの権限をリセットします。"
  50. send "&6&l&m-----------------------------------------------&r"
  51. stop
  52. if arg 1 is "add":
  53. if arg 2 is not set:
  54. send "{@prefix} &c権限を指定してください。"
  55. stop
  56. if arg 2 is "tnt":
  57. if arg 3 is not set:
  58. if {tnt.%player%} is false:
  59. set {tnt.%player%} to true
  60. send "{@prefix} &a%player%さんがTNTを設置することを許可しました。"
  61. stop
  62. if {tnt.%player%} is true:
  63. send "{@prefix} &c%player%さんは既にTNTを設置することを許可されています。"
  64. if arg 3 is set:
  65. if {tnt.%arg 3%} is false:
  66. set {tnt.%arg 3%} to true
  67. send "{@prefix} &a%arg 3%さんがTNTを設置することを許可しました。"
  68. stop
  69. if {tnt.%arg 3%} is true:
  70. send "{@prefix} &c%arg 3%さんは既にTNTを設置することを許可されています。"
  71. stop
  72. if arg 2 is "water":
  73. if arg 3 is not set:
  74. if {water.%player%} is false:
  75. set {water.%player%} to true
  76. send "{@prefix} &a%player%さんが水を設置することを許可しました。"
  77. stop
  78. if {water.%player%} is true:
  79. send "{@prefix} &c%player%さんは既に水を設置することを許可されています。"
  80. if arg 3 is set:
  81. if {water.%arg 3%} is false:
  82. set {water.%arg 3%} to true
  83. send "{@prefix} &a%arg 3%さんが水を設置することを許可しました。"
  84. stop
  85. if {water.%arg 3%} is true:
  86. send "{@prefix} &c%arg 3%さんは既に水を設置することを許可されています。"
  87. stop
  88. if arg 2 is "lava":
  89. if arg 3 is not set:
  90. if {lava.%player%} is false:
  91. set {lava.%player%} to true
  92. send "{@prefix} &a%player%さんが溶岩を設置することを許可しました。"
  93. stop
  94. if {lava.%player%} is true:
  95. send "{@prefix} &c%player%さんは既に溶岩を設置することを許可されています。"
  96. if arg 3 is set:
  97. if {lava.%arg 3%} is false:
  98. set {lava.%arg 3%} to true
  99. send "{@prefix} &a%arg 3%さんが溶岩を設置することを許可しました。"
  100. stop
  101. if {lava.%arg 3%} is true:
  102. send "{@prefix} &c%arg 3%さんは既に溶岩を設置することを許可されています。"
  103. stop
  104. if arg 2 is "dispenser" or "dis":
  105. if arg 3 is not set:
  106. if {dis.%player%} is false:
  107. set {dis.%player%} to true
  108. send "{@prefix} &a%player%さんがディスペンサーを設置することを許可しました。"
  109. stop
  110. if {dis.%player%} is true:
  111. send "{@prefix} &c%player%さんは既にディスペンサーを設置することを許可されています。"
  112. if arg 3 is set:
  113. if {dis.%arg 3%} is false:
  114. set {dis.%arg 3%} to true
  115. send "{@prefix} &a%arg 3%さんがディスペンサーを設置することを許可しました。"
  116. stop
  117. if {dis.%arg 3%} is true:
  118. send "{@prefix} &c%arg 3%さんは既にディスペンサーを設置することを許可されています。"
  119. stop
  120. if arg 2 is "autounban" or "aub":
  121. if arg 3 is not set:
  122. if {aub.%player%} is false:
  123. set {aub.%player%} to true
  124. send "{@prefix} &a%player%さんが自動BAN解除の対象に設定されました。"
  125. stop
  126. if {aub.%player%} is true:
  127. send "{@prefix} &c%player%さんは既に自動BAN解除の対象です。"
  128. if arg 3 is set:
  129. if {aub.%arg 3%} is false:
  130. set {aub.%arg 3%} to true
  131. send "{@prefix} &a%arg 3%さんが自動BAN解除の対象に設定されました。"
  132. stop
  133. if {aub.%arg 3%} is true:
  134. send "{@prefix} &c%arg 3%さんは既に自動BAN解除の対象です。"
  135. stop
  136. if arg 2 is "autospectator" or "asp":
  137. if arg 3 is not set:
  138. if {asp.%player%} is false:
  139. set {asp.%player%} to true
  140. send "{@prefix} &a%player%さんが自動スペクテイターモードの対象に設定されました。"
  141. stop
  142. if {asp.%player%} is true:
  143. send "{@prefix} &c%player%さんは既に自動スペクテイターモードの対象です。"
  144. if arg 3 is set:
  145. if {asp.%arg 3%} is false:
  146. set {asp.%arg 3%} to true
  147. send "{@prefix} &a%arg 3%さんが自動スペクテイターモードの対象に設定されました。"
  148. stop
  149. if {asp.%arg 3%} is true:
  150. send "{@prefix} &c%arg 3%さんは既に自動スペクテイターモードの対象です。"
  151. stop
  152. if arg 1 is "remove" or "rem":
  153. if arg 2 is not set:
  154. send "{@prefix} &c権限を指定してください。"
  155. stop
  156. if arg 2 is "tnt":
  157. if arg 3 is not set:
  158. if {tnt.%player%} is true:
  159. set {tnt.%player%} to false
  160. send "{@prefix} &3%player%さんのTNT設置を禁止しました。"
  161. stop
  162. if {tnt.%player%} is false:
  163. send "{@prefix} &c%player%さんは既にTNT設置を禁止されています。"
  164. stop
  165. if arg 3 is set:
  166. if {tnt.%arg 3%} is true:
  167. set {tnt.%arg 3%} to false
  168. send "{@prefix} &3%arg 3%さんのTNT設置を禁止しました。"
  169. stop
  170. if {tnt.%arg 3%} is false:
  171. send "{@prefix} &c%arg 3%さんは既にTNT設置禁止されています。"
  172. stop
  173. if arg 2 is "water":
  174. if arg 3 is not set:
  175. if {water.%player%} is true:
  176. set {water.%player%} to false
  177. send "{@prefix} &3%player%さんが水を設置することを禁止しました。"
  178. stop
  179. if {water.%player%} is false:
  180. send "{@prefix} &c%player%さんは既に水を設置することを禁止されています。"
  181. stop
  182. if arg 3 is set:
  183. if {water.%arg 3%} is true:
  184. set {water.%arg 3%} to false
  185. send "{@prefix} &3%arg 3%さんが水を設置することを禁止しました。"
  186. stop
  187. if {water.%arg 3%} is false:
  188. send "{@prefix} &c%arg 3%さんは既に水を設置することを禁止されています。"
  189. stop
  190. if arg 2 is "lava":
  191. if arg 3 is not set:
  192. if {lava.%player%} is true:
  193. set {lava.%player%} to false
  194. send "{@prefix} &3%player%さんが溶岩を設置することを禁止しました。"
  195. stop
  196. if {lava.%player%} is false:
  197. send "{@prefix} &c%player%さんは既に溶岩を設置することを禁止されています。"
  198. stop
  199. if arg 3 is set:
  200. if {lava.%arg 3%} is true:
  201. set {lava.%arg 3%} to false
  202. send "{@prefix} &3%arg 3%さんが溶岩を設置することを禁止しました。"
  203. stop
  204. if {lava.%arg 3%} is false:
  205. send "{@prefix} &c%arg 3%さんは既に溶岩を設置することを禁止されています。"
  206. stop
  207. if arg 2 is "dispenser" or "dis":
  208. if arg 3 is not set:
  209. if {dis.%player%} is true:
  210. set {dis.%player%} to false
  211. send "{@prefix} &3%player%さんがディスペンサーを設置することを禁止しました。"
  212. stop
  213. if {dis.%player%} is false:
  214. send "{@prefix} &c%player%さんは既にディスペンサーを設置することを禁止されています。"
  215. stop
  216. if arg 3 is set:
  217. if {dis.%arg 3%} is true:
  218. set {dis.%arg 3%} to false
  219. send "{@prefix} &3%arg 3%さんがディスペンサーを設置することを禁止しました。"
  220. stop
  221. if {dis.%arg 3%} is false:
  222. send "{@prefix} &c%arg 3%さんは既にディスペンサーを設置することを禁止されています。"
  223. stop
  224. if arg 2 is "autounban" or "aub":
  225. if arg 3 is not set:
  226. if {aub.%player%} is true:
  227. set {aub.%player%} to false
  228. send "{@prefix} &3%player%さんが自動BAN解除の対象から外されました。。"
  229. stop
  230. if {aub.%player%} is false:
  231. send "{@prefix} &c%player%さんは既に自動BAN解除の対象から外されています。"
  232. stop
  233. if arg 3 is set:
  234. if {aub.%arg 3%} is true:
  235. set {aub.%arg 3%} to false
  236. send "{@prefix} &3%arg 3%さんが自動BAN解除の対象から外されました。"
  237. stop
  238. if {aub.%arg 3%} is false:
  239. send "{@prefix} &c%arg 3%さんは既に自動BAN解除の対象から外されています。"
  240. stop
  241. if arg 2 is "autospectator" or "asp":
  242. if arg 3 is not set:
  243. if {asp.%player%} is true:
  244. set {asp.%player%} to false
  245. send "{@prefix} &3%player%さんが自動スペクテイターモードの対象から外されました。。"
  246. stop
  247. if {asp.%player%} is false:
  248. send "{@prefix} &c%player%さんは既に自動スペクテイターモードの対象から外されています。"
  249. stop
  250. if arg 3 is set:
  251. if {asp.%arg 3%} is true:
  252. set {asp.%arg 3%} to false
  253. send "{@prefix} &3%arg 3%さんが自動スペクテイターモードの対象から外されました。"
  254. stop
  255. if {asp.%arg 3%} is false:
  256. send "{@prefix} &c%arg 3%さんは既に自動スペクテイターモードの対象から外されています。"
  257. stop
  258. if arg 1 is "check":
  259. if arg 2 is not set:
  260. send "&6---------------- %player% ----------------"
  261. if {tnt.%player%} is false:
  262. send "&bTNTの設置 : &cfalse"
  263. if {tnt.%player%} is true:
  264. send "&bTNTの設置 : &atrue"
  265. if {water.%player%} is false:
  266. send "&b水の設置 : &cfalse"
  267. if {water.%player%} is true:
  268. send "&b水の設置 : &atrue"
  269. if {lava.%player%} is false:
  270. send "&b溶岩の設置 : &cfalse"
  271. if {lava.%player%} is true:
  272. send "&b溶岩の設置 : &atrue"
  273. if {dis.%player%} is false:
  274. send "&bディスペンサーの設置 : &cfalse"
  275. if {dis.%player%} is true:
  276. send "&bディスペンサーの設置 : &atrue"
  277. if {aub.%player%} is false:
  278. send "&b自動BAN解除 : &cfalse"
  279. if {aub.%player%} is true:
  280. send "&b自動BAN解除 : &atrue"
  281. if {asp.%player%} is false:
  282. send "&b自動スペクテイターモード : &cfalse"
  283. if {asp.%player%} is true:
  284. send "&b自動スペクテイターモード : &atrue"
  285. send "&6------------------------------------------"
  286. stop
  287. if arg 2 is set:
  288. send "&6---------------- %arg 2% ----------------"
  289. if {tnt.%arg 2%} is false:
  290. send "&bTNTの設置 : &cfalse"
  291. if {tnt.%arg 2%} is true:
  292. send "&bTNTの設置 : &atrue"
  293. if {water.%arg 2%} is false:
  294. send "&b水の設置 : &cfalse"
  295. if {water.%arg 2%} is true:
  296. send "&b水の設置 : &atrue"
  297. if {lava.%arg 2%} is false:
  298. send "&b溶岩の設置 : &cfalse"
  299. if {lava.%arg 2%} is true:
  300. send "&b溶岩の設置 : &atrue"
  301. if {dis.%arg 2%} is false:
  302. send "&bディスペンサーの設置 : &cfalse"
  303. if {dis.%arg 2%} is true:
  304. send "&bディスペンサーの設置 : &atrue"
  305. if {aub.%arg 2%} is false:
  306. send "&b自動BAN解除 : &cfalse"
  307. if {aub.%arg 2%} is true:
  308. send "&b自動BAN解除 : &atrue"
  309. if {asp.%arg 2%} is false:
  310. send "&b自動スペクテイターモード : &cfalse"
  311. if {asp.%arg 2%} is true:
  312. send "&b自動スペクテイターモード : &atrue"
  313. send "&6------------------------------------------"
  314. stop
  315. if arg 1 is "list":
  316. send "&6---------- 権限一覧 ----------"
  317. send "&bTNT - TNTの設置を制限します。"
  318. send "&bWater - 水の設置を制限します。"
  319. send "&bLava - 溶岩の設置を制限します。"
  320. send "&bDispenser - ディスペンサーの設置を制限します。"
  321. send "&bAutoUnBan - BANされた時に自動で解除されます。"
  322. send "&bAutoSpectator - 死んだ時に自動でスペクテイターモードに変更されます。"
  323. send "&6-------------------------------"
  324. stop
  325. if arg 1 is "version" or "ver":
  326. send "{@prefix} &bversion-{@version}"
  327. stop
  328. if arg 1 is "reset":
  329. if arg 2 is not set:
  330. set {tnt.%player%} to false
  331. set {water.%player%} to false
  332. set {lava.%player%} to false
  333. set {dis.%player%} to false
  334. set {aub.%player%} to false
  335. set {aub1.%player%} to false
  336. set {asp.%player%} to false
  337. send "{@prefix} &a%player%さんの権限をリセットしました。"
  338. stop
  339. if arg 2 is set:
  340. set {tnt.%arg 2%} to false
  341. set {water.%arg 2%} to false
  342. set {lava.%arg 2%} to false
  343. set {dis.%arg 2%} to false
  344. set {aub.%arg 2%} to false
  345. set {aub1.%arg 2%} to false
  346. set {asp.%arg 2%} to false
  347. send "{@prefix} &a%arg 2%さんの権限をリセットしました。"
  348. stop
  349. else:
  350. send "{@prefix} &c無効なテキストです。"
  351. stop
  352.  
  353. #------------------------------------------------------------------------------------------------------------------------------
  354. #TNTの設置
  355. on place of tnt:
  356. if {tnt.%player%} is true:
  357. stop
  358. if {tnt.%player%} is false:
  359. send "{@prefix} &cあなたはTNTを設置することを許可されていません!"
  360. cancel event
  361. stop
  362. else:
  363. stop
  364.  
  365. #------------------------------------------------------------------------------------------------------------------------------
  366. #水の設置
  367. on place of water:
  368. if {water.%player%} is true:
  369. stop
  370. if {water.%player%} is false:
  371. send "{@prefix} &cあなたは水を設置することを許可されていません!"
  372. cancel event
  373. stop
  374. else:
  375. stop
  376.  
  377. #------------------------------------------------------------------------------------------------------------------------------
  378. #溶岩の設置
  379. on place of lava:
  380. if {lava.%player%} is true:
  381. stop
  382. if {lava.%player%} is false:
  383. send "{@prefix} &cあなたは溶岩を設置することを許可されていません!"
  384. cancel event
  385. stop
  386. else:
  387. stop
  388.  
  389. #------------------------------------------------------------------------------------------------------------------------------
  390. #ディスペンサーの設置
  391. on place of dispenser:
  392. if {dis.%player%} is true:
  393. stop
  394. if {dis.%player%} is false:
  395. send "{@prefix} &cあなたはディスペンサーを設置することを許可されていません!"
  396. cancel event
  397. stop
  398. else:
  399. stop
  400.  
  401. #------------------------------------------------------------------------------------------------------------------------------
  402. #自動BAN解除
  403. on quit:
  404. if {aub.%player%} is true:
  405. if player is banned:
  406. set {aub1.%player%} to true
  407. unban player
  408. stop
  409. else:
  410. stop
  411. else:
  412. stop
  413.  
  414. on join:
  415. if {aub1.%player%} is true:
  416. send "{@prefix} BAN解除に成功しました!"
  417. set {aub1.%player%} to false
  418. stop
  419. else:
  420. stop
  421.  
  422. #------------------------------------------------------------------------------------------------------------------------------
  423. #自動スペクテイターモード
  424. on death of player:
  425. if {asp.%player%} is true:
  426. if player's gamemode is not spectator:
  427. set the player's gamemode to spectator
  428. send "{@prefix} あなたのゲームモードをスペクテイターモードに変更しました。"
  429. if player's gamemode is not spectator:
  430. stop
  431. else:
  432. stop
  433.  
  434. #------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement