Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /anticheat [<text>] [<player>]:
  2.     trigger:
  3.         if player has permission "admin.ac":
  4.             if arg-1 is set:
  5.                 if arg-1 is "commands" or "cmds" or "cmdspy" or "commandspy":
  6.                     if {ac.cmdspy.%player%} is not true:
  7.                         if arg-2 is not set:
  8.                             set {ac.cmdspy.%player%} to true
  9.                             send "&f[&bMinePvP&f] &fCommand Spy Activated!" to player
  10.                         else:
  11.                             send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
  12.                     else if {ac.cmdspy.%player%} is true:
  13.                         if arg-2 is not set:
  14.                             set {ac.cmdspy.%player%} to false
  15.                             send "&f[&bMinePvP&f] &fCommand Spy Deactivated!" to player
  16.                         else:
  17.                             send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
  18.                 else:
  19.                     if arg-1 is "freeze":
  20.                         if arg-2 is set:
  21.                             if {ac.frozen.%arg-2%} is not true:
  22.                                 set {ac.frozen.%arg-2%} to true
  23.                                 send "&f[&bMinePvP&f] &fFrozen %arg-2%" to player
  24.                                 send "&f[&bMinePvP&f] &fYou Have Been Frozen!" to arg-2
  25.                             else:
  26.                                 if {ac.frozen.%arg-2%} is true:
  27.                                     set {ac.frozen.%arg-2%} to false
  28.                                     send "&f[&bMinePvP&f] &fUnfrozen %arg-2%" to player
  29.                                     send "&f[&bMinePvP&f] &fYou Have Been Unfrozen!" to arg-2
  30.                                     remove blindness from arg-2
  31.                         else:
  32.                             send "&f[&bMinePvP&f] &fPlease Select A Player!" to player     
  33.                     else:
  34.                         if arg-1 is "cps" or "clickspersecond" or "autoclicker" or "autoclick":
  35.                             if arg-2 is not set:
  36.                                 if {ac.cps.%player%} is not true:
  37.                                     set {ac.cps.%player%} to true
  38.                                     send "&f[&bMinePvP&f] &fActivated CPS Alert Anti Cheat" to player
  39.                                 else:
  40.                                     if {ac.cps.%player%} is true:
  41.                                         set {ac.cps.%player%} to false
  42.                                         send "&f[&bMinePvP&f] &fDeactivated CPS Alert Anti Cheat" to player
  43.                             else:
  44.                                 send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
  45.                         else:
  46.                             if arg-1 is "speed" or "fly" or "fast":
  47.                                 if arg-2 is not set:
  48.                                     if {ac.speed.%player%} is not true:
  49.                                         set {ac.speed.%player%} to true
  50.                                         send "&f[&bMinePvP&f] &fActivated Speed Alert Anti Cheat!" to player
  51.                                     else:
  52.                                         if {ac.speed.%player%} is true:
  53.                                             set {ac.speed.%player%} to false
  54.                                             send "&f[&bMinePvP&f] &fDeactivated Speed Alert Anti Cheat!" to player
  55.                                 else:
  56.                                     send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
  57.                             else:
  58.                                 if arg-1 is "reach":
  59.                                     if arg-2 is not set:
  60.                                         if {ac.reach.%player%} is not true:
  61.                                             set {ac.reach.%player%} to true
  62.                                             send "&f[&bMinePvP&f] &fActivated Reach Alert Anti Cheat!" to player
  63.                                         else:
  64.                                             if {ac.reach.%player%} is true:
  65.                                                 send "&f[&bMinePvP&f] &fDeactivated Speed Alert Anti Cheat!" to player
  66.                                                 set {ac.reach.%player%} to false
  67.                                     else:
  68.                                         send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player
  69.                                 else:
  70.                                     if arg-1 is "killaura" or "clickaura":
  71.                                         if arg-2 is not set:
  72.                                             if {ac.killaura.%player%} is not true:
  73.                                                 set {ac.killaura.%player%} to true
  74.                                                 send "&f[&bMinePvP&f] &fActivated Kill Aura Alert Anti Cheat!" to player
  75.                                             else:
  76.                                                 if {ac.killaura.%player%} is true:
  77.                                                     send "&f[&bMinePvP&f] &fActivated Kill Aura Alert Anti Cheat!" to player
  78.                                                     set {ac.killaura.%player%} to false
  79.                                         else:
  80.                                             send "&f[&bMinePvP&f] &fError You Don't Need A Second Argument!" to player             
  81. every 8 seconds:
  82.     loop all players:
  83.         if {ac.frozen.%loop-player%} is true:
  84.             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
  85. every tick:
  86.     loop all players:
  87.         if {ac.frozen.%loop-player%} is true:
  88.             teleport loop-player to loop-player
  89.             apply blindness to loop-player for 1 second
  90. on command:
  91.     if executor is a player:
  92.         loop all players:
  93.             if {ac.cmdspy.%loop-player%} is true:
  94.                 if arguments is set:
  95.                     send "&8[&c!&8] &6Command Spy: &4%executor% &c> &b/%command% &c%arguments%" to loop-player
  96.                 else:
  97.                     send "&8[&c!&8] &6Command Spy: &4%executor% &c> &b/%command%" to loop-player
  98. command /elogs:
  99.     trigger:
  100.         if player has permission "admin.logs":
  101.             send {logs} to player
  102.         else:
  103.             send "&f[&bMinePvP&f] &fYou Do Not Have Permission To Do That!" to player
  104. every 30 seconds:
  105.     delete {logs}
  106. on command:
  107.     add "%executor% /%command%" to {logs}
  108. on chat:
  109.     add "%player% %message%" to {logs}
  110. on left click:
  111.     add 0.15 to {cps.%player%}
  112. every 5 seconds:
  113.     loop all players:
  114.         if {cps.%loop-player-1%} is above 15:
  115.             loop all players:
  116.                 if {ac.cps.%loop-player-2%} is true:
  117.                     send "&8[&c!&8] &6CPS: &4%loop-player-1% &c> &b%{cps.%loop-player-1%}%" to loop-player-2
  118.             delete {cps.%loop-player-1%}
  119. every 5 seconds:
  120.     loop all players:
  121.         set {begin.%loop-player-1%} to loop-player-1's location
  122.         wait 5 seconds
  123.         set {end.%loop-player-1%} to loop-player-1's location
  124.         set {difference.%loop-player-1%} to distance between {begin.%loop-player-1%} and {end.%loop-player-1%}
  125.         if {difference.%loop-player-1%} is above 21.6:
  126.             loop all players:
  127.                 if {ac.speed.%loop-player-2%} is true:
  128.                     send "&8[&c!&8] &6Speed: &4%loop-player-1% &c> &b%{difference.%loop-player-1%}% &cBlocks Per Second" to loop-player-2
  129.             delete {difference.%loop-player-1%}
  130.             delete {end.%loop-player-1%}
  131.             delete {begin.%loop-player-1%}
  132. on damage:
  133.     if attacker is a player:
  134.         if attacker's tool is not a bow:
  135.             if attacker's target entity is not victim:
  136.                 loop all players:
  137.                     if {ac.killaura.%loop-player%} is true:
  138.                         send "&8[&c!&8] &6Killaura: &4%attacker% &bMight Be Using Killaura!" to loop-player
  139. on damage:
  140.     if attacker is a player:
  141.         if distance between attacker and victim is above 4.8:
  142.             if attacker's tool is not a bow:
  143.                 set {distance} to distance between attacker and victim
  144.                 loop all players:
  145.                     if {ac.reach.%loop-player%} is true:
  146.                         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