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 Nov 26, 2012@NinjaWaffles1
Actually no, i made mine before i even saw yours :P but once i saw yours i did use the autostart idea you had in yours :P (Required Players)
-
View User Profile
-
Send Message
Posted Nov 20, 2012@Bimmr
Did you use my source? Either way, I like it.. Thanks for continuing on with the plugin! :D
-
View User Profile
-
Send Message
Posted Nov 20, 2012Check out my Infected plugin
http://dev.bukkit.org/server-mods/infected-core/
-
View User Profile
-
Send Message
Posted Nov 4, 2012you are the owner update it!
-
View User Profile
-
Send Message
Posted Oct 23, 2012@Kluberge
The latest release is built for 1.2.5; if someone updates it, then yes. If not, then no.
-
View User Profile
-
Send Message
Posted Oct 16, 2012Does this work with 1.3.1?
-
View User Profile
-
Send Message
Posted Oct 10, 2012@fatpancake
No, but if you know someone, or you can code, the source is now on the page.
-
View User Profile
-
Send Message
Posted Oct 10, 2012@MLGKICK
Updated in the post.
-
View User Profile
-
Send Message
Posted Oct 10, 2012Could you make a personal version of this plugin for me so once people join the server it automatically adds them to the infected game giving them no choice to play the infected game?
-
View User Profile
-
Send Message
Posted Sep 18, 2012Source Code?
-
View User Profile
-
Send Message
Posted Aug 16, 2012Only Op's can use command /inf setspawn, /inf setarena and more. PEX not support
-
View User Profile
-
Send Message
Posted Aug 8, 2012the infected dont respawn when they die they just go to spawn, and when they kill someone they dont become infected.
-
View User Profile
-
Send Message
Posted Jul 28, 2012Suggestions :
Make the Alpha Zombie Invincible while frozen it might let the players get advantage...
Alpha zombie too should have armor ( or you can edit the stuff at config )
Seperate Alpha Zombie spawn and the PLayer spawn
-
View User Profile
-
Send Message
Posted Jul 22, 2012Hearts are not given to players when the hunger bar is full. No error log. Help?
-
View User Profile
-
Send Message
Posted Jul 19, 2012update dude -.-
-
View User Profile
-
Send Message
Posted Jul 19, 2012Hey now i have another problem when i do /inf setspawn or /inf setarena it say incorrect command
-
View User Profile
-
Send Message
Posted Jul 16, 2012Hey I was just wondering, is it possible to change the time before a person is released from being frozen? Also, how do i change the items that the non-infected start with?
-
View User Profile
-
Send Message
Posted Jul 15, 2012@Ratchavut113
Look at the configuration nodes:
block.CancelBlockBreakEvent
block.CancelBlockPlaceEvent
-
View User Profile
-
Send Message
Posted Jul 15, 2012Hey i have a problem when i install this plugin and join my server everybody cant destroy anything! can u fix it plz i want this plugin so much
-
View User Profile
-
Send Message
Posted Jul 13, 2012@NinjaWaffles1
ok im sorry o.O Im a bit lazy and dont read the other pages :'D