Itsyuumello2

Untitled

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