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!
Mudsquisher, would you like to update this plugin to 1.7.2? I like the things i read and want to use it. But because it isn't updated I can't.
Hey everyone! I have just released a new update! I am now active and ready to make some improvements!
Unfortunately, this version is a very UNSTABLE update, v1.4.1. My intention for this update is to show you the new features I have added and the changes to come. If you use this version and report any bugs found it will help a bunch for the next update. However, you must continue to be patient and help me so I can get better updates out. I intend to work harder on this plugin and get new features out and bugs fixed. My goal is to have a truly useful and well designed plugin for all servers.
I am aware of the craftbukkit safeguard and the new updates and changes within Minecraft and Bukkit. I have no intention to harm your servers in anyway, but as of now, I can not guarantee anything. I have tested this version multiple times before releasing and have not crashed, but you must use this at your own risk.
Thanks for supporting my small plugin. :) I am surprised on how this very small plugin still gets downloads.
Just released v3.5!
Hopefully minor, if any, bugs in this version. My next main goal is to start some sort of individual, group and/or region counting system. This may take a bit longer, so I will first clean up the code and work out any bugs or performance issues found.
If you have any problems, questions or ideas, please comment below or make a ticket! I do read and consider everything!
Sorry for the big delay, but I only had a few minutes to work each day since this weekend. I hope that this new update, v3.0, was worth the wait! ;) I am still learning and developing this plugin, so expect minor bugs and many updates to come!
If you have any problems, questions or ideas, please comment below or make a ticket! I do read and consider everything!
Also, I changed the Development Stage from Release to Beta. I have decided to keep developing and advancing this plugin, so problems may arise and I feel more comfortable to call this a Beta than a developing Release.
Very cool. If you need help testing just msg me. ;)
@MidasValo
hmmm... good idea. I was actually already planning something similar where the countdown/up would start and stop when a player steps on a pressure plate. But, I'm diffidently learning and I will see what I can do about your idea. Let me add a to do list... :)
It would be cool if you could make a sign count up/down each time it received a redstone signal. That would make games fun :)
e.g. It could be used for scores, or consequences to send another redstone signal once it hits 10 to open a pit or something.
What do you think?