yozora_1202

Untitled

Jul 28th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.54 KB | None | 0 0
  1. command /menu:
  2. trigger:
  3. open chest with 3 rows named "&e&lSurvival-Menus" to player
  4. wait 1 tick
  5. format slot 0 of player with grass named "&2&l初期スポーン" to close then run [execute console command "/tp %player% -607 5 401"]
  6. format slot 1 of player with beacon named "&1&lショップ" to close then run [execute console command "/tp %player% -617 6.5 349"]
  7. format slot 5 of player with diamond_block named "&b&lガチャエリア" to close then run [execute console command "/tp %player% -610 5 329"]
  8. format slot 19 of player with diamond_sword named "&c&lステータス" to close then run [make player execute "/status"]
  9.  
  10. on join:
  11. broadcast "&c[&e+&c]&e%player%"
  12.  
  13. on quit:
  14. broadcast "&c[&e-&c]&e%player%"
  15.  
  16. options:
  17. pointsadd: 1 #キルしたときポイントをどれだけ獲得するか指定できます
  18. pointsremove: 1 #デスしたときポイントをどれだけ失うかするか指定できます
  19. resetpermission: skript.status.reset #ステータスをリセットするのに必要なパーミッションを指定できます
  20. permission messagestats: &c[Error] &7You do not have the required permission to perform this command
  21.  
  22. variables:
  23. {status.kills.%player%} = 0
  24. {status.deaths.%player%} = 0
  25. {status.killstreak.%player%} = 0
  26. {points.%player%} = 0
  27. {second::%player%} = 0
  28. {minute::%player%} = 0
  29. {hour::%player%} = 0
  30.  
  31. command /status [<offline player>]:
  32. trigger:
  33. if arg-1 is not set:
  34. message "&2» &a&lStats &2&m-----*-------------------------*-----"
  35. message "&aKills: &f%{status.kills.%player%}%"
  36. message "&aDeaths: &f%{status.deaths.%player%}%"
  37. message "&aKDR: &f%{status.kills.%player%}/{status.deaths.%player%}%"
  38. message "&aKillstreak: &f%{status.killstreak.%player%}%"
  39. message "&aPoint: &f%{points.%player%}%"
  40. message "&aLoginTime: &f%{hour::%player%}% h, %{minute::%player%}% m, %{second::%player%}% s,"
  41. message "&2&m----*---------------------------------*-----"
  42. else:
  43. if player have permission "stats.others.sk":
  44. set {_player} to arg-1
  45. wait 1 tick
  46. if {_player} has played on this server before:
  47. message "&2» &a&lStats &2&m-----*-------------------------*-----"
  48. message "&aPlayer: &f%{_player}%"
  49. message "&aKills: &f%{status.kills.%{_player}%}%"
  50. message "&aDeaths: &f%{status.deaths.%{_player}%}%"
  51. message "&aKDR: &f%{status.kills.%{_player}%}/{status.deaths.%{_player}%}%"
  52. message "&aKillstreak: &f%{status.killstreak.%{_player}%}%"
  53. message "&aPoint: &f%{points.%{_player}%}%"
  54. message "&aLoginTime: &f%{hour::%{_player}%}% h, %{minute::%{_player}%}% m, %{second::%{_player}%}% s,"
  55. message "&2&m----*---------------------------------*-----"
  56. else:
  57. message "&7&l<< &4&lError&7&l >> &r&6&l%{_player}% &chas never been on this server before"
  58. else:
  59. message "&7&l<< &4&lError&7&l >> &r&cYou do not have the required permission to perform this command"
  60.  
  61. command resetstats [<offline player>]:
  62. permission: {@pesetpermission}
  63. permission message: {@permission messagestats}
  64. trigger:
  65. if arg-1 is not set:
  66. message "&c/restatus <Player>"
  67. else:
  68. set {_player} to arg-1
  69. wait 1 tick
  70. if {_player} has played on this server before:
  71. set {status.kills.%{_player}%} to 0
  72. set {status.deaths.%{_player}%} to 0
  73. set {status.killstreak.%{_player}%} to 0
  74. set {points.%{_player}%} to 0
  75. message "&f%{_player}%のステータスをリセットしました"
  76. else:
  77. message "&7&l<< &4&lError&7&l >> &r&6&l%{_player}% &chas never been on this server before"
  78.  
  79. on death:
  80. victim is a player:
  81. attacker is a player:
  82. add 1 to {status.kills.%attacker%}
  83. add 1 to {status.killstreak.%attacker%}
  84. add {@pointsadd} to {points.%attacker%}
  85. add 1 to {status.deaths.%victim%}
  86. set {status.killstreak.%victim%} to 0
  87. remove {@pointsremove} from {points.%player%}
  88.  
  89. on quit:
  90. set {status.killstreak.%player%} to 0
  91.  
  92. every second:
  93. loop all players:
  94. add 1 to {second::%loop-player%}
  95. if {second::%loop-player%} is 60:
  96. subtract 60 from {second::%loop-player%}
  97. add 1 to {minute::%loop-player%}
  98. if {minute::%loop-player%} is 60:
  99. subtract 60 from {minute::%loop-player%}
  100. add 1 to {hour::%loop-player%}
  101.  
  102. command /rule:
  103. trigger:
  104. send "&cOPkrkr禁止!!"
  105. send "&a忙しい時もあります:&e質問を受け付けないときもあります"
  106. send "&a荒らしは&c&l絶対禁止&f&a!!"
  107. send "&a楽しいRPG生活を!!&8:&eMenuでメニューを開けます!"
  108.  
  109. #-------------------+
  110. # Skript: SpyCmds |
  111. # Auteur: TDK DEV |
  112. # Version: 1.0 |
  113. #-------------------+
  114.  
  115. #Permission: spycmds.toggle
  116.  
  117. on command:
  118. if command's executor is a player:
  119. set {_command} to "%full command%"
  120. loop {SpyCmds.command::*}:
  121. if loop-value is player:
  122. stop trigger
  123. else:
  124. send "&6[&3コマンド監視システム&6] &e%player%がコマンドを実行: &5/%{_command}%" to loop-value
  125. else:
  126. stop trigger
  127.  
  128. command /cmd:
  129. permission: spycmds.toggle
  130. trigger:
  131. if {Commands.Enabled.%player%} is 1:
  132. remove player from {SpyCmds.command::*}
  133. message "&6[&3コマンド監視システム&6] &cMode OFF"
  134. delete {Commands.Enabled.%player%}
  135. stop
  136. if {Commands.Enabled.%player%} is not set:
  137. add player to {SpyCmds.command::*}
  138. set {Commands.Enabled.%player%} to 1
  139. message "&6[&3コマンド監視システム&6] &aMode ON"
  140. stop
  141. else:
  142. add player to {SpyCmds.command::*}
  143. set {Commands.Enabled.%player%} to 1
  144. message "&6[&3コマンド監視システム&6] &aMode ON"
  145.  
  146. on explode:
  147. cancel event
  148.  
  149. on craft:
  150. player do not have permission "skript.craft"
  151. cancel event
  152.  
  153. #+------------------------------------------------------+
  154. #| PlayerCommandLog |
  155. #+------------------------------------------------------+
  156. #
  157.  
  158.  
  159. options:
  160. prefix: &b&l[&7&l>>&e&lcmd-log&7&l<<<&b&l]&a&l
  161. on command:
  162. loop all players:
  163. if loop-player has permission "sk.admin":
  164. if {log.%loop-player%} is not set:
  165. set {log.%loop-player%} to true
  166. if {log.%loop-player%} is true:
  167. if player is not set:
  168. stop
  169. message " {@prefix} &7%player%: /%full command%" to loop-player
  170. command /cmd [<text>]:
  171. permission: sk.cmd
  172. trigger:
  173. if arg-1 is set:
  174. if arg-1 is "on":
  175. set {log.%player%} to true
  176. message " {@prefix}&7Log表示を&aon&7にしました。"
  177. stop
  178. if arg-1 is "off":
  179. set {log.%player%} to false
  180. message " {@prefix}&7Log表示を&coff&7にしました。"
  181. stop
  182. else:
  183. message "{@prefix}&7/cmd <on,off>"
  184. #Ip-Checker#
  185. #指定したプレイヤーのipをチェックします。同一のIPがあった場合、そのプレイヤーのIDも表示されます。#
  186. command /aip [<offline player>]:
  187. permission: Command.IP
  188. permission message: &cパーミッションがありません。
  189. trigger:
  190. if arg is not set:
  191. message "&a[IP-log]&ePlayer名を記入してください。"
  192. stop
  193. if arg is "all":
  194. loop all players:
  195. set {ip::%loop-player%} to ip of loop-player
  196. message "&a[IP-log]&b---------------------------------------------"
  197. message "&a[IP-log]&e%loop-player%'sIP&a: &6%{ip::%loop-player%}%" to player
  198. loop {ip::*}:
  199. if {ip::%loop-index%} is {ip::%loop-player%}:
  200. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
  201. else:
  202. set {ip::%arg%} to ip of argument
  203. message "&a[IP-log]&e%arg%'sIP&a: &6%{ip::%arg%}%"
  204. loop {ip::*}:
  205. if {ip::%loop-index%} is {ip::%arg%}:
  206. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%"
  207. on join:
  208. set {ip::%player%} to ip of player
  209. loop all players:
  210. if loop-player has permission "sk.admin":
  211. message "&a[IP-log]&e%player%'sIP&a: &6%{ip::%player%}%" to loop-player
  212. loop {ip::*}:
  213. if {ip::%loop-index%} is {ip::%player%}:
  214. message "&a[IP-log]&e同じIPを使用しているPlayer&a: &6%loop-index%" to loop-player
  215. command /aipreset [<offline player>]:
  216. permission: command.ip.reset
  217. trigger:
  218. send "&c%arg%さんのIP&a: &e%{ip::%arg%}% &cをリセットしました"
  219. clear {ip::%arg%}
Add Comment
Please, Sign In to add comment