Counter

Counter by Mudsquisher

My first plugin that will broadcast a fully configurable count up or countdown with the specified command. Includes simple configuration, with color and specific permissions per command. This plugin might be useful for starting simple countdowns for PvP or races. I understand many other plugins have this feature and may do more, but I thought this was a good starting point for a first plugin, so here it is. :)


Signs

Simply create a sign using the following formats and if you have done it right, "[Counter]" should become blue. Once sign is colored, right click it to activate the count and left click to cancel.

Countdown Format:


[Counter]
down
time
interval

Example:
[Counter]
down
10
5

So if "[Counter]" is on first line of sign and "down" is on second line, it will start a countdown from the number you put on line 3 to 0 and will count by the number you put on line 4. So when right clicked, it would display 10 then 5 then 0.

Count up Format:


[Counter]
up
interval

So if "[Counter]" is on first line of sign and "up" is on second line, it will start a count up from 0 and count by the number on line 3. It will continue to count until you left click it.

Cancel Format:


[Counter]
cancel

So left clicking or right clicking will cancel any current count.


Commands:

If you do not give an interval, it will use the default_interval defined in the config.

[] required, <> optional

/countdown [startingnumber] <interval>

  • Ex: /countdown 10 5 - will begin a countdown from 5 to 0 counting by 5.


You don't have to give a startingnumber or an endingnumber. But if you give one, you must give the other.
/countup <startingnumber> <endingnumber> <interval>

  • Ex: /countup 0 10 5 - will begin counting up from 0 to 10 by 5.
  • Ex: /countup - will begin counting from 0 to infinity. Type: /ccancel to stop the count


/ctdown [time] <interval>

  • Will activate the countdown triggers. So pressing a button will start a count down from time to 0 by interval.
  • If the countdown was activated by a button, when it finishes, the button will activate for 1 sec.
  • If the countdown was activated by a lever, when it finishes, the lever will turn and stay on.


/ctup <interval>

  • Will activate the count up triggers. So pressing a button will start a count up, pressing again will stop it.


/ccancel

  • Will cancel any count in progress


/reloadcounter

  • Ex: /reloadcounter - will reload the configuration

Permissions

Operators get all permissions by default
counter.* - Gives access to all counter permissions

  • counter.reload - Gives access to the /reloadcounter command
  • counter.ccancel - Gives access to the /ccancel command
  • counter.countdown - Gives access to the /countdown command
  • counter.countup - Gives access to the /countup command
  • counter.ctup - Gives access to the /ctup command
  • counter.ctdown - Gives access to the /ctdown command
  • counter.signdown - Gives access to countdown signs
  • counter.signup - Gives access to countup signs
  • counter.signcancel - Gives access to cancel signs

Configuration

http:dev.bukkit.org/server-mods/counter/pages/configuration/


Color Codes

& = Ampersand / and / shift+7

  • &4 Red
  • &c Rose
  • &6 Gold
  • &e Yellow
  • &2 Green
  • &a Lightgreen
  • &b Lightblue
  • &3 Cyan
  • &1 Navy
  • &9 Blue
  • &d Lightpurple
  • &5 Purple
  • &f White
  • &7 Lightgray
  • &8 Gray
  • &0 Black

Ideas

These are only ideas/suggestions that have been considered and are not guaranteed to be implemented, and a time frame is certainly out of question.
*More configuration

  • Individual counts
  • Group counts
  • Region counts


If you would like to suggest a feature, report a bug or have a question;
please post below, file a ticket or private message Mudsquisher!


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Recent Files

Bukkit