Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Permissions:
- # guardian.admin - Use of /guardian command
- # guardian.elder - Use of /elder command
- # guardian.check - Use of /check command
- # guardian.bypass - Cannot be banned!
- #Commands:
- # /guardian - Usage for bannig, kicking, unbaning
- # /elder - Used for animated banning
- # /check - Shows all of your or other players checks
- #Hacks Blocked:
- # KillAura
- # MultiAura
- # LegitAura
- # CrazyAura
- # FastAura
- # FastAura
- # FastEat
- # Regen
- # Auto Sneak
- # Fast Place
- # Fast Break
- # Fly
- # Jesus
- #------------------------------------------------------------
- # Edit after this part!
- #------------------------------------------------------------
- options:
- #Logo will be displayed before each message!
- logo: &6[&3Guardian&6]|
- #Should people be banned by Guardian?
- banwave: true
- #Should animation of guardian banning be used?
- animated: true
- #This is how players will see ban screen when they
- #try to log on the server
- banmsg: &6[&3Guardian&6]| &cYou are banned for: &e%arg 3%
- #Should staff members recieve reports only in staff mode?
- onlyinstaff: false
- #-----------------------
- #Kill Aura
- #-----------------------
- #Should Kill Aura be checked?
- killaura: true
- #Should players get banned for Kill Aura?
- auraban: true
- #After how much checks should players get banned?
- killauradetect: 30
- #-----------------------
- #Multi Aura
- #-----------------------
- #Should Multi Aura be checked?
- multiaura: true
- #Should players get banned for Multi Aura?
- multiauraban: true
- #After how much checks should players get banned?
- multiauradetect: 30
- #-----------------------
- #Regen
- #-----------------------
- #Should Regen be enabled?
- regen: true
- #Should Fast eat be enabled?
- fasteat: true
- #-----------------------
- #Anti KB
- #-----------------------
- antikb: true
- antikbdetect: 30
- #-----------------------
- #Fast Place/Break
- #-----------------------
- fastplace: true
- fastbreak: true
- fastplacecheck: 30
- fastbreakcheck: 30
- #-----------------------
- #Fly/Jesus [BETA]
- #-----------------------
- #Fly and Jesus are in beta which means that players will not
- #get banned/kicked for it, staff members will get notifications
- #but nothing else!
- #Once its out of the beta proper banning and kicking will be added!
- fly: true
- jesus: true
- #-----------------------
- #Custom Banning
- #-----------------------
- #Use this feature if you want to make guardian ban
- #players using third party plugins (Lite bans for example)
- #If this is used then banning animation will not be used!
- custombanning: false
- custombancmd: ban %loop-player% Hacking
- #-----------------------
- #Broadcasts
- #-----------------------
- #Should certain things be broadcasted?
- broadcastban: true
- broadcastkick: true
- #-----------------------
- #Promotion Message
- #-----------------------
- #This message is displayed when op joins!
- promotionmsg: true
- #------------------------------------------------------------
- # Do NOT touch anythinc after this! It might break!
- #------------------------------------------------------------
- variables:
- {killaura.%player%} = 0
- {multichecker.%player%} = 0
- {multiaura.%player%} = 0
- {waittimer.%player%} = 0
- {dban.%player%} = false
- {set.%player%} = false
- {guardianstaffmode.%player%} = false
- {invis.%player%} = false
- {antikb.%player%} = 0
- {fastplace.%player%} = 0
- {fastbreak.%player%} = 0
- {fly.%player%} = 0
- {jesus.%player%} = 0
- on join:
- if {set.%player%} is false:
- set {killaura.%player%} to 0
- set {multiaura.%player%} to 0
- set {set.%player%} to true
- set {antikb.%player%} to 0
- set {fastplace.%player%} to 0
- set {fastbreak.%player%} to 0
- set {fly.%player%} to 0
- set {jesus.%player%} to 0
- on join:
- if player is op:
- if {@promotionmsg} is true:
- send "&6===========================" to player
- send "&aThank you for using &3Guardian!" to player
- send "&e " to player
- send "&eIf you like this skript please" to player
- send "&econsider donating! It will help" to player
- send "&eIn future &3Guardian &edevelopment!" to player
- send "&6===========================" to player
- else:
- stop
- else:
- stop
- command /check [<offline player>]:
- permission: guardian.check
- trigger:
- if arg 1 is not set:
- message "{@logo} &aKill Aura: &e%{killaura.%player%}%"
- message "{@logo} &aMulti Aura: &e%{multiaura.%player%}%"
- message "{@logo} &aAnti Knockback: &e%{antikb.%player%}%"
- message "{@logo} &aFast Place: &e%{fastplace.%player%}%"
- message "{@logo} &aFast Break: &e%{fastbreak.%player%}%"
- message "{@logo} &aFly: &e%{fly.%player%}%"
- message "{@logo} &aJesus: &e%{jesus.%player%}%"
- stop
- if arg 1 is set:
- message "{@logo} &aKill Aura: &e%{killaura.%arg 1%}%"
- message "{@logo} &aMulti Aura: &e%{multiaura.%arg 1%}%"
- message "{@logo} &aAnti Knockback: &e%{antikb.%arg 1%}%"
- message "{@logo} &aFast Place: &e%{fastplace.%arg 1%}%"
- message "{@logo} &aFast Break: &e%{fastbreak.%arg 1%}%"
- message "{@logo} &aFly: &e%{fly.%arg 1%}%"
- message "{@logo} &aJesus: &e%{jesus.%arg 1%}%"
- every minute:
- loop all players:
- if {killaura.%loop-player%} is higher than 0:
- remove 1 from {killaura.%loop-player%}
- stop
- if {multiaura.%loop-player%} is higher than 0:
- remove 1 from {multiaura.%loop-player%}
- stop
- if {antikb.%loop-player%} is higher than 0:
- remove 1 from {antikb.%loop-player%}
- stop
- if {fastplace.%loop-player%} is higher than 0:
- remove 1 from {fastplace.%loop-player%}
- stop
- if {fastbreak.%loop-player%} is higher than 0:
- remove 1 from {fastbreak.%loop-player%}
- stop
- if {fly.%loop-player%} is higher than 0:
- remove 1 from {fly.%loop-player%}
- stop
- if {jesus.%loop-player%} is higher than 0:
- remove 1 from {jesus.%loop-player%}
- stop
- command /guardian [<text>] [<offline player>] [<text>]:
- permission: guardian.admin
- aliases: /ac, /anticheat, /guard
- trigger:
- if arg 1 is not set:
- message "&6&m---------[&3Guardian&6&m]---------"
- message "&f/guardian help"
- message "&f/guardian ban <player> <hack>"
- message "&f/guardian kick <player> <reason>"
- message "&f/guardian reset <player>"
- message "&6&m---------[&3Guardian&6&m]---------"
- if arg 1 is "help":
- message "&6&m---------[&3Guardian&6&m]---------"
- message "&f/guardian help"
- message "&f/guardian ban <player> <hack>"
- message "&f/guardian kick <player> <reason>"
- message "&f/guardian reset <player>"
- message "&6&m---------[&3Guardian&6&m]---------"
- if arg 1 is "ban":
- if arg 2 is set:
- if arg 3 is set:
- if arg 2 has permission "guardian.bypass":
- message "{@logo} &cYou cannot ban this player!"
- else:
- kick arg 2 due to "{@banmsg}"
- ban arg 2 due to "{@banmsg}"
- if {@broadcastban} is true:
- broadcast "{@logo} &a%arg 2% &ewas banned by &a%player% &efor &c%arg 3%"
- stop
- if arg 1 is "kick":
- if arg 2 is set:
- if arg 3 is set:
- if arg 2 has permission "guardian.bypass":
- message "{@logo} &cYou cannot kick this player!"
- else:
- kick arg 2 due to "{@logo} &cYou have been kicked by &e%player%! &aReason: &e%arg 3%"
- if {@broadcastkick} is true:
- broadcast "{@logo} &a%arg 2% &ewas kicked by &a%player% &efor &c%arg 3%"
- if arg 1 is "reset":
- if arg 2 is set:
- set {killaura.%arg 2%} to 0
- set {multiaura.%arg 2%} to 0
- set {antikb.%arg 2%} to 0
- set {fastplace.%arg 2%} to 0
- set {fastbreak.%arg 2%} to 0
- set {fly.%arg 2%} to 0
- set {jesus.%arg 2%} to 0
- set {banned.%arg 2%} to false
- message "{@logo} &aReset stats of player!"
- execute console command "/unban %arg 2%"
- stop
- if arg 1 is "unban":
- if arg 2 is set:
- set {killaura.%arg 2%} to 0
- set {multiaura.%arg 2%} to 0
- set {antikb.%arg 2%} to 0
- set {fastplace.%arg 2%} to 0
- set {fastbreak.%arg 2%} to 0
- set {fly.%arg 2%} to 0
- set {jesus.%arg 2%} to 0
- set {banned.%arg 2%} to false
- execute console command "/unban %arg 2%"
- broadcast "{@logo} &a%arg 2% &ewas unbanned by &a%player%!"
- #====================================================================================================
- # Kill Aura
- #====================================================================================================
- on damage:
- if {@killaura} is true:
- attacker is a player:
- if victim is a player:
- if damage cause is not a projectile:
- if tool of the attacker is a bow:
- stop
- if tool of the attacker is a snowball:
- stop
- if tool of the attacker is a egg:
- stop
- if tool of the attacker is a ender pearl:
- stop
- if tool of the attacker is a fishing rod:
- set {fishingrod.%attacker%} to 10
- stop
- else:
- if {fishingrod.%attacker%} is higher than 0:
- stop
- else:
- add 1 to {dmg.%attacker%}
- if distance between attacker and victim is greater than 5:
- cancel event
- if {@auraban} is true:
- add 1 to {killaura.%attacker%}
- loop all players:
- if {@onlyinstaff} is true:
- if {guardianstaffmode.%loop-player%} is true:
- send "{@logo} &c%attacker% &eMight be using &cKill Aura&e!" to loop-player
- else:
- if loop-player has permission "guardian.notify":
- send "{@logo} &c%attacker% &eMight be using &cKill Aura&e!" to loop-player
- stop
- on damage:
- if tool of the attacker is a sword:
- attacker is blocking
- cancel event
- every second:
- if {@killaura} is true:
- loop all players:
- if {dmg.%loop-player-1%} is less than or equal to 20:
- set {dmg.%loop-player-1%} to 0
- stop
- if {dmg.%loop-player-1%} is higher than 20:
- set {dmg.%loop-player-1%} to 0
- add 1 to {killaura.%loop-player-1%}
- loop all players:
- if {@onlyinstaff} is true:
- if {guardianstaffmode.%loop-player-2%} is true:
- send "{@logo} &c%loop-player-1% &eMight be using &cKill Aura&e!" to loop-player-2
- else:
- if loop-player-2 has permission "guardian.notify":
- send "{@logo} &c%loop-player-1% &eMight be using &cKill Aura&e!" to loop-player-2
- stop
- #====================================================================================================
- # Multi Aura
- #====================================================================================================
- on damage:
- if {@multiaura} is true:
- if attacker is a player:
- if {victim.%attacker%} is not set:
- set {_victim} to victim
- set {multichecker.%attacker%} to 5
- stop
- if {_victim} is set:
- if "%name of victim%" is not {_victim}:
- if {multichecker.%attacker%} is higher than 0:
- add 1 to {multiaura.%attacker%}
- loop all players:
- if {@onlyinstaff} is true:
- if {guardianstaffmode.%loop-player%} is true:
- send "{@logo} &c%attacker% &eMight be using &cMulti Aura&e!" to loop-player
- else:
- if loop-player has permission "guardian.notify":
- send "{@logo} &c%attacker% &eMight be using &cMulti Aura&e!" to loop-player
- else:
- stop
- else:
- stop
- else:
- stop
- else:
- stop
- every tick:
- loop all players:
- if {multichecker.%loop-player%} is higher than 0:
- remove 1 from {multichecker.%loop-player%}
- stop
- else:
- stop
- #====================================================================================================
- # Anti Knockback | BETA
- #====================================================================================================
- on damage of a player:
- if {@antikb} is true:
- if victim's gamemode is survival or adventure:
- set {_loc1} to location of victim
- wait 10 ticks
- set {_loc2} to location of victim
- block at victim is not cobweb:
- victim is not riding:
- loop blocks in radius 2 around victim:
- loop-block is air:
- distance between {_loc1} and {_loc2} = 0:
- add 1 to {antikb.%attacker%}
- loop all players:
- if {@onlyinstaff} is true:
- if {guardianstaffmode.%loop-player%} is true:
- send "{@logo} &c%attacker% &eMight be using &cAnti Knockback&e!" to loop-player
- else:
- if loop-player has permission "guardian.notify":
- send "{@logo} &c%attacker% &eMight be using &cAnti Knockback&e!" to loop-player
- else:
- stop
- else:
- stop
- else:
- stop
- else:
- stop
- #====================================================================================================
- # Regen | Fast Eat
- #====================================================================================================
- on consume:
- if {@regen} is true:
- if player does not have permission "guardian.regen":
- if difference between {heal.%player%} and now is less than 2 ticks:
- cancel event
- set {heal.%player%} to now
- stop
- set {heal.%player%} to now
- on consume:
- if {@fasteat} is true:
- if player does not have permission "guardian.fasteat":
- if difference between {eat.%player%} and now is less than 2 ticks:
- cancel event
- set {eat.%player%} to now
- stop
- set {eat.%player%} to now
- #====================================================================================================
- # Fast Place/Break
- #====================================================================================================
- on place:
- if {@fastplace} is true:
- if difference between {fastplacetest.%player%} and now is less than 1 tick:
- cancel event
- add 1 to {fastplace.%player%}
- loop all players:
- if {@onlyinstaff} is true:
- if {guardianstaffmode.%loop-player%} is true:
- send "{@logo} &c%player% &eMight be using &cFast Place&e!" to loop-player
- else:
- if loop-player has permission "guardian.notify":
- send "{@logo} &c%player% &eMight be using &cFast Place&e!" to loop-player
- stop
- set {fastplacetest.%player%} to now
- on break:
- if {@fastbreak} is true:
- if difference between {fastbreaktest.%player%} and now is less than 1 tick:
- cancel event
- add 1 to {fastbreak.%player%}
- loop all players:
- if {@onlyinstaff} is true:
- if {guardianstaffmode.%loop-player%} is true:
- send "{@logo} &c%player% &eMight be using &cFast Break&e!" to loop-player
- else:
- if loop-player has permission "guardian.notify":
- send "{@logo} &c%player% &eMight be using &cFast Break&e!" to loop-player
- stop
- set {fastbreaktest.%player%} to now
- #====================================================================================================
- # Fly/Jesus [BETA]
- #====================================================================================================
- on any movement:
- if player's gamemode is not creative:
- if player's fly mode is not true:
- if {@fly} is true:
- if block 0.1 below the player is air:
- if {flytest.%player%} is set:
- set {_y} to y coordinate of location of player
- set {_ry} to rounded up {_y}
- set {_check} to "%{_ry}-{_y}%"
- if player doesn't have jump boost:
- if {_check} is not "0.47" or "0.45" or "0.63" or "0.72" or "0.2" or "0.18" or "0.68" or "0.6" or "0.3" or "0.38" or "0.87" or "0.94" or "0.77" or "0.55" or "0.8" or "0.69" or "0.97" or "0.81" or "0.74" or "0.82" or "0.85" or "0.62" or "0.61" or "0.79" or "0.53" or "0.66" or "0.88" or "0.42" or "0.39" or "0.44" or "0.57" or "0.64" or "0.02" or "0.84" or "0.9" or "0.52" or "0.48" or "0.51" or "0.49" or "0.43" or "0.23" or "0.11" or "0.07" or "0.12" or "0.24" or "0.43" or "0.7" or "0.36" or "0.17" or "0.06" or "0.04" or "0.09" or "0.14" or "0.86" or "0.67" or "0.56" or "0.54" or "0.59" or "0.73" or "0.9" or "0.58" or "0.34" or "0.21" or "0.08" or "0.48" or "0.71" or "0.5" or "0.75" or "0.83" or "0" or "1" or "0.33" or "0.25" or "0.46" or "0.98":
- if {flytest.%player%} is less than {_y}:
- add 1 to {fly.%player%}
- set {_found} to true
- if {_y} is {flytest.%player%}:
- if {_check} is not "0.21" or "0.98" or "0.9" or "1" or "0.83" or "0.58" or "0.75" or "0.74" or "0.25" or "0.5" or "0":
- add 1 to {fly.%player%}
- loop all players:
- if {@onlyinstaff} is true:
- if {guardianstaffmode.%loop-player%} is true:
- send "{@logo} &c%player% &eMight be using &cFly&e!" to loop-player
- stop
- else:
- if loop-player has permission "guardian.notify":
- send "{@logo} &c%player% &eMight be using &cFly&e!" to loop-player
- stop
- if {@jesus} is true:
- if block 0.25 below the player or block 1 below the player or block 0.5 below the player or block 0.75 below the player is water:
- if block 0.25 above the player is air:
- set {_y} to y coordinate of location of player
- set {_ry} to rounded up {_y}
- set {_check} to "%{_ry}-{_y}%"
- if {_check} is not "0.16" or "0.12" or "0.1" or "0.04" or "0.93" or "0.78" or "0.61" or "0.96" or "0.19" or "0.24" or "0.54" or "0.76" or "0.02" or "0.86" or "0.44" or "0.47" or "0.14" or "0.07" or "0.68" or "0.64" or "0.85" or "0.15" or "0.48" or "0.06" or "0.49" or "0.62" or "0.43" or "0.13" or "0.84" or "0.51" or "0.69" or "0.74" or "0.75" or "0.58" or "1" or "0.57" or "0.7" or "0.21" or "0.97" or "0.81" or "0.77" or "0.22" or "0.03" or "0.91" or "0.08" or "0.79" or "0.18" or "0.98" or "0.83" or "0.82" or "0.2" or "0.46" or "0.42" or "0.77" or "0.65" or "0.66" or "0.92" or "0.71" or "0.88" or "0.67" or "0.6" or "0.55" or "0.52" or "0.9" or "0.23" or "0.5" or "0.53" or "0.56" or "0.25":
- if {_check} is "0":
- set {_x} to rounded down x coordinate of location of player-1
- set {_y} to rounded down y coordinate of location of player
- set {_z} to rounded down z coordinate of location of player-1
- set {_loc} to location at {_x}, {_y}, {_z} in player's world
- if block at {_loc} is not water:
- set {_failed} to true
- if {_failed} is not set:
- add 1 to {jesustest.%player%}
- if {jesustest.%player%} is more than 0:
- clear {jesustest.%player%}
- if block 0.05 above the player is air:
- add 1 to {jesus.%player%}
- if {SkCheat.jesus.notify::%uuid of player%} is not set:
- set {SkCheat.jesus.notify::%uuid of player%} to now
- if {jesus.%player%} is greater than 3:
- loop all players:
- if {@onlyinstaff} is true:
- if {guardianstaffmode.%loop-player%} is true:
- send "{@logo} &c%player% &eMight be using &cJesus&e!" to loop-player
- stop
- else:
- if loop-player has permission "guardian.notify":
- send "{@logo} &c%player% &eMight be using &cJesus&e!" to loop-player
- stop
- else:
- wait 2 seconds
- if {jesustest.%player%} is more than 0:
- remove 1 from {jesustest.%player%}
- set {flytest.%player%} to y coordinate of location of player
- #====================================================================================================
- # Banwaves
- #====================================================================================================
- command /elder [<text>] [<player>] [<text>]:
- permission: guardian.elder
- trigger:
- if arg 1 is not set:
- message "&b&m============================="
- message "{@logo} &f/elder settp"
- message "{@logo} &f/elder setguardian"
- message "{@logo} &f/elder ban <player> <reason>"
- message "&b&m============================="
- if arg 1 is "help":
- message "&b&m============================="
- message "{@logo} &f/elder settp"
- message "{@logo} &f/elder setguardian"
- message "{@logo} &f/elder ban <player> <reason>"
- message "&b&m============================="
- if arg 1 is "settp":
- set {tp.guardian} to location of player
- message "{@logo} &aSuccessfully placed &6Tp Location&a!"
- if arg 1 is "setguardian":
- set {elder.guardian} to location of player
- message "{@logo} &aSuccessfully placed &6Guardian Location&a!"
- if arg 1 is "ban":
- if arg 2 is set:
- if arg 3 is set:
- if arg 2 does not have permission "guardian.bypass":
- teleport arg 2 to {tp.guardian}
- set {reason.%arg 2%} to arg 3
- wait 3 ticks
- spawn an elder guardian at {elder.guardian}
- set the name of the last spawned entity to "&3Guardian"
- apply strength 200 to last spawned entity
- apply slowness 200 to last spawned entity
- apply water breathing 200 to last spawned entity
- apply resistance 200 to last spawned entity
- set {dban.%arg 2%} to true
- set {guardian.kill} to true
- stop
- every second:
- if {guardian.kill} is true:
- loop all entities:
- if "%name of loop-entity%" is "&3Guardian":
- kill loop-entity
- set {guardian.kill} to false
- stop
- else:
- stop
- on any movement:
- if {dban.%player%} is true:
- cancel event
- on damage:
- if victim is a player:
- if {dban.%victim%} is true:
- set {_attacker} to the attacker
- kill {_attacker}
- kick victim due to "{@logo} &cYou are banned! Reason: &e%{reason.%victim%}%&c!"
- set {banned.%victim%} to true
- broadcast "{@logo} &a%victim% &eis banned by &3&lGuardian &efor &c%{reason.%victim%}%"
- set {dban.%victim%} to false
- execute console command "/guardian ban %victim%"
- else:
- stop
- on quit:
- if {dban.%player%} is true:
- set {banned.%player%} to true
- broadcast "{@logo} &a%player% &eis banned by &3&lGuardian &efor &c%{reason.%player%}%"
- set {dban.%player%} to false
- execute console command "/guardian ban %player%"
- every 10 seconds:
- if {@banwave} is true:
- loop all players:
- if {@custombanning} is false:
- if {@animated} is true:
- #---------------------------------------------------------------------------------------------
- if {killaura.%loop-player%} is greater or equal to {@killauradetect}:
- execute console command "elder ban %loop-player% KillAura"
- #---------------------------------------------------------------------------------------------
- if {multiaura.%loop-player%} is greater or equal to {@multiauradetect}:
- execute console command "elder ban %loop-player% MultiAura"
- #---------------------------------------------------------------------------------------------
- if {antikb.%loop-player%} is greater or equal to {@antikbdetect}:
- execute console command "elder ban %loop-player% AntiKB"
- #---------------------------------------------------------------------------------------------
- if {fastplace.%loop-player%} is greater or equal to {@fastplacecheck}:
- execute console command "elder ban %loop-player% FastPlace"
- #---------------------------------------------------------------------------------------------
- if {fastbreak.%loop-player%} is greater or equal to {@fastbreakcheck}:
- execute console command "elder ban %loop-player% FastBreak"
- else:
- #---------------------------------------------------------------------------------------------
- if {killaura.%loop-player%} is greater or equal to {@killauradetect}:
- execute console command "guardian ban %loop-player% KillAura"
- #---------------------------------------------------------------------------------------------
- if {multiaura.%loop-player%} is greater or equal to {@multiauradetect}:
- execute console command "guardian ban %loop-player% MultiAura"
- #---------------------------------------------------------------------------------------------
- if {antikb.%loop-player%} is greater or equal to {@antikbdetect}:
- execute console command "guardian ban %loop-player% AntiKB"
- #---------------------------------------------------------------------------------------------
- if {fastplace.%loop-player%} is greater or equal to {@fastplacecheck}:
- execute console command "guardian ban %loop-player% FastPlace"
- #---------------------------------------------------------------------------------------------
- if {fastbreak.%loop-player%} is greater or equal to {@fastbreakcheck}:
- execute console command "guardian ban %loop-player% FastBreak"
- else:
- #---------------------------------------------------------------------------------------------
- if {killaura.%loop-player%} is greater or equal to {@killauradetect}:
- execute console command "{@custombancmd}"
- #---------------------------------------------------------------------------------------------
- if {multiaura.%loop-player%} is greater or equal to {@multiauradetect}:
- execute console command "{@custombancmd}"
- #---------------------------------------------------------------------------------------------
- if {antikb.%loop-player%} is greater or equal to {@antikbdetect}:
- execute console command "{@custombancmd}"
- #---------------------------------------------------------------------------------------------
- if {fastplace.%loop-player%} is greater or equal to {@fastplacecheck}:
- execute console command "{@custombancmd}"
- #---------------------------------------------------------------------------------------------
- if {fastbreak.%loop-player%} is greater or equal to {@fastbreakcheck}:
- execute console command "{@custombancmd}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement