SHARE
TWEET

Skript: AquaHatch: GENERAL

7mm Dec 8th, 2019 (edited) 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     OwnerUUID: "d94713f28c62-4252-8b0d-48b6-a181575b"
  3.  
  4. command /skr:
  5.     permission: skript.skr
  6.     trigger:
  7.         execute player command "skript reload scripts"
  8.  
  9. on join:
  10.     set {casino::player.%player%::stat::coin} to 3000 if {casino::player.%player%::stat::coin} is not set
  11.  
  12. every 2 ticks:
  13.     loop all players:
  14.         set action bar of loop-player to "&0&l所持コイン: %{casino::player.%loop-player%::stat::coin}%"
  15.  
  16. every 60 seconds:
  17.     add 1 to {teiki}
  18.     if {teiki} is 1:
  19.         broadcast "&a&l[定期] &e&l・コインが減る ・音が鳴る ・当たったときの報酬がもらえる"
  20.         broadcast "&6この3つを同時に満たさないことがあったらそれはバグなので報告お願いします"
  21.     else if {teiki} is 2:
  22.         broadcast "&b&l[定期] &f&l占拠せずちゃんと交代しましょう!!!!!"
  23.     else:
  24.         set {teiki} to 1
  25.         broadcast "&a&l[定期] &e&l・コインが減る ・音が鳴る ・当たったときの報酬がもらえる"
  26.         broadcast "&6この3つを同時に満たさないことがあったらそれはバグなので報告お願いします"
  27.  
  28. command /itemid:
  29.     permission: skript.itemid
  30.     trigger:
  31.         message "%type of player's held item%"
  32.  
  33. command /status [<text>] [<player>]:
  34.     aliases: /stat
  35.     trigger:
  36.         set {_arg2} to arg 2
  37.         set {_arg2} to player if arg 2 is not set
  38.         if arg 1 is "CASINO":
  39.             message "&0&l=============================="
  40.             message "&aSTATUS &7- &c&lCASINO"
  41.             message "&fPlayer name: &c%{_arg2}%"
  42.             message "&fCoin: &c%{casino::player.%{_arg2}%::stat::coin}%"
  43.         else:
  44.             message "&0&l=============================="
  45.             message "&aSTATUS &7- &b&lGENERAL"
  46.             message "&fPlayer name: &b%{_arg2}%"
  47.  
  48. command /casino.coin <player> <text>:
  49.     permission: casino.coin
  50.     trigger:
  51.         set {_quant} to substring of arg 2 from 2 to length of arg 2
  52.         set {_quant} to {_quant} parsed as integer
  53.         if first character of arg 2 is "+":
  54.             add {_quant} to {casino::player.%arg 1%::stat::coin}
  55.             message "&ecasino &7> &e%{_quant}%Coin &fあなたに追加されました" to arg 1
  56.         else if first character of arg 2 is "-":
  57.             remove {_quant} from {casino::player.%arg 1%::stat::coin}
  58.             message "&ecasino &7> &c%{_quant}%Coin &fあなたから取り上げられました" to arg 1
  59.         else:
  60.             set {casino::player.%arg 1%::stat::coin} to arg 2 parsed as integer
  61.             message "&ecasino &7> &fあなたの所持コイン量が &e%arg 2%Coin &fになりました" to arg 1
  62.  
  63. command /sudoonce <player> <text>:
  64.     permission: skript.sudoonce
  65.     trigger:
  66.         set {_commands::*} to arg 2 split by "{newline}"
  67.         loop {_commands::*}:
  68.             execute arg 1 command loop-value
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