KickStart

This project is abandoned.

Whether this project is out of date or its author marked it as abandoned, this project is no longer maintained.

If you wish to take this project over, please report it and state your intentions.

KickStart by aciid

Kick players with a custom message until the server has finished starting up.
http://mcstats.org/signature/kickstart.png

I developed my plugin, KickStart for our server after noticing that some plugins on 1.3 seem to take longer to start up, during this time we noticed that if parts of some plugins (for instance WorldGuard region flags) hadn't fully loaded players were able to bypass any protection they offered. KickStart can be used to combat this problem, and can also be used to optimise the startup of your server since theoretically the server should start up a little faster if it doesn't have to deal with players joining during this time.

This plugin has 2 modes, its primary mode (enabled by default) is to check the interval between each server tick at a configurable rate, checking to see if the interval meets the target threshold, this check will be carried out a configurable amount of times until all checks have passed meaning the server's ticks are stable. Players will be kicked with a custom message until that happens. All of these values are defined in the config.

The second mode is just a simple "Kick players for x amount of seconds upon server startup".

Newest plugin version: v0.7

Compatible with: [1.3.1-R2.0]+

Commands & permissions:

Quote:

- kickstart.bypass
Bypasses kickstart plugin, only if enabled in config!

/ks or /kickstart toggle
- Reload config and toggle plugin on/off (player only)
- Requires kickstart.toggle or OP permission!

Config:

### Target threshold is the percent of max tps the server needs to pass the check

### Default 10 puts the threshold at 90% (100-10), equal to 18/20tps (20 - 10%)

target threshold: 10

### Check interval in ticks, when the plugin should calculate tick delays.

### Should not be set below 10. Default value is fine.

check interval: 40

### Amount of times the target threshold has to be beaten. This will be checked

### on each interval defined above.

target match: 5

### If set to true, the server must pass all tick checks cleanly without failing

### in between, if one check fails the count is reset to 0! Recommended!

consecutive: true

### Enable this to use the feature below. If disabled then feature above will be used instead.

Use seconds: false

### How long players will be kicked for after server start, in seconds.

Delay in seconds: 30

### The message that players will be kicked with when joining during server startup.

Kick message: Server is starting up please try again in a few seconds!

### Enable this to see tick check fails/passes as they happen in console.

Extra output: true

### Enable this to allow OP and players with permission to bypass KickStart

### (NOT RECOMMENDED)

Allow bypass: false

Changelog:

Quote from KickStart v0.6:

+ Added to mcstats.org's Plugin Metrics

Quote from KickStart v0.6:

+ Added option to bypass for players with OP or permissions. Disabled by default
If enabled, plugin will use PlayerLoginEvent instead of AsyncPlayerPreLoginEvent!

Quote from KickStart v0.5:

+ Added custom target threshold for TPS feature
+ Added log extra TPS output option
+ Added consecutive option (reset count if a single check fails)
- Removed unused onPlayerJoin listener

Quote from KickStart v0.3:

+ Added new default TPS feature;
+ Configurable check interval & amount of times to reach threshold (-10%)

Quote from KickStart v0.2:

+ Added custom kick message (set in config)
+ Added custom delay (set in config)
+ Added more tries/catches to avoid errors.

Quote from KickStart v0.1:

Created plugin! Feature: Kick players for 20 seconds on start up!

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of Lewisfinn157 Lewisfinn157 May 23, 2013 at 17:34 UTC - 0 likes

    hi stucking, How do you create a plugin like can u send me a link -grabra

  • Avatar of StuckingFoned StuckingFoned Nov 08, 2012 at 10:33 UTC - 0 likes


    I am aware, unfortunately I made that change but have since lost all the code.

    Plugin will be reqwritten as soon as I have a free weekend. Sorry about that.

    Marked as inactive for now.

    Last edited Nov 08, 2012 by StuckingFoned

    24/7 Survival & Creative - Ballz of Steel

    • Survival & Creative • Multi-World • Nether PvP • No Whitelist •
    • 99.5%+ Uptime • Small community • Forums • Online map • Professional Staff •
    • IP: play.ballzofsteel.com •

    Click here to view plugins released by me

  • Avatar of Tux2 Tux2 Nov 08, 2012 at 01:19 UTC - 0 likes

    On line 141 of KickStart.java you have the line: KickStart.this.getServer().getScheduler().cancelAllTasks(); which kills all tasks. Fix this error as it is killing quite a few plugins in their tracks when they start up threads. The proper way of killing your tasks is this way: Bukkit.getScheduler().cancelTasks(this);

    http://myfavs.me/bcs.pngDonate Bitcoins?1Lr7prAnqYpZe2UizvPKV2Cg4KSuj2weXb
    If you didn't take the time to read how my plugins work, don't expect me to take the time to diagnose your stupidity.
    If updates to my plugins depended on donations, they would never update. Donate!

  • 3 comments

Facts

Date created
Sep 05, 2012
Category
Last update
Sep 05, 2012
Development stage
Abandoned
Language
  • enUS
License
All Rights Reserved
Downloads
1,503
Recent files

Authors