Itsyuumello2

Untitled

Dec 1st, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.13 KB | None | 0 0
  1. on join:
  2. loop all players:
  3. if {lobby.%loop-player%} is true:
  4. teleport player to {worldspawn.%player%}
  5. force respawn player
  6. execute console command "/gamemode 2 %player%"
  7. loop 9999999999999999999999 times:
  8. wait 10 ticks
  9. set the loop-player's food level to 10
  10. if {default.%player%} is set:
  11. set join message to "&7%player% &ejoin."
  12. set the player's display name to "&7%player%"
  13. set tablist name of player to "&7%player%"
  14. if {vip.%player%} is set:
  15. set join message to "&a[VIP] %player% &6joined the lobby!"
  16. set the player's display name to "&a[VIP] %player%"
  17. set tablist name of player to "&a[VIP] %player%"
  18. if {vip+.%player%} is set:
  19. set join message to "&a[VIP&6+&a] %player% &6joined the lobby!"
  20. set the player's display name to "&a[VIP&6+&a] %player%"
  21. set tablist name of player to "&a[VIP&6+&a] %player%"
  22. if {mvp.%player%} is set:
  23. set join message to "&9>&c>&a> &b[MVP] %player% &6joined the lobby! &a<&c<&b<"
  24. set the player's display name to "&b[MVP] %player%"
  25. set tablist name of player to "&b[MVP] %player%"
  26. if {mvp+.%player%} is set:
  27. set join message to "&9>&c>&a> &b[MVP&c+&b] %player% &6joined the lobby! &a<&c<&b<"
  28. set the player's display name to "&b[MVP&c+&b] %player%"
  29. set tablist name of player to "&b[MVP&c+&b] %player%"
  30. if {proservercreator.%player%} is set:
  31. set join message to "&9>&c>&a> &c[&fPRO SERVER CREATOR&c] %player% &6joined the lobby! &a<&c<&b<"
  32. set the player's display name to "&c[&fPRO SERVER CREATOR&c] %player%"
  33. set tablist name of player to "&c[&fPRO SERVER CREATOR&c] %player%"
  34. if {admin.%player%} is set:
  35. set join message to "&9>&c>&a> &c[ADMIN] %player% &6joined the lobby! &a<&c<&9<"
  36. set the player's display name to "&c[ADMIN] %player%"
  37. set tablist name of player to "&c[ADMIN] %player%"
  38.  
  39. on quit:
  40. loop all players:
  41. if {lobby.%loop-player%} is true:
  42. set quit message to "&7%player% &eleft."
  43.  
  44. on first join:
  45. loop all players:
  46. if {lobby.%loop-player%} is true:
  47. teleport player to {worldspawn.%player%}
  48. set join message to "&7%player% &efirst join."
  49. force respawn player
  50. execute console command "/setrank %player% default"
  51. execute console command "/gamemode 2 %player%"
  52. set {kill.%player%} to 0
  53. set {coins.%player%} to 0
  54. set {wins.%player%} to 0
  55. set {gamekill.%player%} to 0
  56. set {gamegold.%player%} to 0
  57. send "&c"
  58. send "&a&lTHANK YOU FOR JOINING!"
  59. send "&c"
  60.  
  61. on death of player:
  62. loop all players:
  63. if {lobby.%loop-player%} is true:
  64. set death message to "&7%victim% &eはなぜかロビーで死んだ。"
  65. force respawn player
  66.  
  67. on damage:
  68. loop all players:
  69. if {lobby.%loop-player%} is true:
  70. cancel event
  71.  
  72. on break:
  73. loop all players:
  74. if {lobby.%loop-player%} is true:
  75. player do not have permission "skript.admin"
  76. cancel event
  77.  
  78. on place:
  79. loop all players:
  80. if {lobby.%player%} is true:
  81. player do not have permission "skript.admin"
  82. cancel event
  83.  
  84. on pick up:
  85. loop all players:
  86. if {lobby.%loop-player%} is true:
  87. cancel event
  88.  
  89. every 2 seconds:
  90. loop all players:
  91. if {lobby.%loop-player%} is true:
  92. {sidebar.%loop-player%} is true
  93. wipe loop-player's sidebar
  94. set name of sidebar of loop-player to "&e&lTHE WALLS"
  95. set score "&l" in sidebar of loop-player to 10
  96. set score "&fRanks: %{ranks.%loop-player%}%" in sidebar of loop-player to 9
  97. set score "&a" in sidebar of loop-player to 8
  98. set score "&fTotal Kills: &a%{kill.%loop-player%}%" in sidebar of loop-player to 7
  99. set score "&fTotal Wins: &a%{wins.%loop-player%}%" in sidebar of loop-player to 6
  100. set score "&e" in sidebar of loop-player to 5
  101. set score "&fPlayers: &a%number of all players%" in sidebar of loop-player to 4
  102. set score "&c" in sidebar of loop-player to 3
  103. set score "&fCoins: &6%{coins.%loop-player%}%" in sidebar of loop-player to 2
  104. set score "&7" in sidebar of loop-player to 1
  105. set score "&eplay.rezxis.net" in sidebar of loop-player to 0
  106.  
  107. command /score <text> <player> <text> <int>:
  108. permission: skript.admin
  109. permission: &cNo permission
  110. usage: &cUsage: /score <add / remove> <player> <kills / wins / coins>
  111. trigger:
  112. if arg-1 is "add":
  113. if arg-3 is "kills":
  114. add arg-4 to {kill.%player%}
  115. send "&7%arg-2% &aに &6%arg-4% &aキル追加しました。" to arg-2
  116. send "&aスタッフにより &6%arg-4% &aキル追加されました。" to arg-2
  117. if arg-3 is "wins":
  118. add arg-4 to {wins.%player%}
  119. send "&7%arg-2% &aに &6%arg-4% &aウィン追加しました。" to arg-2
  120. send "&aスタッフにより &6%arg-4% &aウィン追加されました。" to arg-2
  121. if arg-3 is "coins":
  122. add arg-4 to {coins.%player%}
  123. send "&7%arg-2% &aに &6%arg-4% &aコイン追加しました。" to arg-2
  124. send "&aスタッフにより &6%arg-4% &aコイン追加されました。" to arg-2
  125. if arg-1 is "remove":
  126. if arg-3 is "kills":
  127. remove arg-4 from {kill.%player%}
  128. send "&7%arg-2% &aから &6%arg-4% &aキル剥奪しました。" to arg-2
  129. send "&aスタッフにより &6%arg-4% &aキル剥奪されました。" to arg-2
  130. if arg-3 is "wins":
  131. remove arg-4 from {wins.%player%}
  132. send "&7%arg-2% &aから &6%arg-4% &aウィン剥奪しました。" to arg-2
  133. send "&aスタッフにより &6%arg-4% &aウィン剥奪されました。" to arg-2
  134. if arg-3 is "coins":
  135. remove arg-4 from {coins.%player%}
  136. send "&7%arg-2% &aから &6%arg-4% &aコイン剥奪しました。" to arg-2
  137. send "&aスタッフにより &6%arg-4% &aコイン剥奪されました。" to arg-2
  138.  
  139. command /setrank <offline player> <text>:
  140. usage: &cUsage: /setrank <player> <rank> &7/ &lランク: &7DEFAULT &aVIP &aVIP&6+ &bMVP &bMVP&c+ &cPROSERVERCREATOR &cADMIN
  141. permission: skript.admin
  142. permission message: &cNo permission
  143. trigger:
  144. if arg-2 is "default":
  145. set {ranks.%arg-1%} to "&7DEFAULT"
  146. send "&7DEFAULT &aランクを入手しました!" to arg-1
  147. set {default.%player%} to arg-1
  148. set the arg-1's display name to "&7%player%"
  149. set tablist name of arg-1 to "&7%player%"
  150. delete {vip.%player%}
  151. delete {vip+.%player%}
  152. delete {mvp.%player%}
  153. delete {mvp+.%player%}
  154. delete {proservercreator.%player%}
  155. delete {admin.%player%}
  156. scoreboard(player)
  157. if arg-2 is "vip":
  158. set {ranks.%arg-1%} to "&aVIP"
  159. send "&aVIP ランクを入手しました!" to arg-1
  160. remove arg-1 from {default.%player%}
  161. set {vip.%player%} to arg-1
  162. set the arg-1's display name to "&a[VIP] %player%"
  163. set tablist name of arg-1 to "&a[VIP] %player%"
  164. delete {default.%player%}
  165. delete {vip+.%player%}
  166. delete {mvp.%player%}
  167. delete {mvp+.%player%}
  168. delete {proservercreator.%player%}
  169. delete {admin.%player%}
  170. scoreboard(player)
  171. if arg-2 is "vip+":
  172. set {ranks.%arg-1%} to "&aVIP&6+"
  173. send "&aVIP&6+ &aランクを入手しました!" to arg-1
  174. set {vip+.%player%} to arg-1
  175. set the arg-1's display name to "&a[VIP&6+&a] %player%"
  176. set tablist name of arg-1 to "&a[VIP&6+&a] %player%"
  177. delete {vip.%player%}
  178. delete {default.%player%}
  179. delete {mvp.%player%}
  180. delete {mvp+.%player%}
  181. delete {proservercreator.%player%}
  182. delete {admin.%player%}
  183. scoreboard(player)
  184. if arg-2 is "mvp":
  185. set {ranks.%arg-1%} to "&bMVP"
  186. send "&bMVP &aランクを入手しました!" to arg-1
  187. set {mvp.%player%} to arg-1
  188. set the arg-1's display name to "&b[MVP] %player%"
  189. set tablist name of arg-1 to "&b[MVP] %player%"
  190. delete {vip.%player%}
  191. delete {vip+.%player%}
  192. delete {default.%player%}
  193. delete {mvp+.%player%}
  194. delete {proservercreator.%player%}
  195. delete {admin.%player%}
  196. scoreboard(player)
  197. if arg-2 is "mvp+":
  198. set {ranks.%arg-1%} to "&bMVP&c+"
  199. send "&bMVP&c+ &aランクを入手しました!" to arg-1
  200. set {mvp+.%player%} to arg-1
  201. set the arg-1's display name to "&b[MVP&c+&b] %player%"
  202. set tablist name of arg-1 to "&b[MVP&c+&b] %player%"
  203. delete {vip.%player%}
  204. delete {vip+.%player%}
  205. delete {mvp.%player%}
  206. delete {default.%player%}
  207. delete {proservercreator.%player%}
  208. delete {admin.%player%}
  209. scoreboard(player)
  210. if arg-2 is "proservercreator":
  211. set {ranks.%arg-1%} to "&cPRO SERVER CREATOR"
  212. send "&cPRO SERVER CREATOR &aランクを入手しました!" to arg-1
  213. set {proservercreator.%player%} to arg-1
  214. set the arg-1's display name to "&c[&fPRO SERVER CREATOR&c] %player%"
  215. set tablist name of arg-1 to "&c[&fPRO SERVER CREATOR&c] %player%"
  216. delete {vip.%player%}
  217. delete {vip+.%player%}
  218. delete {mvp.%player%}
  219. delete {mvp+.%player%}
  220. delete {default.%player%}
  221. delete {admin.%player%}
  222. scoreboard(player)
  223. if arg-2 is "admin":
  224. set {ranks.%arg-1%} to "&cADMIN"
  225. send "&cADMIN &aランクを入手しました!" to arg-1
  226. set {admin.%player%} to arg-1
  227. set the arg-1's display name to "&c[ADMIN] %player%"
  228. set tablist name of arg-1 to "&c[ADMIN] %player%"
  229. delete {vip.%player%}
  230. delete {vip+.%player%}
  231. delete {mvp.%player%}
  232. delete {mvp+.%player%}
  233. delete {proservercreator.%player%}
  234. delete {default.%player%}
  235. scoreboard(player)
  236.  
  237. command /pl:
  238. trigger:
  239. send "&fPlugins (1): &aSkript"
  240.  
  241. command /plugins:
  242. trigger:
  243. send "&fPlugins (1): &aSkript"
  244.  
  245. command /setworldspawns:
  246. permission: skritp.admin
  247. trigger:
  248. send "&aスポーン地点をセットしたなり"
  249. set {worldspawn.%player%} to location of player
  250.  
  251. command /testscore <player> <text>:
  252. trigger:
  253. if arg-2 is "on":
  254. {testbar.%arg-1%} is true
  255. wipe player's sidebar
  256. set name of sidebar of arg-1 to "&a&l現在メンテナンス"
  257. set score "&a&l現在メンテナンス" in sidebar of arg-1 to 0
  258. if arg-1 is "off":
  259. {testbar.%arg-1%} is false
  260. wipe arg-1's sidebar
  261.  
  262. command /repair <player> <text>:
  263. permission: skript.admin
  264. trigger:
  265. if arg-2 is "lobby":
  266. execute console command "/gamemode 2 %arg-1%"
  267. execute console command "/setrank %arg-1% default"
  268. set {lobby.%arg-1%} to true
  269. if arg-2 is "game":
  270. execute console command "/gamemode 3 %arg-1%"
  271. execute console command "/setrank %arg-1% default"
  272. set {game.%arg-1%} to true
Advertisement
Add Comment
Please, Sign In to add comment