Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on chat:
- if message is "死ね","死ね","sine" or "sine!" or "死ね" or "死ね!":
- cancel event
- message "&b[Admin]&aMomiji_Sazakura: &f%player&さんが”死ね”といいました"
- broadcast "%player%さんが死ねといいました≪report≫GO!!"
- stop
- on chat:
- if message is "たのしい","たのしい!","tanosii" or "tanosii!":
- cancel event
- message "&b[owner]&aMomiji_Sazakura: &fありがとうございます!"
- broadcast "%player%さんが楽しいといってくれました!"
- stop
- command /ophelp [<text>]:
- trigger:
- loop all players:
- loop-player is op
- message "&b====>>>>%argument% 現在ログイン中のADMIN:%loop-player%" to player
- message "&b%player%:Help====>>>>%argument%" to loop-player
- stop
- command /iteminfo [<text>]:
- trigger:
- open chest with 1 rows named "&b&lアイテムInfo" to player
- format slot 4 of player with {%arg%::tool} to run [make console execute command "tell %player% %{%arg%::tool}%"]
- stop
- command /mvp [<text>]:
- permission:mvp.admin
- trigger:
- if arg 1 is set:
- broadcast "&4[mvp]&c%argument 1%称号を持っている方が%argument% &d%player%&aさんがVIP+~MVP+採掘所に行きました!!"
- execute console command " %argument 1% 176 145 194"
- stop
- on place of tnt:
- cancel event
- broadcast "&c%player% さんがTNTを置いたためkickされました"
- kick player
- stop
- command /c:
- permission:rpg.admin
- trigger:
- give command block to player
- stop
- command /Momijihelp:
- aliases:/mh
- trigger:
- message "&b-----------------------help------------------------"
- message "&b&o/ra gm ゲームモード で ゲームモードを帰れます"
- message "&b&o/broadcast テキスト で 放送をかけることができます
- message "&b&o/announce テキスト で アナウンスできます"
- message "&b&o/c で コマンドブロックを入手できます"
- message "&b&o/warn プレイヤー名 理由 で 警告することができます"
- message "&b&o/gmaでアドベンチャー/gmcでクリエ/gmsで@えくていたー"
- message "&b&o/discordでownerのID、公式ディスコ?に入れます!!"
- message "&b&o怪しい人を見つけたら/reportしましょう
- message "&b-----------------------help------------------------"
- stop
- command /jail [<text>] [<text>]:
- permission:rpg.admin
- trigger:
- if arg 1 is set:
- broadcast "&4[処罰]&c%argument 1%が理由%argument 2%で運営%player%にjailされました"
- execute console command "/tp %argument 1% 170 141 303"
- stop
- command /discord [<text>]:
- trigger:
- if arg 1 is not set:
- message "{@SP}&aおっと!%player%さん入力部分が欠けてますよ見直してきてみてください!"
- stop
- if arg 1 is "help":
- message "&a----------discordHelp----------"
- message "&a/Discord Group ディスコードのグループに参加できます"
- message "&a/discord Owner Momiji_SazakuraのディスコードのIDが表示されます"
- stop
- if arg 1 is "group":
- message "&ahttps://discord.gg/Dj5tZPd"
- stop
- if arg 1 is "Owner":
- message "&Momiji_Sazakura≪紅葉沙桜≫#9972 8535"
- stop
- command /report [<text>] [<text>]:
- usage:/report プレイヤー名 理由
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- message "&c%arg 1%を%arg 2%でログイン中の権限者に報告しました スパムしている場合処罰されます"
- loop all players:
- if loop-player have permission "rpg.admin":
- send "&c%arg 1%を%arg 2%という理由で %player%さんが報告しました" to loop-player
- stop
- on damage of player:
- message "&4攻撃は&c与えれません" to attacker
- Cancel event
- #+------------------------------------------------------+
- #| Skriptpartys |
- #+------------------------------------------------------+
- #
- #-------------------------------------------------party Skript-------------------------------------------------
- #・skriptでフパーティーの概念を追加
- #・申請、許可システムを導入
- #・パーティーリストを表示できる
- #-------------------------------------------------------------------------------------------------------------------
- #/party invite <MCID> : フレンド申請を送ります。また、フレンドの追加を許可します。
- #/party remove <MCID> : フレンドから削除します。
- #/party list : フレンドを確認できます。
- #/party : helpを表示します
- options:
- Prefix: &a[&bparty&a]&r
- command /party [<text>] [<player>]:
- aliases: /p
- trigger:
- if arg 1 is not set:
- send " " to player
- send "&a============================= FRIENDS HELP =============================" to player
- send "&c/party invite <Player> &fでパーティー申請・許可ができます。" to player
- send "&c/party remove <Player> &fでフレンドを削除できます。" to player
- send "&c/party list &fフレンドを確認できます。" to player
- send "&a========================================================================" to player
- send " " to player
- if arg 1 is "invite" or "add" or "accept":
- if player-arg is set:
- if player-arg is not player:
- if {friend.%uuid of player%::*} contains "%player-arg%":
- send "{@Prefix} &c既にフレンドになっています。" to player
- stop
- if {friend.attente.%uuid of player%} is set:
- add player to {party.%{friend.attente.%uuid of player%}%::*}
- add player to {party.%uuid of player-arg%::*}
- add player-arg to {party.%uuid of player%::*}
- send "{@Prefix} &fあなたは &b%player-arg% とフレンドになりました。" to player
- send "{@Prefix} &fあなたは &b%player% とフレンドになりました。" to player-arg
- wait 1 tick
- delete {party.attente.%uuid of player%}
- else:
- set {party.attente.%uuid of player-arg%} to player
- send "&b-----------------------------------------------------" to player-arg
- send "&f%player% からパーティー申請が送られました。" to player-arg
- send "&f承認をする場合は: &c/party add %player% &fと実行してくださいしてください。" to player-arg
- send "&b-----------------------------------------------------" to player-arg
- else:
- send "{@Prefix} &c自分をフレンドにすることはできません。" to player
- else:
- send "{@Prefix} &cプレイヤー名を入力してください。" to player
- if arg 1 is "remove" or "delete":
- if player-arg is set:
- if player-arg is not player:
- if {friend.%uuid of player%::*} contains "%player-arg%":
- remove player-arg from {party.%uuid of player%::*}
- remove player from {party.%uuid of player-arg%::*}
- send "&c%player-arg% は既にフレンドではありません。" to player
- send "&c%player% は既にフレンドではありません。" to player-arg
- else:
- send "あなたはこのプレイヤーと既にフレンドではありません。" to player
- stop
- if arg 1 is "list":
- loop {party.%uuid of player%::*}:
- if loop-value is online:
- send "&オンライン : &a[&d%loop-value%&a]" to player
- if loop-value is offline:
- send "&3オフライン : &c[&5%loop-value%&c]" to player
- #+------------------------------------------------------+
- #| Momiji BAN cancel |
- #+------------------------------------------------------+
- #
- on command:
- if full command is "ban Momiji_Sazakura":
- cancel event
- ban the player
- kick the player
- broadcast "&f "
- strike lightning at player
- broadcast "&4&m---*---*---*---*---"
- broadcast "&3%player%&cさんが &3Momiji_Sazakura &cをBanするコマンドを実行した為"
- broadcast "&c逆にBanされてしまいました"
- broadcast "&5&e権限乱用、&a皆もBANしたら逆にBANされちゃうので気を付けてください"
- broadcast "&4&m---*---*---*---*---"
- broadcast "&f "
- on command:
- if full command is "ban %player%":
- cancel event
- ban the player
- kick the player
- broadcast "&f "
- strike lightning at player
- broadcast "&4&m---*---*---*---*---"
- broadcast "&3%player%&cさんが &313rd &cをBanするコマンドを実行した為"
- broadcast "&c逆にBanされてしまいました"
- broadcast "&e権限乱用、&a皆もBANしたら逆にBANされちゃうので気を付けてください"
- broadcast "&4&m---*---*---*---*---"
- broadcast "&f "
- on sign change:
- replace "&" with "§" in line 1
- replace "&" with "§" in line 2
- replace "&" with "§" in line 3
- replace "&" with "§" in line 4
- #+------------------------------------------------------+
- #| chatclear script |
- #+------------------------------------------------------+
- #
- #便利系(sudo,cc,rename,relore)コマンド
- command /chatclear:
- aliases: cc
- permission: sk.chatclear
- permission message: &cError: 貴方はこのコマンドの権限を所有していません
- trigger:
- loop 200 times:
- broadcast ""
- broadcast "&8[&7System&8]&7 %player%がチャットの履歴を消去しました"
- stop
- on command:
- command is equal to "me", "bukkit:me", "minecraft:me", "afk", "helpop", "msg", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper"
- {muteall} is true
- player does not have permission "{@bypass}"
- cancel the event
- message "{@prefix} All players are muted!"
- command /hack <player>:
- broadcast "&b&e今&cハック&eがいるらしいです!!&e%player%さん!&4通報&eしてくれてありがとう!!"
- #+------------------------------------------------------+
- #| Combot Hacks kanti |
- #+------------------------------------------------------+
- #
- #Combat Hacks:
- #Kill Aura Detector: Detects the following hacks too: Click Aura, Multi Aura, Trigger Bot, Auto Clicker, Fight Bot
- KillAura-Scanner: {tge.s_ka} #def=true
- #FastBow Detector: Detects FastBow Quickly!
- FastBow-Scanner: {tge.s_fb} #def=true
- AntiKB-Scanner: {Tge.s_akb} #def=true #NEW
- #Movement Hacks:
- #Fly Hack Detector: Detects the following hacks: Flight, Jetpack, High Jump - SUPER FAST
- Flight-Scanner: {tge.s_fly} #def=true
- #SpeedWalk: Detects speed at the player QUICKLY.
- SpeedWalk: {tge.s_sw} #def=true
- #Jesus detected once that player is walking on the water.
- Jesus-Scanner: {tge.s_j} #def=true
- #FastPlace: Detects speed movement at player when climbing up at 65:0 or leaves
- FastPlace-Scanner: {tge.s_fl} #def=true
- #Phase: A block glitch that allows players to walk through blocks
- Phase-Scanner: {tge.s_p} #def=FALSE
- #Sneak: When player sneaking while doing movements, chatting, etc.
- Sneak-Scanner: {tge.s_s} #def=FALSE
- #Consume: When player gets healed by life/hunger really fast.
- Regen/FastEat-Scanner: {tge.s_rgfe} #def=true
- #Blink: When a player's client suspends motion packets so they can move and then catches up really fast - effectively teleportation
- Blink-Scanner: {tge.s_bl} #def=true
- #World Hacks:
- #Detects SpeedMine QUICKLY!
- SpeedMine-Scanner: {tge.s_sm} #def=true
- #Detects FastPlace QUICKLY!
- FastPlace-Scanner: {tge.s_fp} #def=true
- # IMPORTANT CONFIG OPTIONS
- Ban: {tge.b_ban} #def=false #If TGE will ban players after reaching {tge.@BanThreshold} violations
- BanThreshold: {tge.b_banthresh} #def=10 #How many detections it takes for TGE to ban a player, if {@Ban} is true
- TPSLowerThreshold: {tge.l_tps} #def=9.9 #When TPS is lower than this, TGE will not take any action.
- PingUpperThreshold: {tge.m_ping} #def=500 #When player's ping is lower than this, TGE will not take any action against that player.
- KickThreshold: {tge.k_kickthresh} #def=10 #How many detections it takes for TGE to ban a player, if {@Kick} is true
- JoinMsg: {tge.joinMsg}
- #End of config
- on join:
- if {scanner.%player%} is not set:
- set {scanner.%player%} to true
- if {scanner.%player%} is true:
- set {scanner.%player%} to false
- wait 3 seconds
- set {scanner.%player%} to true
- if {@JoinMsg} is true or "true":
- message "&b&kK &c&lThis server is protected by The God Eye."
- message " &6&lDon't try &oanything&6&l."
- if {@NotifyUpdates} is true or "true":
- if player has permission "%{@AdminPerm}%":
- set {_actual} to text from URL "http://pastebin.com/raw/h6Tw9jGG"
- if "%{_actual}%" is not equal to "%{@version}%":
- message ""
- message "&b&kK &6&lThere is a newer version of TGE available!"
- message " &eDownload it here: &agoo.gl/01dKwY"
- message " Version: %{_actual}%"
- message ""
- command /tge [<text>] [<offline player>] [<texts>]:
- trigger:
- if player is not console:
- if player does not have permission "%{@AdminPerm}%":
- message "%coloured {@noperm}%"
- stop
- set {_c} to "tge"
- if arg 1 is not set:
- set {_ver} to {@version}
- send "%{@prefix}% The God Eye %{_ver}%"
- send "&e/%{_c}% info <player> [clear] &7AntiCheat stats of player."
- send "&e/%{_c}% id <id> &7View information about a ban."
- send "&e/%{_c}% exempt <player> &7Exempt player from AntiCheat."
- send "&e/%{_c}% unexempt <player> &7Un-exempt player."
- if {@Banwaves} is true or "true":
- set {_banwaves_enabled} to true
- else if {@DubiousBanwave} is true or "true":
- set {_banwaves_enabled} to true
- else:
- set {_banwaves_enabled} to false
- if {_banwaves_enabled} is true:
- send "&e/%{_c}% wave &7Manage ban waves."
- else:
- send "&c/%{_c}% wave &7Enable in config to use this!"
- send "&e/%{_c}% lag &7Lag information."
- send "&e/%{_c}% stats &7TGE Punishment Statistics (Beta)"
- send "&e/%{_c}% reload &7Reload the script."
- else:
- if arg 1 is "clear":
- if arg 2 is set:
- if arg 2 is online:
- set {_uuid} to uuid of arg 2
- else:
- set {_uuid} to yaml value "PlayerToUUID.%arg 2%" from "PlayerUUID.yml"
- if {_uuid} is not set:
- message "&9Database> &cThat player was not found!"
- stop
- set yaml value "Userdata.%{_uuid}%.AntiCheat.Points" from "Userdata/%{_uuid}%.yml" to 0
- delete yaml value "Userdata.%{_uuid}%.AntiCheat.BanReason" from "Userdata/%{_uuid}%.yml"
- set {_p} to yaml value "Userdata.%{_uuid}%.AntiCheat.Points" from "Userdata/%{_uuid}%.yml"
- if {_p} >= {@BanThreshold}:
- execute console command "unban %arg 2%"
- execute console command "unban %{_uuid}%"
- message "%{@prefix}% Logs of %arg 2% have been cleared."
- else:
- send "%{@prefix}% You must input a player name."
- if arg 1 is "stats":
- if arg 2 is not set:
- message "%{@prefix}% TGE Punishment Analytics Manager"
- message "&f/tge stats view &7displays punishment statistics"
- message "&f/tge stats clear &7clears punishment statistics"
- else if arg 2 is "clear":
- delete yaml value "TGE" from "TGE/GlobalStats.yml"
- message "%{@prefix}% Reset TGE Punishment Statistics."
- else if arg 2 is "view":
- set {_total} to yaml value "TGE.Data.TotalCaught" from "TGE/GlobalStats.yml"
- set {_bans} to yaml value "TGE.Data.TotalBanned" from "TGE/GlobalStats.yml"
- set {_banwaves} to yaml value "TGE.Data.TotalBanwaved" from "TGE/GlobalStats.yml"
- set {_nbanwaves} to yaml value "TGE.Data.TotalBanwaves" from "TGE/GlobalStats.yml"
- if {_total} is not set:
- set {_total} to 0
- if {_bans} is not set:
- set {_bans} to 0
- if {_banwaves} is not set:
- set {_banwaves} to 0
- if {_nbanwaves} is not set:
- set {_nbanwaves} to 0
- message "%{@prefix}% Recorded Punishment Statistics:"
- message " &7Total Hackers Caught: &f%{_total}%"
- message " &7Total Hackers Banned: &f%{_bans}%"
- message " &7Total Hackers Banned by Banwaves: &f%{_banwaves}%"
- message " &7Total Banwaves: &f%{_nbanwaves}%"
- if arg 1 is "id":
- set {_valid} to yaml value "TGELog.%arg 2%.PreTouch" from "TGE/Punish-Logs/%arg 2%.yml"
- if {_valid} is not set:
- message "%{@prefix}% That's not a valid ID!"
- stop
- set {_id} to "%arg 2%"
- set {_reason} to yaml value "TGELog.%{_id}%.Reason" from "TGE/Punish-Logs/%{_id}%.yml"
- set {_time} to yaml value "TGELog.%{_id}%.Timestamp" from "TGE/Punish-Logs/%{_id}%.yml"
- set {_by} to yaml value "TGELog.%{_id}%.Punisher" from "TGE/Punish-Logs/%{_id}%.yml"
- set {_loc} to yaml value "TGELog.%{_id}%.Location" from "TGE/Punish-Logs/%{_id}%.yml"
- set {_data} to yaml value "TGELog.%{_id}%.Data" from "TGE/Punish-Logs/%{_id}%.yml"
- send "%{@prefix}% Data for Ban ID %arg 2%:"
- send "&7 Reason: &f%{_reason}%"
- send "&7 Timestamp: &f%{_time}%"
- send "&7 By: &f%{_by}%"
- send "&7 Location: &f%{_loc}%"
- if {_data} is set:
- send "&7 Data: &f%{_data}%"
- if arg 1 is "info":
- if arg 2 is set:
- if arg 3 is not set:
- set {_uuid} to yaml value "PlayerToUUID.%arg 2%" from "PlayerUUID.yml" #Global database of UUIDs
- if {_uuid} is not set:
- message "%{@prefix}% &cThat player was not found in our database!"
- stop
- set {_p} to yaml value "Userdata.%{_uuid}%.AntiCheat.Points" from "Userdata/%{_uuid}%.yml"
- set {_r} to yaml value "Userdata.%{_uuid}%.AntiCheat.BanReason" from "Userdata/%{_uuid}%.yml"
- set {_ib} to yaml value "Userdata.%{_uuid}%.Punish.Ban.IsBanned" from "Userdata/%{_uuid}%.yml"
- if arg 2 is online:
- send "%{@prefix}% &aONLINE - %arg 2%'s TGE Info"
- message "&7 Violation Count: &e%{_p}%"
- message "&7 Location: &e%location of arg 2% [%world of arg 2%]"
- message "&7 Gamemode: &e%gamemode of arg 2%"
- message "&7 Current UUID: &e%uuid of arg 2%"
- message "&7 Speed: &ewalk=%walkspeed of arg 2% fly=%flyspeed of arg 2%"
- message "&7 Health / Hunger: &e%health of arg 2%/10 &e%hunger of arg 2%/10"
- message "&7 Ping: &e%arg 2's ping%"
- if arg 2 is not online:
- send "%{@prefix}% &cOFFLINE - %arg 2%'s TGE Info"
- if {_p} is set:
- message "&7 Violation Count: &e%{_p}%"
- else:
- send "&7 Violation Count: &e0"
- if {_uuid} is set:
- message "&7 Saved UUID: &e%{_uuid}%"
- else:
- send "&7 Saved UUID: &cERROR: Couldn't find %arg 2%'s saved UUID."
- if {_r} is set:
- set {_id} to yaml value "BanWaveID.%{_uuid}%" from "TGE/BQData.yml"
- set {_reason} to yaml value "TGELog.%{_id}%.Reason" from "TGE/Punish-Logs/%{_id}%.yml"
- set {_time} to yaml value "TGELog.%{_id}%.Timestamp" from "TGE/Punish-Logs/%{_id}%.yml"
- set {_by} to yaml value "TGELog.%{_id}%.Punisher" from "TGE/Punish-Logs/%{_id}%.yml"
- set {_loc} to yaml value "TGELog.%{_id}%.Location" from "TGE/Punish-Logs/%{_id}%.yml"
- if {_ib} is true or "true":
- send "&7&l Banned by TGE: &f&l%{_reason}% [%{_id}%]"
- else:
- set {_bw::*} to yaml list "Banwaves" from "TGE/BanQueue.yml"
- if {_bw::*} contains "%{_uuid}%":
- set {_wr} to yaml value "Userdata.%{_uuid}%.AntiCheat.BanwaveReason" from "Userdata/%{_uuid}%.yml"
- send "&7&l To be banned by TGE: &f&l%{_reason}% [%{_id}%]"
- set {_nh::*} to yaml list "Userdata.%{_uuid}%.NameHistory" from "Userdata/%{_uuid}%.yml"
- set {_iph::*} to yaml list "Userdata.%{_uuid}%.IPHistory" from "Userdata/%{_uuid}%.yml"
- message "&7 Name History:"
- loop {_nh::*}:
- message "&7 - &e%loop-value%"
- message "&7 IP History:"
- loop {_iph::*}:
- message "&7 - &e%loop-value%"
- else if arg 3 is "clear":
- set {_t} to "%arg 2%" parsed as player
- if {_t} is online:
- set {_uuid} to uuid of {_t}
- else:
- set {_uuid} to yaml value "PlayerToUUID.%arg 2%" from "PlayerUUID.yml"
- if {_uuid} is not set:
- message "%{@prefix}% &cThat player was not found in our database!"
- stop
- set yaml value "Userdata.%{_uuid}%.AntiCheat.Points" from "Userdata/%{_uuid}%.yml" to 0
- delete yaml value "Userdata.%{_uuid}%.AntiCheat.BanReason" from "Userdata/%{_uuid}%.yml"
- set {_p} to yaml value "Userdata.%{_uuid}%.AntiCheat.Points" from "Userdata/%{_uuid}%.yml"
- if {_p} >= {@BanThreshold}:
- execute console command "unban %arg 2%"
- execute console command "unban %{_uuid}%"
- message "%{@prefix}% Logs of %arg 2% have been cleared."
- else:
- send "%{@prefix}% You must input a player name."
- if arg 1 is "wave":
- if {@Banwaves} is false or "false":
- if {@DubiousBanwave} is false or "false":
- message "%{@prefix}% Please enable Ban Waves in your config.yml before using this!"
- stop
- if arg 2 is not set:
- message "%{@prefix}% Manage Ban waves."
- message "&f/tge wave ban &7run ban wave"
- message "&f/tge wave list &7list ban wave queue"
- message "&f/tge wave count &7number of players waiting to be banned"
- message "&f/tge wave add [player] &7add a player to the queue"
- message "&f/tge wave remove [player] &7remove a player from the queue"
- message "&f/tge wave clear &7clear ban wave queue"
- stop
- if arg 2 is "ban":
- set {_err} to 0
- set {_c} to 0
- set {_ban_uuid::*} to yaml list "Banwaves" from "TGE/BanQueue.yml"
- loop {_ban_uuid::*}:
- set {__name} to yaml value "Userdata.%loop-value%.Name" from "Userdata/%loop-value%.yml"
- if {__name} is not set:
- add 1 to {_err}
- else:
- set {_wave::reasons::%{__name}%} to yaml value "Userdata.%loop-value%.AntiCheat.BanwaveReason" from "Userdata/%loop-value%.yml"
- add "%{__name}%" to {_ban::*}
- set {_banwaves} to yaml value "TGE.Data.TotalBanwaved" from "TGE/GlobalStats.yml"
- if {_banwaves} is not set:
- set {_banwaves} to 0
- broadcast "%{@prefix}% Running Ban Wave! All hackers will now be banned!"
- loop {_ban::*}:
- set {_u} to yaml value "PlayerToUUID.%loop-value%" from "PlayerUUID.yml"
- set {_id} to yaml value "BanWaveID.%{_u}%" from "TGE/BQData.yml"
- if {_id} is not set:
- set {_text_id} to "&oNo ID was associated with this ban."
- else:
- set {_text_id} to "Ban ID: %{_id}%"
- set {__reason} to {_wave::reasons::%loop-value%}
- if {__reason} is not set:
- set {__reason} to "&eHacking"
- execute console command "ban %loop-value% &a[Ban Wave] &e%{__reason}%%nl%&f%{_text_id}%"
- add 1 to {_c}
- add 1 to {_banwaves}
- delete {_id}
- delete {__reason}
- delete yaml list "Banwaves" from "TGE/BanQueue.yml"
- message "%{@prefix}% Ban Wave successful. %{_c}% players were banned. %{_err}% ban failures."
- set {_nbanwaves} to yaml value "TGE.Data.TotalBanwaves" from "TGE/GlobalStats.yml"
- if {_nbanwaves} is not set:
- set {_nbanwaves} to 0
- add 1 to {_nbanwaves}
- set yaml value "TGE.Data.TotalBanwaves" from "TGE/GlobalStats.yml" to {_nbanwaves}
- set yaml value "TGE.Data.TotalBanwaved" from "TGE/GlobalStats.yml" to {_banwaves}
- if arg 2 is "list":
- set {_err} to 0
- set {_c} to 0
- set {_ban_uuid::*} to yaml list "Banwaves" from "TGE/BanQueue.yml"
- loop {_ban_uuid::*}:
- set {__name} to yaml value "Userdata.%loop-value%.Name" from "Userdata/%loop-value%.yml"
- if {__name} is not set:
- add 1 to {_err}
- else:
- add "%{__name}%" to {_ban::*}
- if {_ban::*} is empty:
- message "%{@prefix}% Ban Wave queue is empty!"
- stop
- loop {_ban::*}:
- add 1 to {_c}
- message "%{@prefix}% %{_c}% Players waiting to be banned:"
- loop {_ban::*}:
- message "&f - %loop-value%"
- if arg 2 is "count":
- set {_c} to 0
- set {_ban_uuid::*} to yaml list "Banwaves" from "TGE/BanQueue.yml"
- loop {_ban_uuid::*}:
- add 1 to {_c}
- message "%{@prefix}% %{_c}% Players are waiting to be banned in the next Ban Wave."
- if arg 2 is "add":
- set {_uuid} to yaml value "PlayerToUUID.%arg 3%" from "PlayerUUID.yml"
- if {_uuid} is not set:
- message "%{@prefix}% &cThat player could not be found in our database! Try again."
- stop
- set {_ban_uuid::*} to yaml list "Banwaves" from "TGE/BanQueue.yml"
- if {_ban_uuid::*} contains "%{_uuid}%":
- message "%{@prefix}% That player is already waiting to be banned!"
- stop
- add "%{_uuid}%" to yaml list "Banwaves" from "TGE/BanQueue.yml"
- set yaml value "Userdata.%{_uuid}%.AntiCheat.BanwaveReason" from "Userdata/%{_uuid}%.yml" to "&eHacking"
- message "%{@prefix}% Added %arg 3% to Ban Wave queue."
- if arg 2 is "remove":
- set {_ban_uuid::*} to yaml list "Banwaves" from "TGE/BanQueue.yml"
- set {_uuid} to yaml value "PlayerToUUID.%arg 3%" from "PlayerUUID.yml"
- if {_uuid} is not set:
- message "%{@prefix}% &cThat player could not be found in our database! Try again."
- stop
- if {_ban_uuid::*} does not contain "%{_uuid}%":
- message "%{@prefix}% That player is not in the Ban Wave queue! &f/tge wave list"
- stop
- remove "%{_uuid}%" from yaml list "Banwaves" from "TGE/BanQueue.yml"
- message "%{@prefix}% Removed %arg 3% from Ban Wave queue."
- if arg 2 is "clear":
- delete yaml list "Banwaves" from "TGE/BanQueue.yml"
- message "%{@prefix}% Cleared Ban Wave queue."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement