Countdown

Countdown

16.9k Downloads

This is my first plugin!

Countdown is a simple plugin used to broadcast a countdown to users on a server. Users who have the correct permissions can start a countdown, either by calling a timer or by declaring one on the fly.


Features:

  • Start a timer on the fly.
  • Start a timer declared in a timers file.
  • Cancel a running timer.
  • People who can start timers secured by permissions.


Commands:

There are 4 commands:

/countdown <x> - Start a countdown, starting a <x> seconds.
/countdown <timer> - Start a countdown by declaring the name of the timer.
/countdown cancel - Cancels the currently running countdown.
/countdown reload - Reload the config and timers files.


Installing:

Put the .jar in your plugins folder. The config and timers files will be created on first run.


Config:

displaybyhour - Displays the countdown message every hour.
displaybyminute - Displays the countdown message every minute.
displaybyhalfminute - Displays the countdown message every 30 seconds.
displayatten - Displays the countdown message at 10, 9, 8...

The timers.yml file contains all the timers that a user can start. Here is an example of a timer:

exampletimer:
start: 60
message: Event begins in <x> seconds!
start_mess: Event countdown has started!
zero_mess: Go!
cmd: mycommand

Start message, zero message, and command are optional.


Permissions:

Uses PermissionsBukkit

Permission nodes: countdown.start - Ability to start/cancel a countdown.


Changelog:

Version 2.2:
Added option to display time in 5 minute increments during countdown
Improved help options when running '/countdown'
Updated to 1.6.4-R2.0

Version 2.1:
Added 'time' command to display remaining time
Updated to 1.4.2-R0.2

Version 2.0: Added start message option.
Added ability to automatically run command at end of countdown.
Updated to newest Bukkit version.

Version 1.0

Initial release version.