SHARE
TWEET

kitSkript

K2Rk1o Jan 1st, 2019 (edited) 28 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #===============================================================#
  2. #-KitPvpSkript-
  3. #===============================================================#
  4. #・レベルシステム/KitEditシステム/Rankシステム/
  5. #===============================================================#
  6. #-variables-
  7. #===============================================================#
  8. variables:
  9.     {lv::%player%} = 1
  10.     {xp::%player%} = 0
  11.     {up::%player%} = 25
  12.     {gold::%player%} = 0
  13.  
  14.  
  15. #===============================================================#
  16. #-Config-
  17. #===============================================================#
  18. options:
  19.     mute: &6[&5Mute&6]
  20.  
  21.  
  22.  
  23. #===============================================================#
  24. #-Sidebar-
  25. #===============================================================#
  26. every 2 second:
  27.     loop all players:
  28.         wipe loop-player's sidebar
  29.         set name of sidebar of loop-player to " &d>>&d&lKit Pvp&d<<"
  30.         set score "&l>> &3&l&oステータス &f&l<<" in sidebar of loop-player to 16
  31.         set score "&a" in sidebar of loop-player to 15
  32.         set score "&d&lLevel&f&l: &e&l%{lv::%loop-player%}%" in sidebar of loop-player to 14
  33.         set score "&a&lExp&f&l: &e&l%{xp::%loop-player%}%&7&l/&e&l%{up::%loop-player%}%" in sidebar of loop-player to 13
  34.         set score "&6&lGold&f&l: &e&l%{gold::%loop-player%}%" in sidebar of loop-player to 12
  35.         set score "&e" in sidebar of loop-player to 11
  36.         set score "&b&l" in sidebar of loop-player to 10
  37.         set score "&f" in sidebar of loop-player to 9
  38.         set score "&c&lランク&a: &7&l%{prefix::%uuid of loop-player%}%" in sidebar of loop-player to 8
  39.         set score "&6&l" in sidebar of loop-player to 7
  40.         set score "" in sidebar of loop-player to 6
  41.         set score "&l>> &3&l&oニュース &f&l<<" in sidebar of loop-player to 5
  42.         set score "&7" in sidebar of loop-player to 4
  43.         set score " %{sidebar}%" in sidebar of loop-player to 3
  44.         set score "&d" in sidebar of loop-player to 2
  45.  
  46. command /news-set <text>:
  47.     permission: admin
  48.     trigger:
  49.         if arg 1 is set:
  50.             set {sidebar} to colored arg-1
  51.         if arg 1 is not set:
  52.             stop
  53. #===============================================================#
  54. #-Rank-Create-
  55. #===============================================================#
  56.  
  57. on chat:
  58.     cancel event
  59.     if {mute::%uuid of player%} is set:
  60.         {mute::%uuid of player%} is true
  61.         send "{@mute} &5あなたは発言できません。" to player
  62.         add 1 to {checkchat::%player%}
  63.         stop  
  64.     if {prefix::%uuid of player%} is set:
  65.         if {suffix::%uuid of player%} is set:
  66.             broadcast "&8≫&a&lチャット &7≫%{prefix::%uuid of player%}% &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  67.         else:
  68.             broadcast "&8≫&a&lチャット &7≫%{prefix::%uuid of player%}% &f%player%&a: &f&l%message%"
  69.     else:
  70.         if {suffix::%uuid of player%} is set:
  71.             broadcast "&8≫&a&lチャット &7≫ &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  72.         else:
  73.             broadcast "&8≫&a&lチャット &7≫ &f%player%&a: &f&l%message%"
  74.    
  75.  
  76. on chat:
  77.     if {mute::%uuid of player%} is true:
  78.         if {checkchat::%player%} is more than 5:
  79.             broadcast "{@mute} &6%player%をKickしました。 "
  80.             kick the player
  81.             stop
  82.  
  83. command /mute [<offline player>] [<text>]:
  84.     permission: admin
  85.     trigger:
  86.         if arg-1 is set:
  87.             if arg-2 is set:
  88.                 set {mute::%uuid of arg-1%} to true
  89.                 broadcast "%arg-1%&6が%player%&cによってミュートされました"
  90.                 broadcast "理由: %arg-2% "
  91.         if arg-1 is not set:
  92.             send "使い方: /mute k2R_Options うるさい"
  93.  
  94. command /mute-check [<offline player>]:
  95.     trigger:
  96.         send "MUTE: %arg-1% %{mute::%uuid of arg-1%}%"
  97.  
  98. command /unmute [<offline player>] [<text>]:
  99.     permission: admin
  100.     trigger:
  101.         if arg-1 is set:
  102.             if arg 2 is set:
  103.                 set {mute::%uuid of arg-1%} to false
  104.                 broadcast "%arg-1%&6は&c%player%によってミュート解除されました"
  105.                 broadcast "理由: %arg-2% "
  106.                 set {}
  107.         if arg-1 is not set:
  108.             send "使い方: /unmute k2R_Options 大好き"
  109.  
  110.  
  111. command /prefix [<offline player>] [<text>]:
  112.     permission: admin
  113.     permission message: あなたは権限を持っていません。
  114.     trigger:
  115.         set {prefix::%uuid of arg-1%} to colored arg-2
  116.         send "&b%arg 1% の前を %colored arg 2% &bにしました!"
  117.  
  118. command /clearprefix [<offline player>]:
  119.     permission: admin
  120.     permission message: あなたは権限を持っていません。
  121.     trigger:
  122.         clear {prefix::%uuid of arg-1%}
  123.         send "&b%arg 1% の称号をリセットしました。"
  124.  
  125. command /suffix [<offline player>] [<text>]:
  126.     permission: admin
  127.     permission message: あなたは権限を持っていません。
  128.     trigger:
  129.         set {suffix::%uuid of arg-1%} to coloured arg-2
  130.         send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
  131.  
  132. command /clearsuffix [<offline player>]:
  133.     permission: admin
  134.     permission message: あなたは権限を持っていません。
  135.     trigger:
  136.         clear {suffix::%uuid of arg-1%}
  137.         send "&b%arg 1% の称号をリセットしました。"
  138.  
  139. command /prefixhelp:
  140.     permission: skript.admin
  141.     permission message: あなたは権限を持っていません。
  142.     trigger:
  143.         send "&6&m================================="
  144.         send "&b&lPREFIX &eSKRIPT    "
  145.         send "&e&l/prefix (名前) (称号)             "
  146.         send "&e&l/clearprefix (名前)               "
  147.         send "&e&l/suffix (名前) (称号)          "
  148.         send "&e&l/clearsuffix (名前)"
  149.         send "&b&l/mute (名前) (理由)"
  150.         send "&b&l/unmute (名前) (理由)"
  151.         send "&b&l/mute-check (名前)"
  152.         send "&6&m================================="
  153. #===============================================================#
  154. #-DontEdit-
  155. #===============================================================#
  156. command /kitedit <text>:
  157.     permission: admin
  158.     trigger:
  159.         if arg 1 is "1":
  160.             add player's tool to {kit1::*}
  161.         if arg 1 is "2":
  162.             add player's tool to {kit2::*}
  163.         if arg 1 is "3":
  164.             add player's tool to {kit3::*}
  165.         if arg 1 is "4":
  166.             add player's tool to {kit4::*}
  167.         if arg 1 is "5":
  168.             add player's tool to {kit5::*}
  169.         if arg 1 is "6":
  170.             add player's tool to {kit6::*}
  171.         if arg 1 is "7":
  172.             add player's tool to {kit7::*}
  173.         if arg 1 is "8":
  174.             add player's tool to {kit8::*}
  175.  
  176. command /kitremove <text>:
  177.     permission: admin
  178.     trigger:
  179.         if arg 1 is "1":
  180.             if player's tool is not set:
  181.                 message "&b消すアイテムを持ってください"
  182.                 stop
  183.             if player's tool is set:
  184.                 remove player's tool from {kit1::*}
  185.                 send "&b削除しました。"
  186.         if arg 1 is "2":
  187.             if player's tool is not set:
  188.                 message "&b消すアイテムを持ってください"
  189.                 stop
  190.             if player's tool is set:
  191.                 remove player's tool from {kit2::*}
  192.                 send "&b削除しました。"
  193.         if arg 1 is "3":
  194.             if player's tool is not set:
  195.                 message "&b消すアイテムを持ってください"
  196.                 stop
  197.             if player's tool is set:
  198.                 remove player's tool from {kit3::*}
  199.                 send "&b削除しました。"
  200.         if arg 1 is "4":
  201.             if player's tool is not set:
  202.                 message "&b消すアイテムを持ってください"
  203.                 stop
  204.             if player's tool is set:
  205.                 remove player's tool from {kit4::*}
  206.                 send "&b削除しました。"
  207.         if arg 1 is "5":
  208.             if player's tool is not set:
  209.                 message "&b消すアイテムを持ってください"
  210.                 stop
  211.             if player's tool is set:
  212.                 remove player's tool from {kit5::*}
  213.                 send "&b削除しました。"
  214.         if arg 1 is "1":
  215.             if player's tool is not set:
  216.                 message "&b消すアイテムを持ってください"
  217.                 stop
  218.             if player's tool is set:
  219.                 remove player's tool from {kit1::*}
  220.                 send "&b削除しました。"
  221.         if arg 1 is "6":
  222.             if player's tool is not set:
  223.                 message "&b消すアイテムを持ってください"
  224.                 stop
  225.             if player's tool is set:
  226.                 remove player's tool from {kit6::*}
  227.                 send "&b削除しました。"
  228.         if arg 1 is "7":
  229.             if player's tool is not set:
  230.                 message "&b消すアイテムを持ってください"
  231.                 stop
  232.             if player's tool is set:
  233.                 remove player's tool from {kit7::*}
  234.                 send "&b削除しました。"
  235.         if arg 1 is "8":
  236.             if player's tool is not set:
  237.                 message "&b消すアイテムを持ってください"
  238.                 stop
  239.             if player's tool is set:
  240.                 remove player's tool from {kit8::*}
  241.                 send "&b削除しました。"
  242.  
  243.  
  244. command /kitopen <text>:
  245.     permission: admin
  246.     trigger:
  247.         if arg 1 is "1":
  248.             open chest with 6 rows named "Kit-1" to player
  249.             set {_slot} to 0
  250.             loop {kit1::*}:
  251.                 set slot {_slot} of player's current inventory to loop-value
  252.                 add 1 to {_slot}
  253.         if arg 1 is "2":
  254.             open chest with 6 rows named "Kit-2" to player
  255.             set {_slot} to 0
  256.             loop {kit2::*}:
  257.                 set slot {_slot} of player's current inventory to loop-value
  258.                 add 1 to {_slot}
  259.         if arg 1 is "3":
  260.             open chest with 6 rows named "Kit-3" to player
  261.             set {_slot} to 0
  262.             loop {kit3::*}:
  263.                 set slot {_slot} of player's current inventory to loop-value
  264.                 add 1 to {_slot}
  265.         if arg 1 is "4":
  266.             open chest with 6 rows named "Kit-4" to player
  267.             set {_slot} to 0
  268.             loop {kit4::*}:
  269.                 set slot {_slot} of player's current inventory to loop-value
  270.                 add 1 to {_slot}
  271.         if arg 1 is "5":
  272.             open chest with 6 rows named "Kit-5" to player
  273.             set {_slot} to 0
  274.             loop {kit5::*}:
  275.                 set slot {_slot} of player's current inventory to loop-value
  276.                 add 1 to {_slot}
  277.         if arg 1 is "6":
  278.             open chest with 6 rows named "Kit-6" to player
  279.             set {_slot} to 0
  280.             loop {kit6::*}:
  281.                 set slot {_slot} of player's current inventory to loop-value
  282.                 add 1 to {_slot}
  283.         if arg 1 is "7":
  284.             open chest with 6 rows named "Kit-7" to player
  285.             set {_slot} to 0
  286.             loop {kit7::*}:
  287.                 set slot {_slot} of player's current inventory to loop-value
  288.                 add 1 to {_slot}
  289.         if arg 1 is "8":
  290.             open chest with 6 rows named "Kit-8" to player
  291.             set {_slot} to 0
  292.             loop {kit8::*}:
  293.                 set slot {_slot} of player's current inventory to loop-value
  294.                 add 1 to {_slot}
  295.  
  296.  
  297. command /kitget <text>:
  298.     trigger:
  299.         if arg 1 is "1":
  300.             give {kit1::*} to player
  301.         if arg 1 is "2":
  302.             give {kit2::*} to player
  303.         if arg 1 is "3":
  304.             give {kit3::*} to player
  305.         if arg 1 is "4":
  306.             give {kit4::*} to player
  307.         if arg 1 is "5":
  308.             give {kit5::*} to player
  309.         if arg 1 is "6":
  310.             give {kit6::*} to player
  311.         if arg 1 is "7":
  312.             give {kit7::*} to player
  313.         if arg 1 is "8":
  314.             give {kit8::*} to player
  315.  
  316. command /purchase-kit <text>:
  317.     trigger:
  318.         if arg 1 is "1":
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top