Countdown
Simple plugin that counts down from 10 with one command and one permission node (My First one)
Uses: Could be used before a countdown on a pvp server (What I use it for) Could be used on a hungergames server (Without plugins like SurvivalGames :P)
Permission: countdown.use
Command: /count
Config: None
WARNING: Whilst the countdown is running only the chat will update The rest of the server (Mobs, blocks etc) update after 0 I am going to work on a fix for this
Feel free to request any features below And Ill see if I can do them :)
Source Code: https://dl.dropbox.com/u/46278596/Countdown.java Please do not edit the source then claim it as your own or re-upload it with a different name.
Planned Feature: After countdown server will perform command Eg. /count <command> Choose the length of the countdown Eg. /count <number> Customiseable 1-10 (Would loop on extended numbers)
-
View User Profile
-
Send Message
Posted Mar 9, 2013Indeed, thread.sleep() is a horrible choice of code. It might be easy but will freeze the entire server, not just the specific plugin
-
View User Profile
-
Send Message
Posted Dec 11, 20123 things:
if ((player.isOp()) || (player.hasPermission("Countdown.use"))) checking if the player is op is not needed because ops have all permissions.
2. The try and catch method is not very clever if you don't print anything when something goes wrong.
why not use a scheduler to countdown, it would probably allow you to use /count <integer> to countdown from and it was also save you from using thread.sleep();
Thanks CeramicTitan
-
View User Profile
-
Send Message
Posted Nov 15, 2012NEVER use Thread.sleep() it stops the whole server for that amount of time
-
View User Profile
-
Send Message
Posted Aug 26, 2012@breezeyboy
Ill upload it :)
-
View User Profile
-
Send Message
Posted Aug 26, 2012may i have the source code?
-
View User Profile
-
Send Message
Posted Aug 26, 2012@CompassCraft
Do you have any idea when your going to make the time configurable?
-
View User Profile
-
Send Message
Posted Aug 25, 2012@TheLordsGamers
Yep :) Im gonna try and make each number changeable in the config asap :P
Thanks btw :D
-
View User Profile
-
Send Message
Posted Aug 25, 2012Thanks man this is a savior, I've been looking for something like this for a while for my Walls server, big help, please keep it updated!