Advertisement
naoskitin

Untitled

Dec 7th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.75 KB | None | 0 0
  1. #新しいPIP - PIP.1.4 + 監視&Log
  2. #きれいなコードで見やすいコードに
  3. #詳しい説明はusage.txtを参照してください
  4. options:
  5. p: &a&l[&e&lP&c&lI&e&lP&a&l]&r
  6. pw: &a&l[&c&lPIPW&a&l]
  7. v: 1.4
  8. w: &8[&7WE+&8]
  9.  
  10. on load:
  11. loop all players:
  12. loop-player is op:
  13. if {reload} is set:
  14. send "{@p} &a&lPIPが&c%{reload}%&a&lによりリロードされました" to loop-player
  15. send "{@p} &a&lPIPが&c%{reload}%&a&lによりリロードされました" to console
  16. else:
  17. send "{@p} &a&lPIPがリロードされました" to loop-player
  18. send "{@p} &a&lPIPがリロードされました" to console
  19.  
  20. command /pip [<text>] [<player>] [<text>] [<text>] [<number>]:
  21. permission: pip.admin
  22. aliases: p
  23. trigger:
  24. if arg 1 isn't set:
  25. send "{@p} &a&l[&e&lP&c&lI&e&lP&a&l]&r&cのヘルプを表示しました"
  26. send "/pip ver &c- &bPIPバージョンを表示します"
  27. send "/pip online &c- &b現在オンライン数を表示します"
  28. send "/pip ip <name> &c- &bIPを表示します"
  29. send "/pip uuid <name> &c- &bUUIDを表示します"
  30. send "/pip health <name> &c- &b体力を表示します"
  31. send "/pip world &c- &b現在居るワールドを表示します"
  32. send "/pip rename <[C]text> &c- &b持っているアイテム名を変更します"
  33. send "/pip relore <[C]text> &c- &b持っているアイテムロールを変更します"
  34. send "/pip tabset <name> <[C]text> &c- &bタブを設定します"
  35. send "/pip tabreset <name> &c- &bタブをリセットします"
  36. send "/pip fly <name> &c- &bflyをオン・オフにします"
  37. send "/pip break <name> &c- &b破壊許可をオン・オフにします"
  38. send "/pip place <name> &c- &b設置許可をオン・オフにします"
  39. send "/pip flz <name> &c- &bプレイヤーをフリーズさせます"
  40. send "/pip all <name> &c- &bフリーズ&破壊許可&設置許可をオン・オフにします"
  41. send "/pip god <name> &c- &bプレイヤーのGODモードをオン・オフにします"
  42. send "/pip prefix <name> <[C]text> &c- &bプレイヤーのプレフィックスを設定します"
  43. send "/pip prefixreset <name> &c- &bプレイヤーのプレフィックスをリセットします"
  44. send "/pip hat &c- &b手に持っているブロックをかぶります"
  45. send "/pip cspy &c- &bコマンドスパイをオン・オフにします"
  46. send "/pip vision <name> &c- &bナイトビジョンをオン・オフにします"
  47. send "/pip heal <name> &c- &b回復します"
  48. send "/pip hunger <name> &c- &b空腹度を回復します"
  49. send "/pip nohunger <name> &c- &bお腹をすかなくします"
  50. if arg 1 is set:
  51. if arg 1 is "ver":
  52. send "{@p} &a&lPIP Version:&c&l1.4"
  53. else if arg 1 is "online":
  54. send "{@p} &a&lOnline:&c&l%number of all players%"
  55. else if arg 1 is "ip":
  56. if arg 2 is set:
  57. send "{@p} &a&l%arg 2%&a&l's IP:&c%ip of arg 2%"
  58. else if arg 2 isn't set:
  59. send "{@p} &a&l%player%&a&l's IP:&c%ip of player%"
  60. else if arg 1 is "uuid":
  61. if arg 2 is set:
  62. send "&a&l%arg 2%'&a&ls UUID:&c%UUID of arg 2%"
  63. else if arg 2 isn't set:
  64. send "&a&l%player%&a&l's UUID:&c%UUID of player%"
  65. else if arg 1 is "health":
  66. if arg 2 is set:
  67. send "&a&l%arg 2%&a&l's Health:&c%health of arg 2%"
  68. else if arg 2 isn't set:
  69. send "&a&l%player%&a&l's Health:&c%health of player%"
  70. else if arg 1 is "world":
  71. send "{@p} &a&lWorld:&c&l%world%"
  72. else if arg 1 is "rename":
  73. if player is holding air:
  74. send "{@p} &cアイテムを持っていません"
  75. stop
  76. else:
  77. if arg 3 isn't set:
  78. send "{@p} &c文字が入力されていません"
  79. else:
  80. set the name of player's tool to "%colored arg 3%"
  81. send "{@p} &a&lアイテム名を%colored arg 3%&a&lに変更しました"
  82. else if arg 1 is "relore":
  83. if player is holding air:
  84. send "{@p} &cアイテムを持っていません"
  85. stop
  86. else:
  87. if arg 3 isn't set:
  88. send "{@p} &c文字が入力されていません"
  89. else:
  90. set the name of player's tool to "%colored arg 3%"
  91. send "{@p} &a&lアイテム名を%colored arg 3%&a&lに変更しました"
  92. else if arg 1 is "tabset":
  93. if arg 2 isn't set:
  94. send "{@p} &cプレイヤー名が入力されていません"
  95. else:
  96. if arg 3 isn't set:
  97. send "{@p} &c設定するタブ表示が入力されていません"
  98. else:
  99. set the player's tablist name to "%coloured arg 3% &8| &7%arg 2%"
  100. set {%arg 2%.tab} to "%coloured arg 3%"
  101. send "{@p} &c%arg 2%&aさんのタブ名を&r%coloured arg 3%&aに変更しました"
  102. else if arg 1 is "tabreset":
  103. if arg 2 isn't set:
  104. send "{@p} &cプレイヤー名が入力されていません"
  105. else:
  106. if {%arg 2%.tab} is set:
  107. set the player's tablist name to "&a[&cMEMBER&a] &8| &7%arg 2%"
  108. delete {%arg 2%.tab}
  109. else:
  110. send "{@p} &c存在しないタブ名です"
  111. else if arg 1 is "fly":
  112. if arg 2 isn't set:
  113. if {fly.%player%} is not set:
  114. set {fly.%player%} to true
  115. set player's flight mode to true
  116. send "{@p} &aフライモードをオンにしました"
  117. else:
  118. set player's flight mode to false
  119. delete {fly.%player%}
  120. send "{@p} &aフライモードをオフにしました"
  121. else:
  122. if {fly.%arg 2%} is not set:
  123. set {fly.%arg 2%} to true
  124. set arg 2's flight mode to true
  125. send "{@p} &a%arg 2%&aさんのフライモードをオンにしました"
  126. else:
  127. set arg 2's flight mode to false
  128. delete {fly.%arg 2%}
  129. send "{@p} &a%arg 2%&aさんのフライモードをオフにしました"
  130. else if arg 1 is "break":
  131. if arg 2 is not set:
  132. send "{@p} &cプレイヤー名が入力されていません"
  133. else:
  134. if {break.%arg 2%} is not set:
  135. set {break.%arg 2%} to true
  136. send "{@p} &a%arg 2%&aさんの破壊許可を剥奪しました"
  137. else:
  138. delete {break.%arg 2%}
  139. send "{@p} &a%arg 2%&aさんに破壊許可を付与しました"
  140. else if arg 1 is "place":
  141. if arg 2 is not set:
  142. send "{@p} &cプレイヤー名が入力されていません"
  143. else:
  144. if {place.%arg 2%} is not set:
  145. set {place.%arg 2%} to true
  146. send "{@p} &a%arg 2%&aさんの設置許可を剥奪しました"
  147. else:
  148. delete {place.%arg 2%}
  149. send "{@p} &a%arg 2%&aさんに設置許可を付与しました"
  150. else if arg 1 is "flz":
  151. if arg 2 is not set:
  152. send "{@p} &cプレイヤー名が入力されていません"
  153. else:
  154. if {flz.%arg 2%} is not set:
  155. set {flz.%arg 2%} to true
  156. send "{@p} &a%arg 2%&aさんをフリーズさせました"
  157. else:
  158. delete {flz.%arg 2%}
  159. send "{@p} &a%arg 2%&aさんをフリーズ解除しました"
  160. else if arg 1 is "all":
  161. if arg 2 is not set:
  162. send "{@p} &cプレイヤー名が入力されていません"
  163. else:
  164. if {all.%arg 2%} is not set:
  165. set {flz.%arg 2%} to true
  166. set {place.%arg 2%} to true
  167. set {break.%arg 2%} to true
  168. set {all.%arg 2%} to true
  169. send "{@p} &a%arg 2%&aさんをフリーズ&設置許可を剥奪&破壊許可を剥奪しました"
  170. else:
  171. delete {flz.%arg 2%}
  172. delete {place.%arg 2%}
  173. delete {break.%arg 2%}
  174. delete {all.%arg 2%}
  175. send "{@p} &a%arg 2%&aさんをフリーズ解除&設置許可を付与&破壊許可を付与しました"
  176. else if arg 1 is "god":
  177. if arg 2 is not set:
  178. send "{@p} &cプレイヤー名が入力されていません"
  179. else:
  180. if {god.%arg 2%} is not set:
  181. set {god.%arg 2%} to true
  182. send "{@p} &a%arg 2%&aさんのGODモードをオンにしました"
  183. else:
  184. delete {god.%arg 2%}
  185. send "{@p} &a%arg 2%&aさんのGODモードをオフにしました"
  186. else if arg 1 is "prefix":
  187. if arg 2 is not set:
  188. send "{@p} &cプレイヤー名が入力されていません"
  189. else:
  190. if arg 3 is not set:
  191. send "{@p} &c設定するプレフィックス表示が入力されていません"
  192. else:
  193. if {prefix.%arg 2%} is not set:
  194. set {prefix.%arg 2%} to "%colored arg 3%"
  195. send "{@p} &a%arg 2%&aさんのプレフィックスを%colored arg 3%に変更しました"
  196. else if arg 1 is "prefixreset":
  197. if arg 2 is not set:
  198. send "{@p} &cプレイヤー名が入力されていません"
  199. else:
  200. if {prefix.%arg 2%} is not set:
  201. send "{@p} &cプレフィックスが設定されていません"
  202. else:
  203. send "{@p} &a%arg 2%&aさんのプレフィックスをリセットしました"
  204. delete {prefix.%arg 2%}
  205. else if arg 1 is "hat":
  206. if player is holding air:
  207. send "{@p}&c手にアイテムを持っていません"
  208. else:
  209. set {held} to player's held item
  210. equip player with {held}
  211. delete {held}
  212. else if arg 1 is "cspy":
  213. if {spy} is not set:
  214. set {spy} to true
  215. send "{@p} &aCommandSpyをオンにしました"
  216. else:
  217. delete {spy}
  218. send "{@p} &aCommandSpyをオフにしました"
  219. else if arg 1 is "vision":
  220. if arg 2 is not set:
  221. if {vision.%player%} is not set:
  222. set {vision.%player%} to true
  223. apply night vision to the player for 100000 seconds
  224. send "{@p} &aナイトビジョンをオンにしました"
  225. else:
  226. delete {vision.%player%}
  227. remove night vision from the player
  228. send "{@p} &aナイトビジョンをオフにしました"
  229. else:
  230. if {vision.%arg 2%} is not set:
  231. set {vision.%arg 2%} to true
  232. apply night vision to the arg 2 for 100000 seconds
  233. send "{@p} &a%arg 2%&aさんのナイトビジョンをオンにしました"
  234. else:
  235. delete {vision.%arg 2%}
  236. remove night vision from the arg 2
  237. send "{@p} &a%arg 2%&aさんのナイトビジョンをオフにしました"
  238. else if arg 1 is "heal":
  239. if arg 2 is not set:
  240. heal the player
  241. send "{@p} &a回復しました"
  242. else:
  243. heal the arg 2
  244. send "{@p} &a%arg 2%&aさんを回復しました"
  245. else if arg 1 is "hunger":
  246. if arg 2 is not set:
  247. set the player's food level to 15
  248. send "{@p} &a空腹度を回復しました"
  249. else:
  250. set the arg 2's food level to 15
  251. send "{@p} &a%arg 2%&aさんの空腹度を回復しました"
  252. else if arg 1 is "nohunger":
  253. if arg 2 is not set:
  254. if {hunger.%player%} is not set:
  255. set {hunger.%player%} to true
  256. send "{@p} &a空腹状態にならないようになりました"
  257. else:
  258. delete {hunger.%player%}
  259. send "{@p} &a空腹状態になるようになりました"
  260. else:
  261. if {hunger.%arg 2%} is not set:
  262. set {hunger.%arg 2%} to true
  263. send "{@p} &a%arg 2%さんを&a空腹状態にならないようになりました"
  264. else:
  265. delete {hunger.%arg 2%}
  266. send "{@p} &a%arg 2%さんを&a空腹状態になるようになりました"
  267. on hunger meter change:
  268. if {hunger.%player%} is true:
  269. cancel event
  270. on command:
  271. if {spy} is true:
  272. if sender is a player:
  273. loop all players:
  274. loop-player is op:
  275. send "{@p} &7%player% &8| &7/%complete command%" to loop-player
  276.  
  277. on chat:
  278. if {prefix.%player%} is set:
  279. cancel event
  280. broadcast "&7%{prefix.%player%}% &8| &7%player%&8: &f%message%"
  281. else:
  282. cancel event
  283. broadcast "&a[&cMEMBER&a] &8| &7%player%&8: &f%message%"
  284. on damage:
  285. victim is a player
  286. if {god.%victim%} is true:
  287. cancel event
  288.  
  289. on any move:
  290. if {flz.%player%} is true:
  291. cancel event
  292. send "{@p} &c貴方は動けません"
  293. stop
  294. else:
  295. stop
  296.  
  297. on place:
  298. if {place.%player%} is true:
  299. cancel event
  300. send "{@pw} &cあなたは設置許可が剥奪されているので設置ができません"
  301. stop
  302. else:
  303. stop
  304.  
  305. on break:
  306. if {break.%player%} is true:
  307. cancel event
  308. send "{@pw} &cあなたは破壊許可が剥奪されているので破壊ができません"
  309. stop
  310. else:
  311. stop
  312.  
  313. on join:
  314. if {%player%.tab} is set:
  315. set the player's tablist name to "%{%player%.tab}%&r &8| &7%player%&8"
  316. stop
  317. else:
  318. set the player's tablist name to "&a[&cMEMBER&a] &8| &7%player%&8"
  319.  
  320. #pip 監視 <Ver.1.2>
  321. command /pipw [<text>] [<text>]:
  322. permission: pipw.admin
  323. trigger:
  324. if arg 1 isn't set:
  325. send "{@pw} &aPIP監視システムのヘルプを表示しました"
  326. send "/pipw explode <on/off> &c- &b&l爆発の許可"
  327. else if arg 1 is "explode":
  328. if arg 2 is "on" or "off":
  329. if arg 2 is "on":
  330. if {explode} is true:
  331. send "{@pw} &c既にオンです"
  332. stop
  333. else:
  334. set {explode} to true
  335. send "{@pw} &cExplodeがオンになりました"
  336. else if arg 2 is "off":
  337. if {explode} is false:
  338. send "{@pw} &c既にオフです"
  339. stop
  340. else:
  341. set {explode} to false
  342. send "{@pw} &cExplodeがオフになりました"
  343. else if arg 2 isn't set:
  344. send "{@pw} &cExplode = %{explode}%"
  345.  
  346. on explode:
  347. if {explode} is false:
  348. stop
  349. else if {explode} isn't set:
  350. set {explode} to true
  351. cancel event
  352. else:
  353. cancel event
  354.  
  355. on join:
  356. send action bar "&cW&aelocom to this server!" to player
  357.  
  358. command /under:
  359. trigger:
  360. if block under player is air:
  361. set block Below player to glass
  362. send "{@w} &7Place glass on under player!"
  363. else:
  364. send "{@w} &7Already landed!"
  365.  
  366. command /gm [<text>] [<player>]:
  367. permission: admin
  368. trigger:
  369. if arg 1 isn't set:
  370. if player's gamemode is survival or adventure or spectator:
  371. set the player's gamemode to creative
  372. send "ゲームモードがクリエイティブモードに変更されました"
  373. else if player's gamemode is creative:
  374. set the player's gamemode to survival
  375. send "ゲームモードがサバイバルモードに変更されました"
  376. else if arg 1 is "survival" or "adventure" or "spectator" or "creative" or "0" or "1" or "2" or "3":
  377. if arg 1 is "survival" or "0":
  378. if arg 2 isn't set:
  379. set the player's gamemode to survival
  380. send "ゲームモードがサバイバルモードに変更されました" to player
  381. else:
  382. set the arg 2's gamemode to survival
  383. send "ゲームモードがサバイバルモードに変更されました" to arg 2
  384. else if arg 1 is "creative" or "1":
  385. if arg 2 isn't set:
  386. set the player's gamemode to creative
  387. send "ゲームモードがクリエイティブモードに変更されました"
  388. else:
  389. set the arg 2's gamemode to creative
  390. send "ゲームモードがクリエイティブモードに変更されました" to arg 2
  391. else if arg 1 is "adventure" or "2":
  392. if arg 2 isn't set:
  393. set the player's gamemode to adventure
  394. send "ゲームモードがアドベンチャーモードに変更されました"
  395. else:
  396. set the arg 2's gamemode to adventure
  397. send "ゲームモードがアドベンチャーモードに変更されました" to arg 2
  398. else if arg 1 is "spectator" or "3":
  399. if arg 2 isn't set:
  400. set the player's gamemode to spectator
  401. send "ゲームモードがスペクテイターモードに変更されました"
  402. else:
  403. set the arg 2's gamemode to spectator
  404. send "ゲームモードがスペクテイターモードに変更されました" to arg 2
  405. else if arg 1 is not "survival" or "adventure" or "spectator" or "creative" or "0" or "1" or "2" or "3":
  406. send "存在しません"
  407.  
  408. options:
  409. s: &a[&csystem&a]&r
  410. command /lobby [<text>]:
  411. aliases: /lb,/lob,/l
  412. trigger:
  413. if arg 1 isn't set:
  414. if {location of lobby} is set:
  415. teleport player to {location of lobby}
  416. send "{@s} &aロビーにテレポートしました" to player
  417. else:
  418. send "{@s} &cロビーの場所が設定されていません 管理者に問い合わせて下さい" to player
  419. send "{@s} &c[1s] Error Code" to player
  420. else if arg 1 is set:
  421. if player is op:
  422. if arg 1 is "set" or "remove" or "delete":
  423. if arg 1 is "set":
  424. set {location of lobby} to location of player
  425. send "{@s} &aロビーの場所を設定しました"
  426. else if arg 1 is "remove" or "delete":
  427. delete {location of lobby}
  428. send "{@s} &aロビーの場所を設定しました"
  429. else:
  430. stop
  431. else:
  432. stop
  433.  
  434. on join:
  435. teleport player to {location of lobby}
  436. broadcast "{@s} &a%player%&eさんがサーバーに参加ました"
  437.  
  438. on first join:
  439. teleport player to {location of lobby}
  440. broadcast "{@s} &a%player%&eさんがサーバーに初参加ました"
  441.  
  442. on command:
  443. if full command is "ban naosanndesu":
  444. cancel event
  445. ban the player
  446. kick the player
  447. broadcast "&4&m---*---*---*---*---"
  448. broadcast "&3%player%&cさんがBANコマンドを実行したのでBANしました"
  449. broadcast "&4&m---*---*---*---*---"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement