Infection Minigame
:D 1K Download :D
Please Read: The Infection plugin has come to a ever-standing halt. It was fun to work on in the beginning, but as of now, I have no desire to mod Minecraft. I have been working on Client mods, as well as Server mods, but Infection still doesn't have that grasp that it had when I first started to code it. Anyways, because I am leaving Infection, I am releasing the Source code publicly. If you wish to use it, please leave some credit to me somewhere, as it took many upon many hours to complete... The version that I am releasing is 1.3; I had almost finished the update when I decided to stop working on the project. I added some features, such as: Multi-Arena support, Gametimer, Intermission, and a better config file. I hope you guys can use the code, and create something fun and amazing with it.... Also, keep in mind that I am a self-taught Java programmer, therefore, my code may not be the most compact or cleanest.
Source code download: http://www.mediafire.com/?60nmqkea77s3yb6
Infection - A classical zombie survival game mode made for practically every FPS made for any console ranging from: Xbox, to PS3, to PC. Minecraft is a game made for anything to be possible, and for the most part, has been accomplished. Except it lacks a gamemode that allows hardcore PVP survival between players. This is where this plugin comes in. Infection accomplishes the task of allowing users to easily setup a game, and start playing away in this zombie survival.
Instructions:
- Load up the plugin into your /plugins directory
- Start console, or reload. Edit the config.yml that was created to your likings.
- After, in game, create a sign that has on the first line: "[Infected]" and on the second line: "[Join Game]".
- Set the spawns... Normal, Spectator, and Arena. (See the commands for more information on that.)
- Get player's to right click that sign. When the number of players you require is met, then get anyone to type in '/inf start'
- The game will start. Enjoy :D
Features:
- Automation - This plugin was made for their to not be an admin watching every move.
- Simplicity - As I said in the description, this is not an overly advanced plugin. It should be easy to grasp a hold of.
- Block Damaging Disabled - This plugin comes with a built in block-breaking/block-placing stopper. (see "Config" for more info).
- Alpha Zombie Freezing - When the game starts, the Alpha Zombie is frozen for 15 seconds, giving the others a chance to hide.
- Disabled Vanilla Death Message - The "xxx was slain by ooo" has been disabled to stop interference with my plugin.
- Infected spawn with a Stone Sword
- Non-Infected spawn with a Bow and Leather armor.
Commands:
- /inf start - This will start the game if these conditions are met:
- The game has to be unlocked (see /inf lock for more info).
- There cannot already be a game in session
- The game has to be stopped. If it is starting, you cannot start it again.
- /inf lock - When the lock is set to "true," no-one will be able to start the game.
- /inf join - This command will allow the player to join a game, if not already in one, or not in session.
- /inf leave - If you are in a game, and wish to leave, then this command will take all your items, and send you back to spawn.
- /inf endgame - If a game was started on accident, this will end it for you.
- /inf infected - When a game is in session, this will display the infected players.
- /inf noninfected - When the game is in session, this will display the non-infected players.
- /inf spawn - If spawn is set (see /inf setspawn), then the player will be teleported to spawn.
- You can only teleport to spawn if you are not currently in game.
- /inf spectate - I setup my spectating a little differently. As so, when this command is used, you will teleported to a room where you can look over the whole arena.
- /inf commands - This command will list some useful commands to the user.
- /inf concept - This command will tell the player what the game is about.
- /inf setspawn - This will set the spawn.
- /inf setarena - This will set the starting point of the game inside the arena.
- /inf setspectating - This will set the room in which the player will be teleported to when he wishes to spectate.
- I recommend that this room be made of glass, as it is transparent, and will allow the user easy visibility to the arena.
Configuration Nodes:
- general.TpToSpawnOnEnter
- This node will enable/disable the player being TPed to the spawn you assigned with /inf setspawn upon entering the game.
- general.OverrideWorldSpawn
- This node will allow you, if set to true, to override the world spawn. Meaning that if this is true and you type '/inf setspawn;' the spawn will be set for the world.
- game.NumberOfPlayersToStart
- This node will determine how many players are needed in order for a game of Infection to take place. i.e.: If it is set to 6, then the game will only start, when /inf start is typed, if 6 people are in it.
- block.CancelBlockBreakEvent
- If set to true, when a player attempts to break a block, it will re-appear. (OP will override)
- block.CancelBlockPlaceEvent
- If set to true, when a player attempts to place a block, it will re-appear. (OP will override)
- player.ErasePlayerFileOnLeave
- When the player joins, a personal file is created for him. This contains information like: isInGame, isZombie, isAlpha, etc... If this node is enabled, then when the player leaves, his personal file will be removed. This can potentially be used if you run a big server, and want to free space.
- player.AllowHealthRegen
- By default, the food bar is disabled. This node will allow you toggle the allowance of health regeneration. This means that the players health will/will not regenerate while in or out of a game.
Changelog:
*Version 1.2*
- Changed the timer from 15 seconds to 5 minutes.
*Version 1.1*
- PvP has been fixed. Everyone can now fight each other freely without the plugin disabling it.
- Added a 5 minute time limit that will end the game when ran out.
- When the game ends, only the player's in the previous game will teleport to spawn. Not everyone.
- /inf commands will now list the correct commands.
- Added a Creative Notifier. (Check on BukkitDev for more info.)
- Fixed the signs. You can no long join a game by clicking any sign.
- Fixed when /inf setspectator is called, it will now say "Spectator point set" not "Arena point set."
- Added a /inf join command, so player's do not have to click a sign to join.
*Version 1.0*
- Initial Release
-
View User Profile
-
Send Message
Posted Jul 6, 2012@Panpz
1. The digging/mining can be changed in the configuration file. (See Configuration Nodes) 2. The PvP will also be addressed in the next update. 3. The Hunger regeneration can also be disabled in the configuration file. (See Configuration Nodes) 4. The Alpha Zombie is invincible when hit with a fist. The arrows carry their own method, so I will implement that soon.
I'm sorry that you had some problems with the plugin, but half the issues can be taken care of in the configuration file. As for the other half, I will try to spit out an update within the next couple of days.
-
View User Profile
-
Send Message
Posted Jul 6, 2012@NinjaWaffles1
First MAJOR bug :
When a game is finished. Or i don't know maybe when the plugin is on the server : Nobody can dig, hit other players or mine.
Minor Bug :
It looks when a game ends. The hunger regeneration effect doesn't work. The Alpha is not invincible during the freeze time.
I'm using lots of plugin on my server. I'll try it again when bugs will be erased. But i hope my server won't be corrupted.
I was so scared when people wasn't able to dig ... I tried to reboot the server but nothing happens until i switched off the plugin !
-
View User Profile
-
Send Message
Posted Jul 6, 2012@Panpz
Your welcome. Please report any bugs you discover.
-
View User Profile
-
Send Message
Posted Jul 6, 2012Thank you, i'm going to try it on my server.
It looks cool !
-
View User Profile
-
Send Message
Posted Jul 6, 2012@zeptarcraft
Hello. There isn't a problem with the player count. After reviewing some code, I may have found your problem. When the code reads the methods set for "/inf start," it doesn't read how many players are in the game, but how many have joined an infection game.
This should help you:
I hope this will help you. :D Please tell me if it doesn't.
Edit: I realize now that I did not include an instructions tab in the original post. That has been changed.
-
View User Profile
-
Send Message
Posted Jul 6, 2012THIS IS THE BEST PLUGIN EVER!!! STAY DOING THIS PLS :o I w8ed for months for this plugin thx buddy ;) but i have a problem :s when i want to start the game won't start, look at this: "You need a minimum of 2 person(s) to start." when we are with 3 persons :/ pls help me
-
View User Profile
-
Send Message
Posted Jul 5, 2012@Beatkidz
Thank you for bringing that to my attention. I have changed the name on Bukkit Dev, and will work on migrating the name in the actual plugin.
-
View User Profile
-
Send Message
Posted Jul 5, 2012Your not allowed to use media fire on bukkitdev...
-
View User Profile
-
Send Message
Posted Jul 5, 2012There is already a plugin with this exact same name
http://dev.bukkit.org/server-mods/infected/