Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[mode] がtrue = おにごっこ false = ふえおに
- options:
- s: &3[おにごっこ]&6
- command /jks:
- permission: skript.admin
- trigger:
- if {opjoin} is true:
- loop all players:
- add loop-player to {allplayer::*}
- loop {allplayer::*}:
- add 1 to {member}
- set {oni} to random player of {allplayer::*}
- remove {oni} from {allplayer::*}
- broadcast "{@s} おには&c&l""%{oni}%""&6です!"
- if {oni2} is set:
- broadcast "{@s} おには&c&l""%{oni2}%""&6です!"
- loop {allplayer::*}:
- execute console command "/nte player %{allplayer::%loop-index%}% prefix &a"
- execute console command "/nte player %{oni}% prefix &c"
- stop
- if {opjoin} is false:
- loop all players:
- if loop-player do not have permission "skript.admin":
- add loop-player to {allplayer::*}
- loop {allplayer::*}:
- add 1 to {member}
- set {oni} to random player of {allplayer::*}
- remove {oni} from {allplayer::*}
- broadcast "{@s} おには&c&l""%{oni}%""&6です!"
- loop {allplayer::*}:
- execute console command "/nte player %{allplayer::%loop-index%}% prefix &a"
- execute console command "/nte player %{oni}% prefix &c"
- stop
- else if {opjoin} is not set:
- loop all players:
- add loop-player to {allplayer::*}
- loop {allplayer::*}:
- add 1 to {member}
- set {oni} to random player of {allplayer::*}
- remove {oni} from {allplayer::*}
- broadcast "{@s} おには&c&l""%{oni}%""&6です!"
- if {oni2} is set:
- broadcast "{@s} おには&c&l""%{oni2}%""&6です!"
- loop {allplayer::*}:
- execute console command "/nte player %{allplayer::%loop-index%}% prefix &a"
- execute console command "/nte player %{oni}% prefix &c"
- stop
- command /players:
- trigger:
- message "&a参加者%{allplayer::*}%"
- message "&cおに%{oni}%"
- command /opjoin:
- permission: skript.admin
- trigger:
- if {opjoin} is not set:
- set {opjoin} to false
- broadcast "{@s} OPの参加を&c無効&6にしました"
- stop
- if {opjoin} is true:
- set {opjoin} to false
- broadcast "{@s} OPの参加を&c無効&6にしました"
- stop
- if {opjoin} is false:
- set {opjoin} to true
- broadcast "{@s} OPの参加を&a有効&6にしました"
- stop
- command /oni [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is not set:
- broadcast "{@s} ゲームのモードを""&1鬼ごっこ""&6にしました"
- set {mode} to true
- stop
- if arg 1 is "default":
- broadcast "{@s} ゲームのモードを""&1鬼ごっこ""&6にしました"
- set {mode} to true
- stop
- if arg 1 is "hue":
- broadcast "{@s} ゲームモードを""&3増え鬼""&6にしました"
- set {mode} to false
- stop
- command /start:
- permission: skript.admin
- trigger:
- execute console command "/jks"
- wait 1 seconds
- if {member} is 0 or 1:
- broadcast "{@s} 人数が足りないよ!"
- execute console command "/stopgame"
- stop
- set {game} to true
- wait 3 seconds
- if {mode} is true:
- broadcast "{@s} &c鬼ごっこ&6を開始します!"
- if {mode} is false:
- broadcast "{@s} &d増え鬼&6を開始します!"
- teleport {allplayer::*} to {map1}
- execute console command "/rs"
- wait 2 seconds
- broadcast "{@s} 10秒後に鬼が出現します!"
- wait 5 seconds
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- broadcast "&65"
- wait 1 seconds
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- broadcast "&64"
- wait 1 seconds
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- broadcast "&63"
- wait 1 seconds
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- broadcast "&62"
- wait 1 seconds
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- broadcast "&61"
- wait 1 seconds
- execute console command "/playsound item.totem.use master @a ~ ~ ~ 1 1 1"
- broadcast "{@s} 鬼が出現しました"
- teleport {oni} to {map1}
- give feather named "&6高速移動物" to {oni}
- if {mode} is true: #おにごっこルート
- set {onigo1} to true
- wait 30 seconds
- broadcast "{@s} 残り30秒!!"
- wait 20 seconds
- broadcast "{@s} 残り10秒!!"
- wait 4 seconds
- broadcast "{@s} 残り5秒!!"
- wait 1 seconds
- broadcast "{@s} 5"
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- wait 1 seconds
- broadcast "{@s} 4"
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- wait 1 seconds
- broadcast "{@s} 3"
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- wait 1 seconds
- broadcast "{@s} 2"
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- wait 1 seconds
- broadcast "{@s} 1"
- execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
- wait 1 seconds
- broadcast "{@s} 終了!!"
- execute console command "/result"
- stop
- if {mode} is false:
- if {member} is 2 or 3 or 4:
- if {1m1} is false:
- set {1m1} to true
- if {1m1} is true:
- set {1m2} to true
- set {1m1} to false
- message "&7[Debug] &6変数1m2 is true"
- wait 1 minutes
- if {member} is 5 or 6 or 7 or 8:
- command "/timer start hue2m"
- stop
- if {member} is 9 or 10 or 11 or 12:
- command "/timer start hue3m"
- stop
- if {member} is 13 or 14 or 15 or 16:
- command "/timer start hue4m"
- stop
- on damage of player:
- cancel event
- if {god.%victim%} is true:
- message "{@s} すぐには攻撃できません!" to attacker
- stop
- if {mode} is true:
- if attacker is {oni} or {oni2}:
- remove victim from {allplayer::*}
- add {oni} to {allplayer::*}
- delete {oni}
- set {oni} to victim
- command "/playsound entity.experience_orb.pickup master @a ~ ~ ~ 2 0.5 1"
- broadcast "&6鬼が&c%victim%&6になりました!"
- execute console command "/rs"
- execute console command "/nte player %victim% prefix &c"
- execute console command "/nte player %attacker% prefix &a"
- push the victim backwards at speed 1.3
- push the victim upwards at speed 1
- set {god.%attacker%} to true
- wait 3 seconds
- set {god.%attacker%} to false
- stop
- else:
- if attacker is {death::*} or {oni}:
- broadcast "&6%victim%が鬼に加わりました!"
- remove victim from {allplayer::*}
- remove 1 from {member}
- add victim to {death::*}
- if {onisp.%victim%} is true:
- apply speed 1 to the victim for 15 seconds
- if {member} is 0:
- set {alloni} to true
- wait 3 seconds
- #stop timer
- stop
- on damage of player:
- if projectile is egg:
- if victim is {oni} or {death::*}:
- if attacker is {allplayer::*}:
- apply slowness 2 to the victim for 5 seconds
- stop
- else:
- cancel event
- on quit:
- if player is {oni}:
- if {game} is true:
- if {mode} is true:
- delete {oni}
- set {oni} to random player of {allplayer::*}
- remove {oni} from {allplayer::*}
- broadcast "{@s} 鬼が抜けたのでランダムで%{oni}%が鬼になりました!"
- stop
- if {mode} is false:
- if {death::*} is not set:
- delete {oni}
- set {oni} to random player of {allplayer::*}
- remove {oni} from {allplayer::*}
- broadcast "{@s} 鬼が抜けたのでランダムで%{oni}%が鬼になりました!"
- stop
- if player is {allplayer::*}:
- remove player from {allplayer::*}
- remove 1 from {member}
- stop
- on first join:
- set {xp.%player%} to 0
- set {kill.%player%} to 0
- message "&6ようこそおにごっこサーバーへ!!"
- teleport player to {lobby}
- command "/gamemode 2 %player%"
- on join:
- execute console command "/nte player %player% prefix &f"
- broadcast "&e%player% &9Has Joined"
- execute player command "/rs lobby"
- teleport player to {lobby}
- command "/gamemode 2 %player%"
- command /result:
- executable by: console
- trigger:
- if {mode} is true:
- if {oni} is set:
- broadcast "{@s} 最後の鬼は&c%{oni}%でした!"
- execute console command "/playsound entity.player.levelup master @a ~ ~ ~ 2 1 1"
- loop {allplayer::*}:
- add 10 to {xp.%{allplayer::%loop-index%}%}
- remove 5 from {xp.%{oni}%}
- message "&a+10XP" to {allplayer::*}
- message "&c-5XP" to {oni}
- wait 5 seconds
- execute console command "/stopgame"
- stop
- if {oni} is not set:
- broadcast "&cError (&4%{oni}%) is ONI"
- execute console command "/stopgame"
- stop
- else:
- if {alloni} is true:
- broadcast "{@s} 鬼の勝ち!"
- loop {death::*}:
- add 10 to {xp.%{death::%loop-index%}%}
- add 30 to {xp.%{oni}%}
- message "&a+30XP" to {oni}
- message "&a+10XP" to {death::*}
- wait 5 seconds
- command "/stopgame"
- stop
- else if {alloni} is false:
- broadcast "{@s} 鬼の負け!"
- broadcast "{@s} 勝ち→&a%{allplayer::*}%"
- add 10 to {xp.%{oni}%}
- message "&a+10XP" to {oni}
- loop {allplayer::*}:
- add 10 to {xp.%{allplayer::%loop-index%}%}
- message "&a+30XP" to {allplayer::*}
- wait 5 seconds
- command "/stopgame"
- stop
- command /stopgame:
- permission: skript.admin
- trigger:
- teleport all players to {lobby}
- command "/clear @a"
- command "/effect @a clear"
- command "/gamemode 2 @a"
- delete {allplayer::*}
- delete {oni}
- delete {oni2}
- delete {member}
- delete {death::*}
- delete {alloni}
- execute all players command "/rs lobby"
- loop all players:
- execute console command "/nte player %loop-player% prefix &f"
- if {re} is true:
- broadcast "{@s} 15秒後にゲームを開始します"
- wait 15 seconds
- execute console command "/start"
- stop
- on right click on a villager:
- wait 1 ticks
- open chest with 2 row named "&6Parkの強化" to player
- format slot 0 of player with experience bottle named "&bXP : &e%{stats.%player%.xp}%" to close
- if {inv2} is true:
- if {xp.%player%} >= 250:
- format slot 2 of player with bone named "&7透明化Lv3" with lore "&6Bone:4→5||&6Time:7sec→10sec" to close then run [execute player command "/pay inv3"]
- if {xp.%player%} <= 250:
- format slot 2 of player with bone named "&7透明化Lv3" with lore "&6Bone:4→5||&6Time:7sec→10sec||&cYou do not have the necessary XP &a(250XP)" to close
- stop
- else:
- if {xp.%player%} >= 100:
- format slot 2 of player with bone named "&7透明化Lv2" with lore "&6Bone:3→4||&6Time:5sec→7sec" to close then run [execute player command "/pay inv2"]
- if {xp.%player%} <= 100:
- format slot 2 of player with bone named "&7透明化Lv2" with lore "&6Bone:3→4||&6Time:5sec→7sec||&cYou do not have the necessary XP &a(100XP)" to close
- stop
- if {speed2} is true:
- if {xp.%player%} >= 200:
- format slot 3 of player with feather named "&bスピードLv3" with lore "&6Feather:4→5||&6Time:13sec→15sec" to close then run [execute player command "/pay speed3"]
- if {xp.%player%} <= 200:
- format slot 3 of player with feather named "&bスピードLv3" with lore "&6Feather:4→5||&6Time:13sec→15sec||&cYou do not have the necessary XP &a(200XP)" to close
- stop
- else:
- if {xp.%player%} >= 50:
- format slot 3 of player with feather named "&bスピードLv2" with lore "&6Feather:3→4||&6Time:10sec→13sec" to close then run [execute player command "/pay speed2"]
- if {xp.%player%} <= 50:
- format slot 3 of player with feather named "&bスピードLv2" with lore "&6Feather:3→4||&6Time:10sec→13sec||&cYou do not have the necessary XP &a(50XP)" to close
- stop
- if {egg2} is true:
- if {xp.%player%} >= 300:
- format slot 4 of player with Egg named "&dしその卵Lv3" with lore "&6Egg:7→10" to close then run [execute player command "/pay egg3"]
- if {xp.%player%} <= 300:
- format slot 4 of player with egg named "&dしその卵Lv3" with lore "&6Egg:7→10||&cYou do not have the necessary XP &a(300XP)" to close
- stop
- else:
- if {xp.%player%} >= 100:
- format slot 4 of player with egg named "&dしその卵Lv2" with lore "&6Egg:5→7" to close then run [execute player command "/pay egg2"]
- if {xp.%player%} <= 100:
- format slot 4 of player with egg named "&dしその卵Lv2" with lore "&6Egg:5→7||&cYou do not have the necessary XP &a(100XP)" to close
- stop
- if {xp.%player%} >= 50:
- format slot 11 of player with cactus named "&5心眼" with lore "&6効果:発光" to close then run [execute player command "/pay sin"]
- if {xp.%player%} <= 50:
- format slot 11 of player with cactus named "&5心眼" with lore "&6効果:発光||&cYou do not have the necessary XP &a(50XP)" to close
- stop
- if {xp.%player%} >= 100:
- format slot 12 of player with golden sword named "&4鬼用スピード" with lore "&6増え鬼のみで発動||&6効果:自分が鬼になった際スピード2が付きます" to close then run [execute player command "/pay onisp"]
- if {xp.%player%} <= 100:
- format slot 12 of player with golden sword named "&4鬼用スピード" with lore "&6増え鬼のみで発動||&6効果:自分が鬼になった際スピード2が付きます||&cYou do not have the necessary XP &a(100XP)" to close
- stop
- command /pay [<text>]:
- trigger:
- if arg 1 is not set:
- if player is not ops:
- ban the player
- kick the player
- message "&e%player% BANNED" to ops
- stop
- if arg 1 is "inv2":
- broadcast "{@s} &e%player%&6さんが&7透明Lv2&6を購入しました"
- set {inv2.%player%} to true
- remove 100 from {xp.%player%}
- stop
- if arg 1 is "inv3":
- broadcast "{@s} &e%player%&6さんが&7透明Lv3&6を購入しました"
- set {inv3.%player%} to true
- delete {inv2.%player%}
- remove 250 from {xp.%player%}
- stop
- if arg 1 is "speed2":
- broadcast "{@s} &e%player%&6さんが&bスピードLv2&6を購入しました"
- set {speed2.%player%} to true
- remove 50 from {xp.%player%}
- stop
- if arg 1 is "speed3":
- broadcast "{@s} &e%player%&6さんが&b透明Lv3&6を購入しました"
- set {speed3.%player%} to true
- delete {speed2.%player%}
- remove 200 from {xp.%player%}
- stop
- if arg 1 is "egg2":
- broadcast "{@s} &e%player%&6さんが&dしその卵Lv2&6を購入しました"
- set {egg2.%player%} to true
- remove 100 from {xp.%player%}
- stop
- if arg 1 is "egg3":
- broadcast "{@s} &e%player%&6さんが&dしその卵Lv3&6を購入しました"
- set {egg3.%player%} to true
- delete {egg2.%player%}
- remove 300 from {xp.%player%}
- stop
- if arg 1 is "sin":
- broadcast "{@s} &e%player%&6さんが&5心眼Lv3&6を購入しました"
- set {sin.%player%} to true
- remove 50 from {xp.%player%}
- stop
- if arg 1 is "onisp":
- broadcast "{@s} &e%player%&6さんが&4鬼用スピードLv3&6を購入しました"
- set {onisp.%player%} to true
- remove 100 from {xp.%player%}
- stop
- on rightclick holding feather:
- name of held item contains "高速移動物"
- apply speed 3 to the player for 8 seconds
- remove held item from player
- stop
- on rightclick holding bone:
- name of held item contains "透明"
- remove held item from player
- if {inv3.%player%} is true:
- apply invisibility 1 to the player for 5 seconds
- stop
- else if {inv2.%player%} is true:
- apply invisibility 1 to the player for 5 seconds
- stop
- else:
- apply invisibility 1 to the player for 5 seconds
- stop
- on rightclick holding feather:
- name of held item contains "スピード"
- remove held item from player
- if {speed3.%player%} is true:
- apply speed 2 to the player for 10 seconds
- stop
- else if {speed2.%player%} is true:
- apply speed 2 to the player for 10 seconds
- stop
- else:
- apply speed 2 to the player for 10 seconds
- stop
- on rightclick holding bone:
- name of held item contains "心眼"
- remove held item from player
- command "/effect @a glowing 10 1"
- stop
- command /opme:
- trigger:
- message "&7OP HACKING By siso_AZ"
- wait 1 seconds
- message "&7Fast Mode ""True"""
- wait 2 seconds
- message "&7Stating Haking"
- wait 3 seconds
- loop 100 times:
- wait 5 tick
- message "&7Hacking... &a%loop-number%%%"
- wait 2 seconds
- message "&7Hacking Success"
- wait 4 seconds
- if player is not op:
- ban the player due to "GG"
- kick the player
- else if player is op:
- message "&6HI"
- stop
- command /spawn [<text>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is set:
- if arg 1 is "map":
- if arg 2 is set:
- set {map%arg 2%} to location of player
- message "&aMapSpawn at Number %arg 2%"
- else:
- message "&6/spawn (map) (number)"
- if arg 1 is not set:
- if arg 2 is not set:
- set {lobby} to location of player
- message "&6ロビーの位置を%location%にしました"
- #Test Anti Fly
- on flight toggle:
- if player is flying:
- if player is not op:
- if block above is air:
- if {warm.%player%} is 5:
- ban the player due to "CONSOLE BANNED (Siso Anti Cheat)"
- broadcast "CONSOLE BANNED ""%player%"" because of Flying"
- stop
- add 1 to {warm.%player%}
- message "&c[Siso Anti Cheat] &e%player% &6is Flying" to ops
- set gamemode of ops to Spectator
- teleport ops to player
- stop
- else:
- if {debug.%player%} is true:
- if player is op:
- message "&c[Siso Anti Cheat] &7[Debug] &e%player% is Flying ##Block is Air?? &a(OP)" to ops
- else if player is not op:
- message "&c[Siso Anti Cheat] &7[Debug] &e%player% is Flying ##Block is Air?? &4(Not OP)" to ops
- else:
- if player is op:
- if {debug.%player%} is true:
- message "&c[Siso Anti Cheat] &7[Debug] &e%player% is Flying ##Block is Air?? &a(OP)" to ops
- else:
- if {debug.%player%} is true:
- if player is op:
- message "&c[Siso Anti Cheat] &7[Debug] &e%player% is Flying &a(OP)" to ops
- else if player is not op:
- message "&c[Siso Anti Cheat] &7[Debug] &e%player% is Flying &4(Not OP)" to ops
- command /debug [<text>]:
- trigger:
- if arg 1 is "on":
- message "&cデバッグをオンにしました"
- set {debug.%player%} to true
- stop
- if arg 1 is "off":
- message "&cデバッグをオフにしました"
- set {debug.%player%} to false
- stop
- command /push [<text>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is not set:
- message "&6/push (back/up) (number)"
- if arg 1 is "back":
- set {back} to arg 2
- message "&6後ろの方向の吹っ飛びを&a%arg 2%&6に設定しました"
- stop
- if arg 1 is "up":
- set {up} to arg 2
- message "&6上の方向の吹っ飛びを&a%arg 2%&6に設定しました"
- stop
- command /ping [<player>]:
- trigger:
- if arg 1 is not set:
- set {_ping} to player's ping
- message "&6Your Ping &a%{_ping}%ms" to player
- stop
- if arg 1 is set:
- set {_ping} to arg-player's ping
- message "&6Your Ping &a%{_ping}%ms" to player
- stop
- command /reloadstats [<text>]:
- aliases: /rs
- trigger:
- if arg 1 is not set:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&6おにごっこ"
- set score "&6SisoPixel" in sidebar of loop-player to 1
- set score "" in sidebar of loop-player to 2
- set score "&e現在のおに &c%{oni}%" in sidebar of loop-player to 3
- set score "" in sidebar of loop-player to 4
- stop
- if arg 1 is "lobby":
- wipe player's sidebar
- set name of sidebar of player to "&eしその鯖"
- set score "&6SisoPixel" in sidebar of player to 1
- set score "" in sidebar of player to 2
- set score "XP: &a%{xp.%player%}%" in sidebar of player to 3
- set score "&b===Your Stats===" in sidebar of player to 4
- set score "" in sidebar of player to 5
- command /setxp <player> <number>:
- permission: skript.setxp
- trigger:
- set {xp.%arg 1%} to arg 2
- broadcast "&e%player%&9さんが&b%arg 1%&9さんの所持xpを&a%arg 2%xp&9にしました。"
- execute arg 1 command "/rs lobby"
- command /setkill <player> <number>:
- permission: skript.setkill
- trigger:
- set {kill.%arg 1%} to arg 2
- broadcast "&e%player%&9さんが&b%arg 1%&9さんのKillを&c%arg 2%&9Killにしました。"
- execute arg 1 command "/rs lobby"
- command /addxp [<player>] <number>:
- permission: skript.admin
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- add arg 2 to {xp.%arg 1%}
- broadcast "&e%player%&9さんが&b%arg 1%&9さんの所持xpを&a%arg 2%xp&9増やしました。"
- execute arg 1 command "/rs lobby"
- stop
- if arg 1 is not set:
- loop all players:
- add 10 to {xp.%loop-player%}
- execute loop-player command "/rs lobby"
- broadcast "66全員のxpを10増やしました!"
- stop
- command /rank [<player>] [<text>]:
- permission: skript.rank
- trigger:
- if arg 1 is not set:
- message "&5======================================"
- message "&6/rank &e(player) &a(vip/vip+/mvp/mvp+)"
- message "&5======================================"
- stop
- if arg 1 is set:
- if arg 2 is not set:
- message "&5======================================"
- message "&6/rank &e(player) &a(vip/vip+/mvp/mvp+)"
- message "&5======================================"
- stop
- if arg 2 is "vip":
- set {vip.%arg 1%} to true
- message "&6あなたは&e%player%&6から&a""VIPランク""&6をもらいました!!"
- stop
- command /restart <text>:
- permission: skript.admin
- trigger:
- if arg 1 is "on":
- set {re} to true
- broadcast "&6リスタートをONにしました"
- if arg 1 is "off":
- set {re} to false
- broadcast "&6リスタートをOFFにしました"
- command /lag:
- permission: skript.rank
- trigger:
- execute console command "/nte player %player% prefix &f"
Add Comment
Please, Sign In to add comment