ZombieApocalypse
Zombie Apocalypse
by sheodox
What is Zombie Apocalypse?
ZA adds the possibility for a zombie apocalypse to start at 9:00 each night. Zombies will spawn around each player, and you must defeat the zombies before morning to receive a reward!
How does it work?
At 9:00 P.M. there is a configurable (default: 20%) chance for an apocalypse to start and a configurable amount of zombies (default: 40) will spawn and a configurable percent of them (default: 50%) need to be killed for a reward to be gained. The apocalypse can be started with a command (optionally you can specify a number of zombies per person to spawn). Each zombie will spawn 1-14 blocks away in both the X and Z directions, one of coordinates is offset by another 10 blocks so the zombies don't spawn too close.
The rewards are configurable:
Each possible item needs to specify these things - (these are explained in config.yml)
- Item name
- Chance
- Quantity
- Message
Default Items
Item - Chance
- Diamond sword - 5
- Diamond chestplate - 5
- 2 x Diamond - 25
- Gold sword - 25
- Emerald - 25
- 1 x Diamond - 50
- 5 x Iron ingot - 150
Commands
/za help - displays information about the plugin.
/za version - displays the version of the plugin.
/za commands - displays a list of all commands.
/za kills - shows the kills/goal of the current apocalypse.
OP commands:
/za start - manually starts the zombie apocalypse.
/za start <integer> - manually starts the zombie apocalypse with <integer> number of zombies spawned per person.
/za getitem - gives the name of the item in your hand, used for configuring rewards.
Configuration
Configuration of Zombie Apocalypse is very simple. In config.yml enter the name of your world in the world field and change false to true in the configured field. If you don't do this the plugin will not load and every time someone logs in it will say the mod needs to be configured. If the world name isn't valid and it says it's configured you will get some null pointer exceptions from two tasks. There is also a field called "numzombies" that has a default value of 40, this is the number of zombies that will spawn per person from both naturally occurring apocalypses and when using the command "/za start" without specifying a number.
As an example my server has a world named Trysnor so I set up the config.yml file like this
#Enter the name of the world you want to use for the zombie apocalypse #Replace "world" with whatever your server's world is world: Trysnor #numzombies is the amount of zombies you want to spawn per person from a default event. numzombies: 40 #when you have configured this file with your world's name change false to true configured: true
You can also configure the chance per night for the apocalypse to happen. There is a message at 8:00 PM warning that the apocalypse might be coming, and a message if it doesn't happen. Both of those messages can be disabled. There is also a limit to the number of zombies that can spawn. If this number is anything under one there is no limit. If the "hardlimit" is over one, it will spawn only up to that many zombies.
FOR SUGGESTIONS AND BUGS
Please create a ticket here: https://bitbucket.org/sheodox/zombieapocalypse/issues/new I'm not actively developing this mod because I'm working on other projects. If you would like to fork this mod there is a git repo on the repository tab.
AWESOME!!!! im making my VID!!!!! my channel BlaisePlaysMinecraft DO GIVE LIKES GUYS!!!!
@macgarthur
No it isn't, one world only.
Cool plguin, I was looking for something simple, but with a bit more customization. I'll definitely check this again when more features are added.
Is it possible to run this on more than one world?
Im running the beta build, but when i place the
"ZombieApocalypse 1.4.0 for 1.5.1 Apr 02, 2013"
version into my plugins folder, i get an error when i start my server D: What am I doing wrong?
please make chance of zombie apocalypse happening each night configurable!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@Birddie721
ZombieApocalypse 1.4.0 should work with the beta build of Craftbukkit. ZombieApocalypse 1.3.1 supports the recommended build. If you want to use the newest version of ZombieApocalypse I'd go with the beta build. I compiled with Java 7 instead of 6 which I should have done, if using the beta build of Craftbukkit doesn't work you should go on the Oracle site and install Java 1.7. Next version I'll use Java 1.6 since a lot of people still use it.
Well what should I use, the Developmental or Beta Build?
@cid_3
Thanks!
Nice plugin
@Birddie721
Is your server up to date? The newest version is for 1.5.1, if your server isn't at that version you should consider updating or using a later version of the plugin.
@Quinnatator
Thanks!
Looks like an epic plugin, totally using this on my server. Great work!
Well, for one, I don't know what world it is, the world folder in the main server files, or what the server folder name is. This is the error message in the console:
-79-gb8f8ec0-b2721jnks (MC: 1.5.1) (Implementing API version 1.5.1-R0.1-SNAPSHOT
)
14:53:56 [SEVERE] Could not load 'plugins\ZombieApocalypse.jar' in folder 'plugi
ns'
org.bukkit.plugin.InvalidPluginException java.lang.UnsupportedClassVersionError
: com/gmail/deathbysniper727/zombieapocalypse/ZombieApocalypse : Unsupported maj
or.minor version 51.0
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
ava:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
.java:230)
at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.ja
va:239)
at org.bukkit.craftbukkit.v1_5_R2.CraftServer.<init>(CraftServer.java:21
7)
at net.minecraft.server.v1_5_R2.PlayerList.<init>(PlayerList.java:55)
at net.minecraft.server.v1_5_R2.DedicatedPlayerList.<init>(SourceFile:11
)
at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.jav
a:105)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java
:379)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:5
73)
Caused by: java.lang.UnsupportedClassVersionError com/gmail/deathbysniper727/zo
mbieapocalypse/ZombieApocalypse : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader
.java:80)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
java:53)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
ava:173)
... 9 more
@Birddie721
I put an example configuration in the description. Could you tell me what type of errors you are getting? If you are still having problems I could put together a video.
I've spent a little while trying to figure this out, but still can't. I'm stumped on figuring this out. I've changed all the config.yml things to how they're supposed to be: configuration,true; world,world. It still isn't working for me. This plugin was THE plugin i needed to make my server "shine", so I'm very disappointed it doesn't work. Also, the directions aren't too easy to understand. I would very much appreciate it if you could post an installation tutorial video for to understand it better. Thank-you for putting the server mod out there, and i hope you continue to make great server mods, but i would like you to help me out with this so my career, as well as yours, can shine.
@TheGoldenCreepr
You mean support for other languages?
Can you please add a languagefile? It would be very nice :) THX
@S1lverK3y
I haven't added that yet. I will probably do that sometime in the future.
@dbs727
How about configurable rewards?