SHARE
TWEET

IY-Core.sk v1.2

IchinoseYuki Feb 14th, 2020 (edited) 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Written by IchinoseYuki (Discord:一ノ瀬雪#1027)
  2.  
  3. on script load:
  4.     broadcast "&e&l&k|||&9&l[&b&lIchinoseYuki Skript - Core System&9&l]&e&l&k|||&r &7Ver.1.2"
  5.  
  6. on connect:
  7.     set {IY::whois::%uuid of player%} to player
  8.     set {IY::whois::%player%} to uuid of player
  9.     {IY::config::%uuid of player%::language} is not set
  10.     set {IY::config::%uuid of player%::language} to {IY::config::default::language}
  11.     {IY::config::default::language} is not set
  12.     set {IY::config::%uuid of player%::language} to "en"
  13.     player's current language is "ja_jp"
  14.     set {IY::config::%uuid of player%::language} to "ja"
  15.  
  16. on command:
  17.     sender is CONSOLE
  18.     {IY::config::%uuid of player%::language} is not set
  19.     set {IY::config::%uuid of player%::language} to {IY::config::default::language}
  20.     set {IY::config::%uuid of player%::language} to "en" if {IY::config::default::language} is not set
  21.  
  22. command /config [<string>]:
  23.     aliases: /c, /cf, /cfg
  24.     trigger:
  25.         if arg is set:
  26.             if player doesn't have permission "skript.iy.config":
  27.                 send "&4Error: &rYou don't have permission." if {IY::config::%uuid of player%::language} is "en"
  28.                 send "&4失敗: &rそのコマンドを使用する権限がありません。" if {IY::config::%uuid of player%::language} is "ja"
  29.                 stop
  30.             if arg is not "default" or "dflt" or "df" or "d":
  31.                 send "&4Error: &rIncorrect argument for command.%nl%&0:      &7/config &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "en"
  32.                 send "&4失敗: &rコマンドの引数の指定が間違っています。%nl%&0:      &7/config &c&n%arg-1%" if {IY::config::%uuid of player%::language} is "ja"
  33.                 stop
  34.             open chest with 1 row named "Config -Default-" to player if {IY::config::%uuid of player%::language} is "en"
  35.             open chest with 1 row named "詳細設定 -デフォルト-" to player if {IY::config::%uuid of player%::language} is "ja"
  36.             wait a tick
  37.             if {IY::config::%uuid of player%::language} is "en":
  38.                 set slot 4 of player's current inventory to player head item with nbt "{SkullOwner:{Id:""3c30484a-76d3-4cfe-88e5-e7599bc9ac4d"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGNhYzk3NzRkYTEyMTcyNDg1MzJjZTE0N2Y3ODMxZjY3YTEyZmRjY2ExY2YwY2I0YjM4NDhkZTZiYzk0YjQifX19""}]}}}" named "&eEnglish" with lore "&7Click to change." if {IY::config::default::language} is "en"
  39.                 set slot 4 of player's current inventory to player head item with nbt "{SkullOwner:{Id:""6a140d7c-ecaf-48ec-879b-3da8d7f1d316"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDY0MGFlNDY2MTYyYTQ3ZDNlZTMzYzQwNzZkZjFjYWI5NmYxMTg2MGYwN2VkYjFmMDgzMmM1MjVhOWUzMzMyMyJ9fX0=""}]}}}" named "&eJapanese" with lore "&7Click to change." if {IY::config::default::language} is "ja"
  40.                 set slot 4 of player's current inventory to player head item with nbt "{SkullOwner:{Id:""7d0630c3-23bf-4e0b-b4ad-b4f5bef7b97f"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZmYzk3N2NjN2UxMGU1NjRhMDk2MzhhNTNiYmM0YzU0YzljOGRhYzc0NTBiYTNkZmEzYzkwOTlkOTRmNSJ9fX0=""}]}}}" named "&eUnset" with lore "&7Click to change." if {IY::config::default::language} is not set
  41.             if {IY::config::%uuid of player%::language} is "ja":
  42.                 set slot 4 of player's current inventory to player head item with nbt "{SkullOwner:{Id:""3c30484a-76d3-4cfe-88e5-e7599bc9ac4d"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGNhYzk3NzRkYTEyMTcyNDg1MzJjZTE0N2Y3ODMxZjY3YTEyZmRjY2ExY2YwY2I0YjM4NDhkZTZiYzk0YjQifX19""}]}}}" named "&e英語" with lore "&7クリックで変更" if {IY::config::default::language} is "en"
  43.                 set slot 4 of player's current inventory to player head item with nbt "{SkullOwner:{Id:""6a140d7c-ecaf-48ec-879b-3da8d7f1d316"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDY0MGFlNDY2MTYyYTQ3ZDNlZTMzYzQwNzZkZjFjYWI5NmYxMTg2MGYwN2VkYjFmMDgzMmM1MjVhOWUzMzMyMyJ9fX0=""}]}}}" named "&e日本語" with lore "&7クリックで変更" if {IY::config::default::language} is "ja"
  44.                 set slot 4 of player's current inventory to player head item with nbt "{SkullOwner:{Id:""7d0630c3-23bf-4e0b-b4ad-b4f5bef7b97f"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2ZmYzk3N2NjN2UxMGU1NjRhMDk2MzhhNTNiYmM0YzU0YzljOGRhYzc0NTBiYTNkZmEzYzkwOTlkOTRmNSJ9fX0=""}]}}}" named "&e未設定" with lore "&7クリックで変更" if {IY::config::default::language} is not set
  45.             stop
  46.         open chest with 1 row named "Config" to player if {IY::config::%uuid of player%::language} is "en"
  47.         open chest with 1 row named "詳細設定" to player if {IY::config::%uuid of player%::language} is "ja"
  48.         wait a tick
  49.         set slot 4 of player's current inventory to player head item with nbt "{SkullOwner:{Id:""3c30484a-76d3-4cfe-88e5-e7599bc9ac4d"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGNhYzk3NzRkYTEyMTcyNDg1MzJjZTE0N2Y3ODMxZjY3YTEyZmRjY2ExY2YwY2I0YjM4NDhkZTZiYzk0YjQifX19""}]}}}" named "&eEnglish" with lore "&7Click to change." if {IY::config::%uuid of player%::language} is "en"
  50.         set slot 4 of player's current inventory to player head item with nbt "{SkullOwner:{Id:""6a140d7c-ecaf-48ec-879b-3da8d7f1d316"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDY0MGFlNDY2MTYyYTQ3ZDNlZTMzYzQwNzZkZjFjYWI5NmYxMTg2MGYwN2VkYjFmMDgzMmM1MjVhOWUzMzMyMyJ9fX0=""}]}}}" named "&e日本語" with lore "&7クリックで変更" if {IY::config::%uuid of player%::language} is "ja"
  51.  
  52. on tab complete:
  53.     set {_args::*} to substring of event-string from 2 to length of event-string split at " "
  54.     {_args::1} is "config" or "c" or "cf" or "cfg"
  55.     if size of {_args::*} is 2:
  56.         set {_comp::*} to "default"
  57.         loop {_comp::*}:
  58.             set {_size} to length of {_args::2}
  59.             if the first {_size} characters of {_args::2} is the first {_size} characters of loop-value:
  60.                 add loop-value to completions
  61.         if the first 1 characters of {_args::2} is not set:
  62.             add "default" to completions
  63.  
  64. on inventory click:
  65.     name of current inventory is "Config" or "詳細設定"
  66.     clicked item is set
  67.     play sound "block.lever.click" with volume 0.5 and pitch 1.5 at player for player
  68.     if clicked slot is 4:
  69.         if {IY::config::%uuid of player%::language} is "en":
  70.             set {IY::config::%uuid of player%::language} to "ja"
  71.         else:
  72.             set {IY::config::%uuid of player%::language} to "en"
  73.         execute player command "/config"
  74.        
  75. on inventory click:
  76.     name of current inventory is "Config -Default-" or "詳細設定 -デフォルト-"
  77.     clicked item is set
  78.     play sound "block.lever.click" with volume 0.5 and pitch 1.5 at player for player
  79.     if clicked slot is 4:
  80.         if {IY::config::default::language} is "en":
  81.             set {IY::config::default::language} to "ja"
  82.         else if {IY::config::default::language} is "ja":
  83.             clear {IY::config::default::language}
  84.         else:
  85.             set {IY::config::default::language} to "en"
  86.         execute player command "/config default"
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