Sueta

CyberServerAntiRaid

1.0.1

Protect your server against a flood of bots.

·Plugin


Protect your server against annoying floods.

How it works:
The plugin works by detecting how many players join within a given time frame (configurable). If the player has played before [Joined atleast the day before] they will not be affected by the system. If it is a new player they if the system is triggered their actions will be limited. The Lockdown/Protection duration upon trigger is configurable.

Configuration:

Configuration
# player-before-join | Allow players to join if they have played before if the server is under attack.  
 # max-joins-within-time | how many new players can join in the time before lockdown triggers.  
 # check-reset-seconds | Is how often the join count should reset to 0.  
 # lockdown-time | how many min(s) to keep players from joining.  
 # block-new-player-chatting | blocks new players talking while lockdown is active.  
 # block-new-player-commands | blocks all commands which are not in the list 'command-whitelist'  
 # announce-protection-activated-and-disabled | if you want the plugin to alert players if the server is under lockdown / protected.  
 # TheCyberCode's plugin calculates if a player is new by if they have joined atleast a day before the current date if the player joined same day they will be treated as new and the plugin will treat them as if they have not played before.  
 # You may want to change the check values as this will depend on your server size and the normal join rate  
 # If you like my plugin please leave a review.   
played-before-join   :  true  
max-joins-within-time   :  10  
check-reset-seconds   :  4  
lockdown-time   :  10  
kick-msg   :  '&cSERVER PROTECTION IS ACTIVE, PLEASE TRY AGAIN LATER'  
chat-disabled-msg   :  '&cYou cannot use this at this time'  
command-disabled-msg   :  '&cYou cannot use ''  %cmd%'' at this time'   
block-new-player-chatting   :  true  
block-new-player-commands   :  true  
command-whitelist   : 
 - /spawn 
- /home 
- /helpop 
- /is 
- /f 
- /claim 
- /kit 
- /gm 
- /gamemode 
- /v 
- /vanish 
- /warp  
announce-protection-activated-and-disabled   :  true  
plugin  :  
  info  :  
    console-prefix   :  CASR  
    version   :  1.0.0  
    authors   : 
    - TheCyberCode  
    website   :  https://github.com/TheCyberCode  
  permissions  :  
    default-no-permission-message   :  '&cI''m sorry, but you do not have permission to 
      perform this command. Please contact the server administrators if you believe 
      that this is an error.'

Depends on:
CyberDevAPI

Screenshots:
anti new player commands.png AntiChatInLockdown.png AntiJoinForNewPlayers.png ServerProtectionEnabled.png

Similar projects

Plugin →