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.
I just uploaded an updated version, needs to be approved first. Saying only '/za' will no longer give an error and has the same functionality as '/za commands'. The plugin is now open source under the MIT license, check the repository tab if you would like to fork it.
Will there be permission nodes for your commands soon? Or maybe you have them and I've overlooked them :P Anywho just wondering, thanks!
"/za start already exists in the plugin, also you can do /za start [number] and spawn that many zombies per person. Currently it's only available to OPs since I haven't implemented permissions." I went through the comments and found the answer to my question :D Can't wait!
why not fix theis plugin? it works not on Bukkit 1.7.2 or 1.7.4
The 'za' command doesn't work because the plugin is barfing:
[16:17:36] [Server thread/ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'za' in plugin ZombieApocalypse v1.5.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:199) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:544) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:932) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.gmail.deathbysniper727.zombieapocalypse.ZACommands.onCommand(ZACommands.java:22) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-16-gb12f12f-b2996jnks] ... 13 more
@HelperYoopher123
This is happening to me, too!!!! Please fix!!!
Um, for some reason in the new 1.7 update for the plugin when I try to do ANY command with /za it just repeats back at me /za HELP PLEASE
Awesome Plugin! One request, add the possibility to translate the plugin!
when updating or fix it ?
How about enabling multiple worlds? I have 2 worlds I want this to be enabled on but this is not possibile yet?
Whenever i try to start a Zombie apocalypse it says "no one is around the Zombies went back to their graves" in the sertver cmd box. Is this a problem with the way I configured it or what? please help...
Hi, i write by czech republic, your plugin is great. question: can it sett a zombie spawn on all worlds in some time? The players would welcome. thank you
Great Plugin.
One suggestion, add in config a chance to spawn skeletons. Because if get high ground (3-4 blocks) its too easy to kill the zombies.
but one problem. error with command /za
copying console error. Running mcpc-plus 1.6.4
issued server command: /za
[SEVERE] null
org.bukkit.command.CommandException Unhandled exception executing command 'za' in plugin ZombieApoc
alypse v1.5.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192)
at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:532)
at net.minecraft.network.NetServerHandler.func_72566_d(NetServerHandler.java:1405)
at net.minecraft.network.NetServerHandler.chat(NetServerHandler.java:1269)
at net.minecraft.network.NetServerHandler.func_72481_a(NetServerHandler.java:1201)
at net.minecraft.network.packet.Packet3Chat.func_73279_a(Packet3Chat.java:68)
at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:470)
at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:233)
at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:54)
at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(DedicatedServerLi
stenThread.java:34
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:914)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:330)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:781)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:663)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.ArrayIndexOutOfBoundsException 0
at com.gmail.deathbysniper727.zombieapocalypse.ZACommands.onCommand(ZACommands.java:22)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more
pls fix and update to bukkit 1.7.2R03
Is there any way to make so there are no rewards and there is no text that appears? I just want the zombies to spawn, nothing more and no text in the chat.
great plugin! but i have to report 3 little bugs used Bukkit 1.7.2-R0.2 Beta, ZombieApocalypse 1.5.0
1. when nobody is on the server and a zombie apocalypse start the message "Nobody is around, the disappointed zombies return to their graves." appears in the console and now when I join the server and type "/za kills" it return "ZA: 0/0 zombies killed." and after the sun goes up it report me that we have failed against the zombies.
2. when i type "/za" without any secound parameter a java error occur http:pastebin.com/rUh7gZTF
3. when i kill all mobs with the "/butcher" command from Essentials or WorldEdit your plugin don't register that the zombie's are dead
thanks for this great plugin :)
http://pastebin.com/xZx2uXyv
@gbprogamer
What exactly is happening? Are you getting an error in your server's console? If so put it up on pastebin and provide a link. I was testing it with a 1.7.2 dev build server and it was working for me.
For some reason the plugin doesnt seem to load with 1.7.2?
@JimiRebeld
Yeah I can do that.
Can you add custom rewards in 1.6.2? Im running 1.6.4..
Thanks!