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 13, 2012@Omnimon1997
If you have read any of the previous comments, all of these have been addressed.
-
View User Profile
-
Send Message
Posted Jul 13, 2012Hello. I just found some bugs too which are very annoying-.- I Hope you can fix them:
Sorry if i speak bad english Im german Omnimon1997
-
View User Profile
-
Send Message
Posted Jul 12, 2012@BradyMac2000
I'm glad you got it fixed.
-
View User Profile
-
Send Message
Posted Jul 12, 2012Nevermind
-
View User Profile
-
Send Message
Posted Jul 12, 2012I'm having a bit of a problem. No commands are working I installed it correctly and It even says it's installed but no commands. Any help
-
View User Profile
-
Send Message
Posted Jul 12, 2012@soakk
The problem is not with the plugin. It does everything that you mentioned. My theory is that you don't have it set-up correctly.
1. The teleporting does work. In your case, if you followed the video, you may have set the arena as the spawn too. Don't do that. The arena and spawn are two different locations.
2. I don't know why the infected killing a non-infected is not infecting the non-infected, but it works for everyone else.
3. /inf spawn will teleport you back to the game spawn. Don't get the two confused. There is a "World Spawn" and a "Game Spawn." They are different! And it does serve a purpose. The main way, or original way, of joining a game was clicking on a sign. Alternatively, I made the command so people don't have to be right there with you to join.
On some other notes: 1. Download v1.2 - If you don't have it, there is one problem. 2. Don't ever do '/inf setspawn' and '/inf setarena' in the same location. They are different places! 3. For the plugin to work correctly, you need to have both '/inf setspawn' and '/inf setarena' set. If you don't, then the plugin won't know where to TP the players (will be fixed next version).
I don't know what else to say. Everything you mentioned works, so try reloading the plugin, and setting it back up.
-
View User Profile
-
Send Message
Posted Jul 11, 2012I've noticed a few things that make this almost not worth useing.
1. When the game ends it doesnt take the players out of the arena. This sucks when you have to teleport out and then rejoin the game.
2. When an infected kills someone they dont become infected AND the person that was killed is also tele'd back to the world spawn.
3. What is the point of having /inf spawn and /inf join if upon joining you dont get tele'd to the spawn. What is the point of the spawn if it serves no purpose?
On another note i like the concept of the game and i appreciate your effort =)
-
View User Profile
-
Send Message
Posted Jul 9, 2012@Thomas2536
Again... The block placing/breaking is taken care of in the config file. Don't worry though, in the next version, that is eliminated. I have noticed that it is conflicting with WorldGuard regions. Also again, in the next update, there will be auto-inventory saving. (I already have it coded). And yes, Permissions support will be added. But the only thing is that, the '/inf endgame' is the only real node that would need permissions.
I'm sorry for the problems, but as the next update holds a lot in store, it will be at least 2 days. (It could be tonight. I don't know).
-
View User Profile
-
Send Message
Posted Jul 9, 2012Had some more problems with this plugin, players couldn't place blocks :') fun, I loved having all my players yell at me.
-
View User Profile
-
Send Message
Posted Jul 9, 2012I'd like to reiterate the major problem of people losing there stuff when they type in /inf leave. And also, can you make permissions? I have PEX.
-
View User Profile
-
Send Message
Posted Jul 9, 2012@Thomas2536
Well. The thing is, they can team up, but never know if one of their teammates will be chosen, so it adds that defense side to the game. :D
-
View User Profile
-
Send Message
Posted Jul 9, 2012That sounds good, also prevents teaming up.
-
View User Profile
-
Send Message
Posted Jul 8, 2012@TheFluffey
I keep a list of things that I wish to add to the plugin, and the multiple arena is one of them. I think that I will also instead of freezing the alpha zombie for 20 seconds, I will instead allow everyone to move for 60 seconds, and then pick one person. I'm not sure how this sounds. Let me know.
-
View User Profile
-
Send Message
Posted Jul 8, 2012@NinjaWaffles1
Suggestion: Ability to add multiple arenas that automatically cycle. Instead of freezing the aplha zombie, players have one minute to move about the arena. After that minute 10% of players are automatically assigned as alpha zombies. Game automatically start after the waiting period inbetween map cycles.
-
View User Profile
-
Send Message
Posted Jul 8, 2012You lose your inventory when doing /inf leave, pretty big issue when you got a server full of whining kids.
-
View User Profile
-
Send Message
Posted Jul 8, 2012hi ;) i want to suggest something, may u set an option that the zombies infect players with 1 smash? it would be really cool ;) and maybe u can connect it with mobdisguise so when u are zombie u look like a zombie :) that would be very nice ;)
greetz, Zeptarcraft
-
View User Profile
-
Send Message
Posted Jul 8, 2012THX!!! it really helps ;) stay making this super fun plugins :)
-
View User Profile
-
Send Message
Posted Jul 7, 2012@RamenNooodles As of now, it is working okay with some other plugins. But every plugin is different. I, personally, do not own nor do I wish to own a server, so I cannot give the best feedback you want. There were some bugs with the build that would not have cooperated with the Hunger Games plugin. In this update, some of those have been fixed. In my opinion, I believe it would work okay with the Hunger Games plugin. Let me know if it doesn't, and I will fix it.
@richboos I'm sorry. After reading your question a couple of times, I got it. I have changed it, and the new version is in approval right now.
-
View User Profile
-
Send Message
Posted Jul 7, 2012Would this plugin affect the whole server or could it run with other server types like, "hunger games".
-
View User Profile
-
Send Message
Posted Jul 7, 2012What can we do about the game ending in 15 seconds?