Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # PREFIX OPTION (USE COLOR CODES)
- # This is the one that will be used when sending the alerts, and using the admin command.
- prefix: &3Server
- # DIVIDER OPTION (USE COLOR CODES)
- # This is the option that will be used to divide up the prefix, and the text.
- divider: &8-
- # ANTICHEAT NAME
- # This is the option for the anticheat name.
- anticheatname: Anticheat
- # STAFF PERM
- # The permission for staff members
- alertperm: staff
- # ADMIN PERMISSION
- # This will be used for the admin command
- adminperm: admin
- # MAX CPS (AUTOCLICKER)
- # Depending on the max cps, it will send alerts to staff members
- maxcps: 15
- #
- # HARD CODE
- #
- # DO NOT EDIT UNLESS YOU KNOW WHAT YOURE DOING
- #
- command /{@anticheatname} [<text>] [<text>]:
- permission: {@alertperm}
- permission message: &cYou dont have permission!
- trigger:
- if arg 1 is not set:
- send ""
- send "&3&lSUBCOMMANDS"
- send ""
- send "&3/{@anticheatname} notify"
- send "&c- Toggle anticheat notifications"
- send ""
- if arg 1 is set:
- if arg 1 is not "notify":
- send ""
- send "&3&lSUBCOMMANDS"
- send ""
- send "&3/{@anticheatname} notify"
- send "&c- Toggle anticheat notifications"
- send ""
- if arg 1 is "notify":
- if {alert::%player's uuid%} is true:
- set {alert::%player's uuid%} to false
- send "{@prefix} {@divider} &7You have toggled alerts &cOff"
- if {alert::%player's uuid%} is false:
- set {alert::%player's uuid%} to true
- send "{@prefix} {@divider} &7You have toggled alerts &aOn"
- on join:
- if {alert::%player's uuid%} is not set:
- set {alert::%player's uuid%} to true
- every 1 second:
- loop all players:
- set {clicks::%loop-player's uuid%} to 0
- on click:
- add 1 to {clicks::%player's uuid%}
- if {clicks::%player's uuid%} is greater or equal to {@maxcps}:
- loop all players:
- player has permission "staff"
- {alert::%loop-player's uuid%} is true
- player is not holding any pickaxe
- send "{@prefix} {@divider} &e%player% &7is suspected of &eautoclicker &f(%{clicks::%player's uuid%}% cps)"
- on shoot:
- if projectile is an arrow:
- add 1 to {shots::%shooter's uuid%}
- if {shots::%shooter's uuid%} is greater or equal to 7:
- loop all players:
- player has permission "staff"
- {alert::%loop-player's uuid%} is true
- send "{@prefix} {@divider} &e%player% &7is suspected of &efastbow &f(%{shots::%shooter's uuid%}% shots a sec)"
- every 2 seconds:
- loop all players:
- set {shots::%loop-player's uuid%} to 0
- on damage of player:
- attacker is a player
- projectile doesn't exist
- if distance between attacker and victim is greater than 4.3:
- loop all players:
- player has permission "staff"
- {alert::%loop-player's uuid%} is true
- send "{@prefix} {@divider} &e%attacker% &7is suspected of &ereach"
- every 3 seconds:
- loop all players:
- loop-player's gamemode is not creative
- loop-player is not flying
- set {xlocation.%loop-player%} to the x location of loop-player
- wait 2 seconds
- set {xlocation2.%loop-player%} to the x location of loop-player
- if difference between {xlocation.%loop-player%} and {xlocation2.%loop-player%} > 14:
- player has permission "staff"
- {alert::%loop-player's uuid%} is true
- send "{@prefix} {@divider} &e%player% &7is suspected of &ereach"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement