Nuke
Nuke
Nuke is a plugin that allows a player, if they have permission and if they have the money needed, can drop a falling tnt block from the sky that does a large amount of damage!
Commands
/nuke Drops a nuke
Permissions
The permission is customizable inside the config. It defaults to : nuke.use
Configuration
Heres what the config looks like:
#Permission required to use the command permission: nuke.use #How powerful the explosion will be (1 tnt is equal to 4 power) #Be Careful with this setting, it can crash the server if it is too high. power: 20 #Price per use price: 2000 #Ammount of time in miliseconds untill the nuke will drop (1 second = 1000 Miliseconds) delaytime: 20000 #First Message that will be displayed message1: Nuke Inbound! #Second Message that will be displayed message2: The Nuke has impacted. A long time of suffering will follow.
The configuration is pretty self explanitory, if you need any help at all, fill free to put a comment and we will respond ASAP.
Please add a feature that makes it possible to /nuke [player] So u can nuke others
What versions does this work in?
As another user has said (6 years ago), it's a bad idea to use Thread.sleep() because of the exact reason they said. It makes the entire server sleep and if multiple nukes are being set off at once, it will time everybody out. A better way to do it is by using a timer either counting up or down, it doesn't matter.
If you're still making plugins, I'm sure you know this by now, and if not, I'd be completely willing to help you a little bit.
I'd also like to suggest, use more than 2 classes. As I said, you probably know this by now but either way, I think it'd be good to let you know.
Good plugin regardless.
In reply to Forge_User_03645750:
Hey I actually made this plugin on an older account. I know now why Thread.sleep() doesn't work. Its been 7 years since I made this, I wouldn't mind re-writing it if there is still any interest.
In reply to lukey_c:
Hey, regarding re-writing it, if you're interested we could do that together? If you'd like to, just add me on discord, Solaris#1960, or if not then that's no problem.
cool i likeit :)
Don't use: thread.sleep
It stop the whole server!