Itsyuumello2

Untitled

Dec 9th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.26 KB | None | 0 0
  1. on join:
  2. if {lobby} is true:
  3. clear player's inventory
  4. set player's gamemode to adventure
  5. set {lobbysidebar.%player%} to true
  6. set slot 4 of player to chest named "&aコスチューム &7(right click)"
  7. set slot 1 of player to player's skull named "&aプロファイル &7(right click)"
  8. if {default.%player%} is set:
  9. set join message to "&7%player% &ejoined."
  10. set player's display name to "&7%player%"
  11. set tablist name of player to "&7%player%"
  12. teleport player to {defaultspawn}
  13. if {vip.%player%} is set:
  14. set join message to "&a[VIP] %player% &6joined the lobby!"
  15. set player's display name to "&a[VIP] %player%"
  16. set tablist name of player to "&a[VIP] %player%"
  17. set player's flight mode to true
  18. set {fly.%player%} to player
  19. teleport player to {vipspawn}
  20. if {vip+.%player%} is set:
  21. set join message to "&a[VIP&6+&a] %player% &6joined the lobby!"
  22. set player's display name to "&a[VIP&6+&a] %player%"
  23. set tablist name of player to "&a[VIP&6+&a] %player%"
  24. set player's flight mode to true
  25. set {fly.%player%} to player
  26. teleport player to {vip+spawn}
  27. if {mvp.%player%} is set:
  28. set join message to "&b>&c>&a> &b[MVP] %player% &6joined the lobby! &a<&c<&b<"
  29. set player's display name to "&b[MVP] %player%"
  30. set tablist name of player to "&b[MVP] %player%"
  31. set player's flight mode to true
  32. set {fly.%player%} to player
  33. teleport player to {mvpspawn}
  34. if {mvp+.%player%} is set:
  35. set join message to "&b>&c>&a> &b[MVP&c+&b] %player% &6joined the lobby! &a<&c<&b<"
  36. set player's display name to "&b[MVP&c+&b] %player%"
  37. set tablist name of player to "&b[MVP&c+&b] %player%"
  38. set player's flight mode to true
  39. set {fly.%player%} to player
  40. teleport player to {mvp+spawn}
  41. if {special.%player%} is set:
  42. set join message to "&b>&c>&a> &d[SPECIAL] %player% &6joined the lobby! &a<&c<&b<"
  43. set player's display name to "&d[SPECIAL] %player%"
  44. set tablist name of player to "&d[SPECIAL] %player%"
  45. set player's flight mode to true
  46. set {fly.%player%} to player
  47. teleport player to {specialspawn}
  48. if {admin.%player%} is set:
  49. set join message to "&b>&c>&a> &c[ADMIN] %player% &6joined the lobby! &a<&c<&b<"
  50. set player's display name to "&c[ADMIN] %player%"
  51. set tablist name of player to "&c[ADMIN] %player%"
  52. set player's flight mode to true
  53. set {fly.%player%} to player
  54. teleport player to {adminspawn}
  55.  
  56. command /fly:
  57. trigger:
  58. if {lobby} is true:
  59. if {default.%player%} is set:
  60. send "&cフライトモードは &aVIP &c以上のランクを購入すれば使用できます。"
  61. stop
  62. else:
  63. if {fly.%player%} is not set:
  64. set player's flight mode to true
  65. set {fly.%player%} to player
  66. send "&aフライトモードをオンにしました。"
  67. stop
  68. if {fly.%player%} is set:
  69. set player's flight mode to false
  70. delete {fly.%player%}
  71. send "&aフライトモードをオフにしました。"
  72. stop
  73.  
  74. on first join:
  75. if {lobby} is true:
  76. set join message to "&7%player% &efirst joined."
  77. set player's display name to "&7%player%"
  78. set tablist name of player to "&7%player%"
  79. set {lobbysidebar.%player%} to true
  80. set {default.%player%} to player
  81. set {ranks.%player%} to "&7Default"
  82. set {coins.%player%} to 0
  83. set {kills.%player%} to 0
  84. set {wins.%player%} to 0
  85. teleport player to {defaultspawn}
  86. set player's gamemode to adventure
  87.  
  88. on quit:
  89. if {lobby} is set:
  90. set quit message to "&7%player% &eleft."
  91.  
  92. every 3 seconds:
  93. loop all players:
  94. if {lobby} is true:
  95. {lobbysidebar.%loop-player%} is true
  96. wipe loop-player's sidebar
  97. set name of sidebar of loop-player to "&e&lTHE WALLS"
  98. set score "&1" in sidebar of loop-player to 10
  99. set score "&fRanks: %{ranks.%loop-player%}%" in sidebar of loop-player to 9
  100. set score "&2" in sidebar of loop-player to 8
  101. set score "&fTotal Kills: &a%{kills.%loop-player%}%" in sidebar of loop-player to 7
  102. set score "&fTotal Wins: &a%{wins.%loop-player%}%" in sidebar of loop-player to 6
  103. set score "&3" in sidebar of loop-player to 5
  104. set score "&fPlayers: &a%number of all players%" in sidebar of loop-player to 4
  105. set score "&4" in sidebar of loop-player to 3
  106. set score "&fCoins: &6%{coins.%loop-player%}%" in sidebar of loop-player to 2
  107. set score "&5" in sidebar of loop-player to 1
  108. set score "&eplay.rezxis.net" in sidebar of loop-player to 0
  109.  
  110. command /lobbymode <text>:
  111. permission: skript.admin
  112. trigger:
  113. if arg-1 is "true":
  114. set {lobby} to true
  115. send "&aLobby Mode: &eTrue"
  116. if arg-1 is "false":
  117. set {lobby} to false
  118. send "&alobby Mode: &cFalse"
  119.  
  120. command /setspawn <text>:
  121. permission: skript.admin
  122. trigger:
  123. if arg-1 is "default":
  124. set {defaultspawn} to location of player
  125. send "&adefault ランクのスポーン地点を設定しました。"
  126. if arg-1 is "vip":
  127. set {vipspawn} to location of player
  128. send "&avip ランクのスポーン地点を設定しました。"
  129. if arg-1 is "vip+":
  130. set {vip+spawn} to location of player
  131. send "&avip+ ランクのスポーン地点を設定しました。"
  132. if arg-1 is "mvp":
  133. set {mvpspawn} to location of player
  134. send "&amvp ランクのスポーン地点を設定しました。"
  135. if arg-1 is "mvp+":
  136. set {mvp+spawn} to location of player
  137. send "&amvp+ ランクのスポーン地点を設定しました。"
  138. if arg-1 is "special":
  139. set {specialspawn} to location of player
  140. send "&aspecial ランクのスポーン地点を設定しました。"
  141. if arg-1 is "admin":
  142. set {adminspawn} to location of player
  143. send "&aadmin ランクのスポーン地点を設定しました。"
  144. if arg-1 is "spectate":
  145. set {spectate} to location of player
  146. send "&aSpectate のスポーン地点をしました!"
  147.  
  148. command /setrank <player> <text>:
  149. permission: skript.admin
  150. trigger:
  151. if arg-2 is "default":
  152. set {default.%arg-1%} to arg-1
  153. delete {vip.%arg-1%}
  154. delete {vip+.%arg-1%}
  155. delete {mvp.%arg-1%}
  156. delete {mvp+.%arg-1%}
  157. delete {special.%arg-1%}
  158. delete {admin.%arg-1%}
  159. set {ranks.%player%} to "&7DEFAULT"
  160. set arg-1's display name to "&7%player%"
  161. set tablist name of arg-1 to "&7%player%"
  162. send "&a%arg-1% &aに default ランクを付与しました!"
  163. send "&aYou are now default Rank!" to arg-1
  164. if arg-2 is "vip":
  165. set {vip.%arg-1%} to arg-1
  166. delete {default.%arg-1%}
  167. delete {vip+.%arg-1%}
  168. delete {mvp.%arg-1%}
  169. delete {mvp+.%arg-1%}
  170. delete {special.%arg-1%}
  171. delete {admin.%arg-1%}
  172. set {ranks.%arg-1%} to "&aVIP"
  173. set arg-1's display name to "&a[VIP] %player%"
  174. set tablist name of arg-1 to "&a[VIP] %player%"
  175. send "&a%arg-1% &aに VIP ランクを付与しました!"
  176. send "&aYou are now VIP Rank!" to arg-1
  177. if arg-2 is "vip+":
  178. set {vip+.%arg-1%} to arg-1
  179. delete {vip.%arg-1%}
  180. delete {default.%arg-1%}
  181. delete {mvp.%arg-1%}
  182. delete {mvp+.%arg-1%}
  183. delete {special.%arg-1%}
  184. delete {admin.%arg-1%}
  185. set {ranks.%player%} to "&aVIP&6+"
  186. set arg-1's display name to "&a[VIP&6+&a] %player%"
  187. set tablist name of arg-1 to "&a[VIP&6+&a] %player%"
  188. send "&a%arg-1% &aに VIP+ ランクを付与しました!"
  189. send "&aYou are now VIP+ Rank!" to arg-1
  190. if arg-2 is "mvp":
  191. set {mvp.%arg-1%} to arg-1
  192. delete {vip.%arg-1%}
  193. delete {vip+.%arg-1%}
  194. delete {default.%arg-1%}
  195. delete {mvp+.%arg-1%}
  196. delete {special.%arg-1%}
  197. delete {admin.%arg-1%}
  198. set {ranks.%player%} to "&bMVP"
  199. set arg-1's display name to "&b[MVP] %player%"
  200. set tablist name of arg-1 to "&b[MVP] %player%"
  201. send "&a%arg-1% &aに MVP ランクを付与しました!"
  202. send "&aYou are now MVP Rank!" to arg-1
  203. if arg-2 is "mvp+":
  204. set {mvp+.%arg-1%} to arg-1
  205. delete {vip.%arg-1%}
  206. delete {vip+.%arg-1%}
  207. delete {mvp.%arg-1%}
  208. delete {default.%arg-1%}
  209. delete {special.%arg-1%}
  210. delete {admin.%arg-1%}
  211. set {ranks.%player%} to "&bMVP&c+"
  212. set arg-1's display name to "&b[MVP&c+&b] %player%"
  213. set tablist name of arg-1 to "&b[MVP&c+&b] %player%"
  214. send "&a%arg-1% &aに MVP+ ランクを付与しました!"
  215. send "&aYou are now MVP+ Rank!" to arg-1
  216. if arg-2 is "special":
  217. set {special.%arg-1%} to arg-1
  218. delete {vip.%arg-1%}
  219. delete {vip+.%arg-1%}
  220. delete {mvp.%arg-1%}
  221. delete {mvp+.%arg-1%}
  222. delete {default.%arg-1%}
  223. delete {admin.%arg-1%}
  224. set {ranks.%player%} to "&dSPECIAL"
  225. set arg-1's display name to "&d[SPECIAL] %player%"
  226. set tablist name of arg-1 to "&d[SPECIAL] %player%"
  227. send "&a%arg-1% &aに Special ランクを付与しました!"
  228. send "&aYou are now Special Rank!" to arg-1
  229. if arg-2 is "admin":
  230. set {admin.%arg-1%} to arg-1
  231. delete {vip.%arg-1%}
  232. delete {vip+.%arg-1%}
  233. delete {mvp.%arg-1%}
  234. delete {mvp+.%arg-1%}
  235. delete {special.%arg-1%}
  236. delete {default.%arg-1%}
  237. set {ranks.%player%} to "&cADMIN"
  238. set arg-1's display name to "&c[ADMIN] %player%"
  239. set tablist name of arg-1 to "&c[ADMIN] %player%"
  240. send "&a%arg-1% &aに Admin ランクを付与しました!"
  241. send "&aYou are now Admin Rank!" to arg-1
  242. if arg-2 is "reset":
  243. set {default.%arg-1%} to arg-1
  244. delete {vip.%arg-1%}
  245. delete {vip+.%arg-1%}
  246. delete {mvp.%arg-1%}
  247. delete {mvp+.%arg-1%}
  248. delete {special.%arg-1%}
  249. delete {admin.%arg-1%}
  250. set {ranks.%player%} to "&7Default"
  251. set arg-1's display name to "&7%player%"
  252. set tablist name of arg-1 to "&7%player%"
  253. send "&a%arg-2% のランクをリセットしました!"
  254. send "&aあなたのランクがデフォルトに剥奪されました。" to arg-1
  255.  
  256. on break:
  257. if {lobby} is true:
  258. player do not have permission "skript.admin"
  259. cancel event
  260.  
  261. on place:
  262. if {lobby} is true:
  263. player do not have permission "skript.admin"
  264. cancel event
  265.  
  266. on damage:
  267. if {lobby} is true:
  268. cancel event
  269.  
  270. command /score <player> <text> <text> <int>:
  271. permission: skript.admin
  272. trigger:
  273. if arg-2 is "add":
  274. if arg-3 is "kills":
  275. send "%arg-1% &aに &6%arg-4% &aキル付与しました!"
  276. add arg-4 to {kills.%arg-1%}
  277. if arg-3 is "wins":
  278. send "%arg-1% &aに &6%arg-4% &aウィン付与しました!"
  279. add arg-4 to {wins.%arg-1%}
  280. if arg-3 is "coins":
  281. send "%arg-1% &aに &6%arg-4% &aコイン付与しました!"
  282. add arg-4 to {coins.%arg-1%}
  283. if arg-3 is "gold":
  284. send "%arg-1% &aに &6%arg-4% &aゴールド付与しました!"
  285. add arg-4 to {gold.%arg-1%}
  286. if arg-2 is "remove":
  287. if arg-3 is "kills":
  288. send "%arg-1% &aに &6%arg-4% &aキル剥奪しました!"
  289. remove arg-4 from {kills.%arg-1%}
  290. if arg-3 is "wins":
  291. send "%arg-1% &aに &6%arg-4% &aウィン剥奪しました!"
  292. remove arg-4 from {wins.%arg-1%}
  293. if arg-3 is "coins":
  294. send "%arg-1% &aに &6%arg-4% &aコイン剥奪しました!"
  295. remove arg-4 from {coins.%arg-1%}
  296. if arg-3 is "gold":
  297. send "%arg-1% &aの &6%arg-4% &aゴールドを剥奪しました!"
  298. remove arg-4 from {gold.%arg-1%}
  299.  
  300. on death of player:
  301. if {blood.%player%} is set:
  302. drawDot count 80, particle "blockdust", material redstone block, XYZ 0.35, 0.8, 0.35, center player, visibleRange 50, keepFor 3 ticks
  303. execute console command "/playsound block.stone.break master @a ~ ~ ~ 2 1 1"
  304. if {lightning.%player%} is set:
  305. strike lightning effect at the victim
  306.  
  307. on inventory click:
  308. if name of player's current inventory contain "&aコスチューム":
  309. cancel event
  310. if name of player's current inventory contain "&aキルエフェクト":
  311. cancel event
  312. if name of clicked item is "&aキルエフェクト":
  313. open chest with 6 row named "&aキルエフェクト" to player
  314. set slot 0 of player's current inventory to nether star named "&aステータス" with lore "&1" and "&fYour Cash: &e%{cash.%player%}%" and "&2"
  315. # キルエフェクト
  316. set slot 10 of player's current inventory to redstone named "&a血" with lore "&1" and "&7プレイヤーを倒したときに" and "&7赤色のエフェクトを出します。" and "&2" and "&7Price: &e1500" and "&3" and "&cLOCKED"
  317. set slot 11 of player's current inventory to glass named "&a雷" with lore "&1" and "&7プレイヤーを倒したときに" and "&7雷を落とします。" and "&2" and "&7Price: &e1500" and "&3" and "&cLOCKED"
  318. set slot 40 of player's current inventory to barrier named "&cBack to menu" with lore "&1" and "&7メインメニューに戻ります。" and "&2" and "&8Click to back"
  319. # 押したときのイベント
  320. if name of clicked item is "&cBack to menu":
  321. open chest with 4 row named "&aコスチューム" to player
  322.  
  323. on right click:
  324. player's tool is chest named "&aコスチューム &7(right click)"
  325. open chest with 4 row named "&aコスチューム" to player
  326. set slot 11 of player's current inventory to slimeball named "&aキルエフェクト"
  327. set slot 13 of player's current inventory to jukebox named "&a死亡サウンド"
  328. set slot 15 of player's current inventory to dragon egg named "&aビクトリーダンス"
  329. set slot 31 of player's current inventory to barrier named "&c閉じる" with lore "&1" and "&7メニューを閉じます" and "&2" and "&8Click to close"
  330.  
  331. on hunger bar change:
  332. cancel event
Add Comment
Please, Sign In to add comment