Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /anticheat [<text>] [<player>]:
- trigger:
- if player has permission "admin.ac":
- if arg-1 is set:
- if arg-1 is "commands" or "cmds" or "cmdspy" or "commandspy":
- if {ac.cmdspy.%player%} is not true:
- if arg-2 is not set:
- set {ac.cmdspy.%player%} to true
- send "&f[&bMinePvP&f] &fCommand Spy Activated!" to player
- else:
- send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
- else if {ac.cmdspy.%player%} is true:
- if arg-2 is not set:
- set {ac.cmdspy.%player%} to false
- send "&f[&bMinePvP&f] &fCommand Spy Deactivated!" to player
- else:
- send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
- else:
- if arg-1 is "freeze":
- if arg-2 is set:
- if {ac.frozen.%arg-2%} is not true:
- set {ac.frozen.%arg-2%} to true
- send "&f[&bMinePvP&f] &fFrozen %arg-2%" to player
- send "&f[&bMinePvP&f] &fYou Have Been Frozen!" to arg-2
- else:
- if {ac.frozen.%arg-2%} is true:
- set {ac.frozen.%arg-2%} to false
- send "&f[&bMinePvP&f] &fUnfrozen %arg-2%" to player
- send "&f[&bMinePvP&f] &fYou Have Been Unfrozen!" to arg-2
- remove blindness from arg-2
- else:
- send "&f[&bMinePvP&f] &fPlease Select A Player!" to player
- else:
- if arg-1 is "cps" or "clickspersecond" or "autoclicker" or "autoclick":
- if arg-2 is not set:
- if {ac.cps.%player%} is not true:
- set {ac.cps.%player%} to true
- send "&f[&bMinePvP&f] &fActivated CPS Alert Anti Cheat" to player
- else:
- if {ac.cps.%player%} is true:
- set {ac.cps.%player%} to false
- send "&f[&bMinePvP&f] &fDeactivated CPS Alert Anti Cheat" to player
- else:
- send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
- else:
- if arg-1 is "speed" or "fly" or "fast":
- if arg-2 is not set:
- if {ac.speed.%player%} is not true:
- set {ac.speed.%player%} to true
- send "&f[&bMinePvP&f] &fActivated Speed Alert Anti Cheat!" to player
- else:
- if {ac.speed.%player%} is true:
- set {ac.speed.%player%} to false
- send "&f[&bMinePvP&f] &fDeactivated Speed Alert Anti Cheat!" to player
- else:
- send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
- else:
- if arg-1 is "reach":
- if arg-2 is not set:
- if {ac.reach.%player%} is not true:
- set {ac.reach.%player%} to true
- send "&f[&bMinePvP&f] &fActivated Reach Alert Anti Cheat!" to player
- else:
- if {ac.reach.%player%} is true:
- send "&f[&bMinePvP&f] &fDeactivated Speed Alert Anti Cheat!" to player
- set {ac.reach.%player%} to false
- else:
- send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
- else:
- if arg-1 is "killaura" or "clickaura":
- if arg-2 is not set:
- if {ac.killaura.%player%} is not true:
- set {ac.killaura.%player%} to true
- send "&f[&bMinePvP&f] &fActivated Kill Aura Alert Anti Cheat!" to player
- else:
- if {ac.killaura.%player%} is true:
- send "&f[&bMinePvP&f] &fActivated Kill Aura Alert Anti Cheat!" to player
- set {ac.killaura.%player%} to false
- else:
- send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
- every 8 seconds:
- loop all players:
- if {ac.frozen.%loop-player%} is true:
- send "&f[&bMinePvP&f] &fYou Are Frozen! Please Contact Staff On Our Discord To Know Why You May Have To Screen Share!" to loop-player
- every tick:
- loop all players:
- if {ac.frozen.%loop-player%} is true:
- teleport loop-player to loop-player
- apply blindness to loop-player for 1 second
- on command:
- if executor is a player:
- loop all players:
- if {ac.cmdspy.%loop-player%} is true:
- if arguments is set:
- send "&8[&c!&8] &6Command Spy: &4%executor% &c> &b/%command% &c%arguments%" to loop-player
- else:
- send "&8[&c!&8] &6Command Spy: &4%executor% &c> &b/%command%" to loop-player
- command /elogs:
- trigger:
- if player has permission "admin.logs":
- send {logs} to player
- else:
- send "&f[&bMinePvP&f] &fYou Do Not Have Permission To Do That!" to player
- every 30 seconds:
- delete {logs}
- on command:
- add "%executor% /%command%" to {logs}
- on chat:
- add "%player% %message%" to {logs}
- on left click:
- add 0.15 to {cps.%player%}
- every 5 seconds:
- loop all players:
- if {cps.%loop-player-1%} is above 15:
- loop all players:
- if {ac.cps.%loop-player-2%} is true:
- send "&8[&c!&8] &6CPS: &4%loop-player-1% &c> &b%{cps.%loop-player-1%}%" to loop-player-2
- delete {cps.%loop-player-1%}
- every 5 seconds:
- loop all players:
- set {begin.%loop-player-1%} to loop-player-1's location
- wait 5 seconds
- set {end.%loop-player-1%} to loop-player-1's location
- set {difference.%loop-player-1%} to distance between {begin.%loop-player-1%} and {end.%loop-player-1%}
- if {difference.%loop-player-1%} is above 21.6:
- loop all players:
- if {ac.speed.%loop-player-2%} is true:
- send "&8[&c!&8] &6Speed: &4%loop-player-1% &c> &b%{difference.%loop-player-1%}% &cBlocks Per Second" to loop-player-2
- delete {difference.%loop-player-1%}
- delete {end.%loop-player-1%}
- delete {begin.%loop-player-1%}
- on damage:
- if attacker is a player:
- if attacker's tool is not a bow:
- if attacker's target entity is not victim:
- loop all players:
- if {ac.killaura.%loop-player%} is true:
- send "&8[&c!&8] &6Killaura: &4%attacker% &bMight Be Using Killaura!" to loop-player
- on damage:
- if attacker is a player:
- if distance between attacker and victim is above 4.8:
- if attacker's tool is not a bow:
- set {distance} to distance between attacker and victim
- loop all players:
- if {ac.reach.%loop-player%} is true:
- send "&8[&c!&8] &6Reach: &4%attacker% &bMight Be Using Reach &c%{distance}% Blocks Away!" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement