Countdown
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.
-
View User Profile
-
Send Message
Posted Apr 11, 2021Can you help me? I have a mistake:
java.lang.NoSuchMethodError: org.bukkit.configuration.file.YamlConfiguration.loadConfiguration (Ljava / io / InputStream;) Lorg / bukkit / configuration / file / YamlConfiguration;
at com.yahoo.ff_keitaro.Countdown.Countdown.reloadCustomConfig (Countdown.java:245) ~ [?:?]
at com.yahoo.ff_keitaro.Countdown.Countdown.onEnable (Countdown.java:285) ~ [?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled (JavaPlugin.java:263) ~ [patched_1.16.5.jar: git-Paper-590]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin (JavaPluginLoader.java:380) ~ [patched_1.16.5.jar: git-Paper-590]
at org.bukkit.plugin.SimplePluginManager.enablePlugin (SimplePluginManager.java:483) ~ [patched_1.16.5.jar: git-Paper-590]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin (CraftServer.java:501) ~ [patched_1.16.5.jar: git-Paper-590]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins (CraftServer.java:415) ~ [patched_1.16.5.jar: git-Paper-590]
at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld (MinecraftServer.java:580) ~ [patched_1.16.5.jar: git-Paper-590]
at net.minecraft.server.v1_16_R3.DedicatedServer.init (DedicatedServer.java:280) ~ [patched_1.16.5.jar: git-Paper-590]
at net.minecraft.server.v1_16_R3.MinecraftServer.w (MinecraftServer.java:1055) ~ [patched_1.16.5.jar: git-Paper-590]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda $ a $ 0 (MinecraftServer.java:289) ~ [patched_1.16.5.jar: git-Paper-590]
at java.lang.Thread.run (Unknown Source) [?: 1.8.0_281]
-
View User Profile
-
Send Message
Posted Oct 24, 2015Can you edit it that we can change the Prefix and the Colors? Pls c:
-
View User Profile
-
Send Message
Posted Dec 18, 2014It is very possible I'm being bumb, but I'm gonna ask anyways.
I can't get it to run a command afterwards.
I'm trying to get it to set a redstone block at a position once it's done to trigger a redstone circuit, so it can start my game automatically.
I put this in my config:
Timer:
start: 30
start_mess: 8 players in the lobby! the game will start in 30 seconds!
message: Starting in <x> seconds!
cmd: "setblock 0 101 24 redstone_block 0 replace"
When I run this from the console, it counts down to zero and then does nothing.
When I run it from a command block, nothing happens at all.
Can you tell me what I'm doing wrong please? thank you.
-
View User Profile
-
Send Message
Posted Aug 28, 2014How it run in console? I enter command "countdown restart" , but plugin displays that: "[Server] INFO /countdown [(seconds)/(name of timer)/time/cancel/reload]"
:(
-
View User Profile
-
Send Message
Posted Aug 19, 2014work harder!
-
View User Profile
-
Send Message
Posted Apr 11, 2014Hello everybody! It's been a long time since I've messed with Bukkit, and I'm happy to announce that I will soon be re-releasing this plugin. I lost the original project files, so I'm having to recreate it (I have the original code, just not the entire project). In the meantime, I'll read through the comments and see if there is anything I can do to help.
-
View User Profile
-
Send Message
Posted Apr 6, 2014Hi update please :) and can you make the timer delivering a redstone signal when timer is 0 ? thanks !
-
View User Profile
-
Send Message
Posted Jan 27, 2014Multiple commands?
-
View User Profile
-
Send Message
Posted Dec 7, 2013@Tunix2
Try my plugin DevCountdown? http://dev.bukkit.org/bukkit-plugins/devcountdown
-
View User Profile
-
Send Message
Posted Aug 11, 2013I am trying to add a timer called president (Elections). I added the timer but when i try to start it it say the timer found not be found. I reloaded the server and the config. This Is the file.
----
View User Profile
-
Send Message
Posted Jun 24, 2013Can we have the source? I want to make the message display the time in hours/minutes/seconds instead of just seconds.
-
View User Profile
-
Send Message
Posted Jun 2, 2013can we have the scr please?
-
View User Profile
-
Send Message
Posted Apr 6, 2013Do you think you could send me your code. I'm trying to learn coding myself, and would love something to study, and work with. I hope you understand, and if you can't, help me learn this amazing language.
-
View User Profile
-
Send Message
Posted Jan 20, 2013can you have it set to display events in 5 minutes instead of hours to minutes? it seems like a drastic jump.
-
View User Profile
-
Send Message
Posted Nov 16, 2012suggestion : make it execute a console command at 00:00.
ideal for reboots on live servers or lottery draws etc.
-
View User Profile
-
Send Message
Posted Nov 14, 2012Ok, I have fixed the spacing in the example above. Sorry if this caused any confusion to anybody.
I hope to have an update for this plugin soon for 1.4.2. It may work already, but I'll put my stamp of approval as soon as I can test it out.
-
View User Profile
-
Send Message
Posted Nov 14, 2012Hi PowerProgrammer, sorry for the delayed response. I've been preoccupied with life for the last few weeks.
I believe it may be your spacing in the timers.yml file. Although my example in the text above in the plugin information doesn't contain any spaces, the example in the timers.yml file contains spaces for all the timer attributes.
It should be like this instead:
exampletimer:
start: 60
message: Event begins in <x> seconds!
start_mess: Event countdown has started!
zero_mess: Go!
cmd: mycommand
Make sure to put spacing in front of everything below the name of your timer. That should fix it :)
-
View User Profile
-
Send Message
Posted Oct 20, 2012I can't get it so that custom timers work... for instance, for the "exampletimer", I type in /countdown exampletimer, yet it says the timer does not exist!
-
View User Profile
-
Send Message
Posted Aug 26, 2012Perhaps an option to make it count down in minutes and hours, instead of only seconds?
-
View User Profile
-
Send Message
Posted Aug 25, 2012I LOVE YOU!!!! I serch so long for a Countdown plugin (2 days) and yet..... THANK YOU!!!!!!! :) :) :) :)