Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- enabled: true
- # __________________________ #
- # #
- # Created by: MisterBasic #
- # Version: EARLY_TESTING 1.0 #
- # __________________________ #
- # #
- # Permissions #
- # __________________________ #
- #
- # goldeneyes.use - Main GoldenEyes command
- # goldeneyes.notfiy - Get GoldenEyes notifications
- # goldeneyes.bypass - Bypass all or specific checks
- # goldeneyes.staffchat - Allows /staffchat, talk to all staff members online
- # goldeneyes.staffchat.view - view staff chat (Requrires goldeneyes.staffchat)
- # goldeneyes.displayname
- # goldeneyes.isonline - Allows /isonline, check if a player is online
- # goldeneyes.vanish - Allows /vanish, Vanish from plain sight!
- # goldeneyes.ping
- # Please have the following:
- # - Skript
- # - SkQuery
- # ___________________________________________ #
- # #
- # Configuration File #
- # ___________________________________________ #
- prefix: &6[&eGoldenEyes&6] &r
- punish: kick # Can be kick, ban, and later it will have tempban
- banMessage: disabled # Option Disabled
- noPermission: &cYou do not have permission!
- goldeneyesAll: &eThis server's anticheat is run by &6GoldenEyesAntiCheat&e!
- # Staff Chat #
- staffchat-prefix: &4StaffChat»
- staffchat-message-colorcode: c
- # Checks: #
- autoclicker: true
- speed: treu
- sneak: true
- fastplace: true
- # More Stuff: #
- servername: &9Example Server&r
- noReasonMute: Instant Mute
- noReasonBan: Instand Ban
- # Disable Cmds#
- DisplayNameCmdDisabled: true
- # __________________________________________________________________________________ #
- # #
- # DO NOT GO FURTHER THAN HERE! THERE IS NO NEED #
- # UNLESS YOU KNOW WHAT YOU'RE DOING!! #
- # __________________________________________________________________________________ #
- variables:
- # __________________________________________________________________________________ #
- # #
- # Variables #
- #|__________________________________________________________________________________ #
- {goldeneyes::clickercheck.%player%} = 0
- {goldeneyes::places.block.%player%} = 0
- {goldeneyes::player.fastplace.%player%}
- {goldeneyes::violations.%player%.fastplace} = 0
- {goldeneyes::violations.%player%.clicker} = 0
- {goldeneyes::violations.%player%.speed} = 0
- {goldeneyes::isonline.%player%} = false
- {goldeneyes::speed.%player%} = 0
- # On Load
- on load:
- loop all players:
- if loop-player is flying:
- set {isFlying} to true
- else:
- set {isFlying} to false
- if loop-player is 1 block above water:
- wait 1 second
- if {isFlying} is true:
- stop
- # _____________________________ #
- # #
- # GoldenEyesAnticheat #
- # _____________________________ #
- # When the player joins, it will reset there scores and tell the server they are online
- on join:
- set {goldeneyes::clickercheck.%player%} to 0
- set {goldeneyes::isonline.%player%} to true
- # When a player leaves, it will reset their scores and tell the server they are offline
- on quit:
- set {goldeneyes::clickercheck.%player%} to 0
- set {goldeneyes::isonline.%player%} to false
- # ---
- # +-+ AutoClicker detection +-+
- # ---
- on leftclick:
- if {@autoclicker} is true:
- add 1 to {goldeneyes::clickercheck.%player%}
- on block damage:
- remove 1 from {goldeneyes::clickercheck.%player%}
- every 1 seconds:
- loop all players:
- wait 1 seconds
- if {cps.%player%} >= 16:
- player doesn't have permission "goldeneyes.bypass.autoclicker" or "goldeneyes.bypass"
- send "%{@prefix}%&6 %loop-player% may be cheating! Detected AutoClicker / Macro: CPS %{cps.%player%}% (VL {violations.%player%.clicker}) [Ping: %loop-player's ping%]" to console
- add 1 to {clicker.%player%.offence}
- set {cps.%player%} to 0
- stop trigger
- # ---
- # +-+ Speed Detection +-+
- # ---
- on any movement:
- add 0.1 to {speed}
- every 1 seconds:
- if {@speed} is true
- if {goldeneyes::speed.%player%} is 4.6:
- loop all players:
- if {goldeneyes::speed} is 4.6:
- if {isFlying} is false:
- set {goldeneyes::speed.%player%} to player
- send "{@prefix}%{goldeneyes.speed.%player%}% may be cheating, Detected Speed: Speed: {speed}"
- set {goldeneyes::violations.speed.} to 1
- else:
- cancel event
- # ---
- # +-+ Plugin Stuff +-+
- # ---
- on enable:
- set {noperm} to {@prefix}{noPermission}
- if {@enabled} is not set:
- send "Error: ""enable"" is nor enable|disable, shutting down plugin"
- cancel event
- if {@enabled} is false:
- send "Stopping GoldenEyes.sk."
- cancel event
- if {@enabled} is true:
- send "&8&m-----------------------"
- send " Goldeneyes enabled"
- send "&8&m-----------------------"
- on disable:
- send "&8&m-----------------------"
- send " Goldeneyes disabled"
- send "&8&m-----------------------"
- # --------------------------------------------------------------
- # +-+ Sneak Detection has 1 event so far, adding another one +-+
- # --------------------------------------------------------------
- on chat:
- if player has permission "goldeneyes.bypass.sneak" or "goldeneyes.bypass"
- if player is sneaking:
- cancel event
- {@punish} the player due to "{@prefix}You have done a impossible action! You have since been kicked from the server."
- # ---------------------------------------------
- # +-+ FastPlace detection, value may change +-+
- # ---------------------------------------------
- on place:
- if {@fastplace} is true:
- add 1 to {place.block.%player%}
- if {place.block.%player%} >= 10:
- set {playerIsCheating.%player%} to player
- loop all players:
- player has permission "goldeneyes.notify"
- send "{@prefix}%{playerIsCheating.%player%}% may be cheating, Detected FastPlace (VL {violations.%player%.fastplace}) [Ping: %loop-player's ping%]"
- delete {playerIsCheating.%player%}
- # ------------------------
- # +-+ Player is banned +-+
- # ------------------------
- on connect:
- loop all players:
- if {goldeneyes::banned.%player%} is true:
- set {loop-player} to %loop-player%
- kick loop-player due to "{@prefix}%nl%&cYou are permanently suspended from joining this server:%nl% %nl% {goldeneyes::banned.%player%.reason} Contact: %{contact-info}%"
- loop all players:
- player has permission "goldeneyes.noify.banmessages"
- send "{@prefix}&c%{loop-player}% &rtried to join by is &cPermanently banned&r!"
- delete {loop-player}
- send "Player is not banned, check bypassed" to console
- # --------------------------------------------------------
- # +-+ I like to put all my commands in one section ^-^ +-+
- # --------------------------------------------------------
- command /ban <player> [text]:
- description: Ban a player from GoldenEyesAnticheat
- permission: goldeneyes.ban
- permission message: {noperm}
- usage: /ban <player> [REASON]
- aliases: /goldeneyesban, /goldeneyes:ban, /anticheatban
- trigger:
- set {goldeneyes::banned.%player%.reason} to args 2
- if arg 2 is not set:
- set {goldeneyes::banned.%player%.reason} to "{@noReasonBan}"
- set {goldeneyes::banned.%player%} to true:
- kick the player due to "{@prefix}You have been permanently suspended from joining this server: %nl%%{goldeneyes::banned.%player%.reason%"
- command /staffchat <message>:
- description: talk in staff chat
- permission: goldeneyes.staffchat
- permission message: {noperm}
- usage: /staffchat <message>
- aliases: /sc
- trigger:
- loop all players:
- loop-player has permission "goldeneyes.staffchat.view"
- message "{@staffchat-prefix} &%{@staffchat-color}%arg 1%" to loop-player
- stop trigger
- command /ping [<player>]:
- description: Get the players ping
- permission: goldeneyes.ping
- permission message: {noperm}
- aliases: /pong
- trigger:
- if arg 1 is not set:
- send "&2Ping &e» &a%player's ping%"
- else:
- send "&2Ping &e» &a%player-arg's ping%"
- command /vanish [<text>]:
- description: Go invisible
- permission: goldeneyes.vanish
- permission message: {noperm}
- aliases: /v, /gev
- trigger:
- if arg 1 is not set:
- apply invisibility 2 to the player for 999 days
- set {vanish.%player%}
- send "{@prefix}&aYou have vanished!"
- else:
- if arg 1 is set:
- if arg 1 is "on":
- apply invisibility 2 to the player for 999 days
- set {vanish.%player%}
- send "{@prefix}&aYou have vanished!"
- if arg 1 is "off":
- remove invisibility from the player
- send "{@prefix}&aYou have unvanished!"
- command /goldeneyes [<text>] [<text>]:
- description: Main GoldenEyes Command
- usage: /goldeneyes <action> <action's action>
- aliases: /ge, /geac
- trigger:
- if arg 1 is not set:
- send "&8&m---------------&eGoldenEyes&8&m------------------"
- send "/goldeneyes: Main GoldenEyes command."
- send "/goldeneyes admins: List all admins"
- send "/goldeneyes console [Command]: Make console execute a command."
- send "/goldeneyes unban <player>"
- send "&8&m---------------&eGoldenEyes&8&m------------------"
- if player has permission "goldeneyes.use":
- if arg 1 is "admins":
- loop all players:
- if loop-player has permission "goldeneyes.admin"
- send "{@prefix}Admins: %loop-player%"
- else:
- send "{@prefix}&cThere are no admins."
- else:
- if arg 1 is "console":
- if player has permission "goldeneyes.use.console":
- make console execute "%arg 2%"
- send "{@prefix} Successfully made console execute %arg-2%"
- else:
- send "%{noperms}%"
- else:
- if arg 1 is "unban":
- reset {goldeneyes::banned.%player%}
- else:
- if arg 1 is "ban":
- set {goldeneyes::banned.%arg-2%} to true
- else:
- send "&8&m---------------&eGoldenEyes&8&m------------------"
- send "/goldeneyes: Main GoldenEyes command."
- send "/goldeneyes admins: List all admins"
- send "/goldeneyes console [Command]: Make console execute a command."
- send "/goldeneyes ban <player>"
- send "/goldeneyes unban <player>"
- send "&8&m---------------&eGoldenEyes&8&m------------------"
- else:
- player does not have permission "goldeneyes.use"
- send "{@prefix} %{goldeneyes-to-all}%"
- command /isonline:
- description: Check if a player is online
- permission: goldeneyes.isonline
- permission message: {noperm}
- trigger:
- if player is online:
- send "{@prefix}&a%player arg% is online."
- if player is not online:
- send "{@prefix}&a%player arg% is offline"
- else:
- send "{@prefix}&cThat player has never joined %{servername}%&c!"
- on command "/goldeneyes config":
- if player has permission "goldeneyes.admin"
- send "{@prefix}&eTo edit the config, go into plguins\Skript\scripts\GoldenEyes.sk"
- else:
- send "{@prefix}&cNo Access"
- # /DisplayName Could be buggy, I recommend disabling it
- command /displayname [Name]:
- description: Change or view your display name
- trigger:
- if {@DisplayNameCmdDisabled} is true:
- cancel event
- send "{@prefix}&cYou may not use this commands as it is disabled."
- else:
- if player has permission "goldeneyes.displayname"
- if arg 1 is set:
- set player's display name to arg 1
- send "{@prefix}&aSuccessfully set display name to %arg 1%"
- else:
- send "{@prefix}&eYour display name is %executor's display name%"
- else:
- send "%{noperm}%"
- command /mute <player> <time> <unit> [Reason]:
- description: Mute a player
- trigger:
- if player has permission "goldeneyes.mute":
- if arg 1 is not set:
- send "[@prefix}&cMissing Required argument: <player>"
- stop
- else:
- if arg 2 is not set:
- send "{@prefix}&cMissing Required argument: <time>"
- stop
- else:
- if arg 3 is not set:
- send "{@prefix}&cMissing Required Argument: <timeUnit> e.g. days, hours, minutes"
- else:
- if arg 4 is not set
- set {_muted.reason.%player-arg%} to "{@noReasonMute}"
- else:
- set {_muted.%player-arg%} to true
- set {_muted.unit.%player%} to arg 3
- set {_muted.time.%player%} to arg 2
- set {_muted.reason.%player%} to arg 4
- wait {_muted.time.%player%}
- delete {_muted.%player-arg%}
- delete {_muted.time.%player%}
- delete {_muted.reason.%player%}
- delete {_muted.unit.%player%}
- send "{@prefix}Successfully muted %player arg% for %arg 2% %arg 3%: %arg 4%"
- else:
- send "%{noperm}%"
- # -----------------------------------------------
- # +-+ Stops you from reconnecting too quickly +-+
- # -----------------------------------------------
- on quit
- set {lastjoin.%player%} to 2
- on join:
- if {lastjoin.%player%} is >= 1:
- kick the player due "{@prefix}&cYou joined too quickly! Please wait a full 2 seconds before joining again!"
- every 1 seconds:
- loop all players:
- remove 1 from {lastjoin.%loop-player%}
- if {goldeneyes::sincelastchat.%loop-player%} <= 1:
- remove 1 from {goldeneyes::sincelastchat.%loop-player%}
- else:
- stop
- set {goldeneyes::sincelastchat.%loop-player%} to 0
- every 10 seconds:
- loop all players
- if {chatoffense.%loop-player%} = 3:
- kick the player due to "{@prefix}You have been kicked for:%nl%Spam %nl% %nl% Please wait 2 seconds before joining again."
- delete {chatoffence.%loop-player%}
- on chat:
- if {goldeneyes::sincelastchat.%player%} >= 1:
- send "Please wait before chatting again. You may be kicked for spam"
- add 1 to {chatoffence.%player%}
- else:
- set {goldeneyes::sincelastchat.%player%} to 5
- send "%player%&r:%message%"
- loop all players:
- if {_muted.%loop-player%} is true:
- cancel event
- send "{@prefix}&aYou are muted for %{_muted.time.%player%}% %{_muted.unit.%player%}%: %{_muted.reason.%player%}%"
- # _______________________________________________________________
- #
- # THE BIG KILLAURA + TRIGGERBOT CHECK
- # _______________________________________________________________
- every 20 seconds:
- reset {goldeneyes::accuracy.*}
- every 1 seconds:
- if {@killaura} is true:
- loop all players:
- if {goldeneyes::accuracy.%loop-player%} <= 1:
- cancel event
- else:
- remove 1 from {goldeneyes::accuracy.%loop-player%}
- if {violations.%loop-player%.killaura} >= 20:
- set {violatios.%loop-player%.killaura} to 0
- kick loop-player due to "{@prefix}You were kicked from the server for having too many violations. %nl% You're current violations have been reset and you may %nl% join again. Thank you! %n% "
- else:
- cancel event
- on attack:
- if {@killaura} is true:
- loop all players:
- if {goldeneyes::accuracy.%loop-player%} is 50:
- add 1 to {violations.%player%.killaura}
- send "{@prefix}%loop-player% may be cheating! Detected KillAura / Triggerbot, High Accuracy (VL {violations.%player%.killaura}) [Ping: %loop-player's ping%]"
- add 1 to {goldeneyes::accuracy.%loop-player%}
- # -------------------
- # +-+ End of file +-+
- # -------------------
Advertisement
Add Comment
Please, Sign In to add comment