SHARE
TWEET

[Skript]・Rank/Mute

K2Rk1o Jan 15th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #===============================================================#
  2. #-Chat-                                                         #
  3. #===============================================================#
  4.  
  5. on chat:
  6.     cancel event
  7.     if {mute::%uuid of player%} is set:
  8.         {mute::%uuid of player%} is true
  9.         send "あなたは発言できません。+1 ban " to player
  10.         add 1 to {checkchat::%player%}
  11.         stop  
  12.     if {prefix::%uuid of player%} is set:
  13.         if {suffix::%uuid of player%} is set:
  14.             broadcast "&8≫&a&lチャット &7≫%{prefix::%uuid of player%}% &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  15.         else:
  16.             broadcast "&8≫&a&lチャット &7≫%{prefix::%uuid of player%}% &f%player%&a: &f&l%message%"
  17.     else:
  18.         if {suffix::%uuid of player%} is set:
  19.             broadcast "&8≫&a&lチャット &7≫ &f%player% %{suffix::%uuid of player%}%&a: &f&l%message%"
  20.         else:
  21.             broadcast "&8≫&a&lチャット &7≫ &f%player%&a: &f&l%message%"
  22.  
  23. #===============================================================#
  24. #-Mute-
  25. #===============================================================#  
  26.  
  27. on chat:
  28.     if {mute::%uuid of player%} is true:
  29.         if {checkchat::%player%} is more than 5:
  30.             broadcast "%player% SPAM:"
  31.             set {checkchat::%player%} to 0
  32.             stop
  33.        
  34.  
  35.  
  36. command /mute [<offline player>] [<text>] :
  37.     permission: skript
  38.     trigger:
  39.         if arg-1 is set:
  40.             if arg-2 is set:
  41.                 set {mute::%uuid of arg-1%} to true
  42.                 broadcast "%arg-1%&6が%player%&cによってミュートされました"
  43.                 broadcast "理由: %arg-2% "
  44.         if arg-1 is not set:
  45.             send "使い方: /mute k2R_Options うるさい"
  46.  
  47. command /mute-check [<offline player>]:
  48.     trigger:
  49.         send "MUTE: %arg-1% %{mute::%uuid of arg-1%}%"
  50.  
  51. command /unmute [<offline player>] [<text>]:
  52.     permission: skript
  53.     trigger:
  54.         if arg-1 is set:
  55.             if arg 2 is set:
  56.                 set {mute::%uuid of arg-1%} to false
  57.                 broadcast "%arg-1%&6は&c%player%によってミュート解除されました"
  58.                 broadcast "理由: %arg-2% "
  59.         if arg-1 is not set:
  60.             send "使い方: /unmute k2R_Options 大好き"
  61.  
  62.  
  63. #===============================================================#
  64. #-Rank-Set-
  65. #===============================================================#  
  66.  
  67. command /prefix [<offline player>] [<text>]:
  68.     permission: skript
  69.     permission message: あなたは権限を持っていません。
  70.     trigger:
  71.         set {prefix::%uuid of arg-1%} to colored arg-2
  72.         send "&b%arg 1% の前を %colored arg 2% &bにしました!"
  73.  
  74. command /clearprefix [<offline player>]:
  75.     permission: skript
  76.     permission message: あなたは権限を持っていません。
  77.     trigger:
  78.         clear {prefix::%uuid of arg-1%}
  79.         send "&b%arg 1% の称号をリセットしました。"
  80.  
  81. command /suffix [<offline player>] [<text>]:
  82.     permission: skript
  83.     permission message: あなたは権限を持っていません。
  84.     trigger:
  85.         set {suffix::%uuid of arg-1%} to coloured arg-2
  86.         send "&b%arg 1% の称号を%colored arg 2% &bにしました!"
  87.  
  88. command /clearsuffix [<offline player>]:
  89.     permission: skript
  90.     permission message: あなたは権限を持っていません。
  91.     trigger:
  92.         clear {suffix::%uuid of arg-1%}
  93.         send "&b%arg 1% の称号をリセットしました。"
  94.  
  95. command /prefixhelp:
  96.     permission: skript
  97.     permission message: あなたは権限を持っていません。
  98.     trigger:
  99.         send "&b&m================================="
  100.         send "&b&lPREFIX &eSKRIPT Version:1.12.2   "
  101.         send "&b&l/prefix (名前) (称号)             "
  102.         send "&b&l/clearprefix (名前)               "
  103.         send "&b&l/suffix (名前) (称号)          "
  104.         send "&b&l/clearsuffix (名前)"
  105.         send "&b&m================================="
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