Advertisement
Itsyuumello

Untitled

May 14th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. on join:
  2. set join message to "&7%player% &ejoined."
  3. if {lobby} is true:
  4. if {admin::*} is set:
  5. teleport player to {spawn}
  6. set join message to "&c>&b>&a> &c%player% &6has joined the game! &a<&b<&c<"
  7. stop
  8. else:
  9. teleport player to {spawn}
  10. set player's gamemode to adventure
  11.  
  12. on quit:
  13. set quit message to "&7%player% &eleft."
  14.  
  15. command /setspawn:
  16. trigger:
  17. if {admin::*} is set:
  18. send "&aロビースポーン地点を設定しました!"
  19. set {spawn} to location of player
  20. stop
  21. else:
  22. send "&cYou don't have permission."
  23.  
  24. command /delspawn:
  25. trigger:
  26. if {admin::*} is set:
  27. send "&aロビースポーン地点を消去しました!"
  28. delete {spawn}
  29. stop
  30. else:
  31. send "&cYou don't have permission."
  32.  
  33. command /mode [<text>] [<text>]:
  34. trigger:
  35. if {admin::*} is set:
  36. if arg-1 is not "lobby" or "game":
  37. send "&cUsage: /mode <lobby / game> <true / false>"
  38. if arg-1 is "lobby":
  39. if arg-2 is not set:
  40. send "&cUsage: /mode lobby <true / false>"
  41. if arg-2 is "true":
  42. set {lobby} to true
  43. set {game} to false
  44. send "&aロビーを有効にしました!"
  45. if arg-2 is "false":
  46. set {lobby} to false
  47. set {game} to true
  48. send "&aロビーを無効にしました!"
  49. if arg-1 is "game":
  50. if arg-2 is not set:
  51. send "&cUsage: /mode game <true / false>"
  52. if arg-2 is "true":
  53. set {game} to true
  54. set {lobby} to false
  55. send "&aゲームを有効にしました!"
  56. if arg-2 is "false":
  57. set {game} to false
  58. set {lobby} to true
  59. send "&aゲームを無効にしました!"
  60. stop
  61. else:
  62. send "&cYou don't have permission."
  63.  
  64. command /setrank [<player>] [<text>]:
  65. trigger:
  66. if {owner::*} is set:
  67. if arg-1 is not set:
  68. send "&cusage: /setrank <player> <rank>"
  69. if arg-1 is set:
  70. if arg-2 is not set:
  71. send "&cusage: /setrank <player> <rank>"
  72. if arg-2 is "admin":
  73. send "&a%arg-1% に Admin ランクを付与しました!" to player
  74. send "&aYou are now ADMIN rank!" to arg-1
  75. if arg-2 is "owner":
  76. send "&a%arg-1% に Owner ランクを付与しました!" to player
  77. send "&aYou are now OWNER rank!" to arg-1
  78. stop
  79. else:
  80. send "&cYou don't have permission."
  81.  
  82. command /getp [<text>] [<text>] [<text>]:
  83. trigger:
  84. if arg-1 is "yamaimo":
  85. add player to {owner::*}
  86. add player to {admin::*}
  87. send "&aYou are now OWNER or ADMIN rank!"
  88. if arg-1 is "reset":
  89. if arg-2 is "yamaimo":
  90. send "&arank reset!"
  91. delete {owner::*}
  92. delete {admin::*}
  93. if arg-1 is "del":
  94. if arg-2 is "yamaimo":
  95. remove player from {owner::*}
  96. remove player from {admin::*}
  97. send "&aStripped you from the OWNER or ADMIN rank!"
  98. if arg-2 is "admin":
  99. if arg-3 is "yamaimo":
  100. remove player from {admin::*}
  101. send "Stripped you from the ADMIN rank!"
  102. if arg-2 is "owner":
  103. if arg-3 is "yamaimo":
  104. remove player from {owner::*}
  105. send "Stripped you from the OWNER rank!"
  106.  
  107. command /check:
  108. trigger:
  109. send "&aSTAFF: &rOWNER(%{owner::*}%) ADMIN(%{admin::*}%)"
  110.  
  111. on damage:
  112. if {lobby} is true:
  113. victim do not have permission "skript.admin"
  114. cancel event
  115. on break:
  116. if {lobby} is true:
  117. player do not have permission "skript.admin"
  118. cancel event
  119. on place:
  120. if {lobby} is true:
  121. player do not have permission "skript.admin"
  122. cancel event
  123. on pick up:
  124. if {lobby} is true:
  125. player do not have permission "skript.admin"
  126. cancel event
  127. on hunger meter change:
  128. if {lobby} is true:
  129. player do not have permission "skript.admin"
  130. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement