Inactive [FUN/MISC]Infected v1.2 - A Minecraft version of Infection. [1.2.5-R4.0]

Discussion in 'Inactive/Unsupported Plugins' started by NinjaWAffles, Jul 4, 2012.

  1. Offline

    NinjaWAffles

    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: <Edit by Moderator: Redacted mediafire url>

    Plugin Information:
    ===============
    Plugin Name: Infected
    Type: MiniGame
    Plugin Version: 1.2
    Bukkit Recommended Version: 1.2.5-R4.0

    Now on Bukkit Dev

    Description:
    =========
    This plugin is based off of MW3's Infected mod. As this is made for Minecraft, there is a little twist. This is not an overly advanced plugin, but I believe it has some cool features.

    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 armour.

    Commands:
    =========
    * <font color="#ff0000">Red <font color="#000000">is for admin only commands. <font color="#0000ff">Blue <font color="#000000">is for regular commands (anyone can use them).</font></font></font></font>
    1. <font color="#0000ff">/inf start <font color="#000000">- This will start the game if these conditions are met:</font></font>

    - 2. <font color="#0000ff"><font color="#000000">The game has to be unlocked (see <font color="#ff0000">/inf lock</font> for more info).</font></font>
    3. <font color="#0000ff"><font color="#000000">There cannot already be a game in session</font></font>
    4. <font color="#0000ff"><font color="#000000">The game has to be stopped. If it is starting, you cannot start it again.</font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000">/inf lock <font color="#000000">- When the lock is set to "true," no-one will be able to start the game.</font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff">/inf join</font> - This command will allow the player to join a game, if not already in one, or not in session.</font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff">/inf leave <font color="#000000">- If you are in a game, and wish to leave, then this command will take all your items, and send you back to spawn.</font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#ff0000">/inf endgame</font> <font color="#000000">- If a game was started on accident, this will end it for you.</font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf infected <font color="#000000">- When a game is in session, this will display the infected players.</font></font></font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf noninfected <font color="#000000">- When the game is in session, this will display the non-infected players.</font></font></font></font></font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf spawn - <font color="#000000">If spawn is set (see <font color="#ff0000">/inf setspawn</font>), then the player will be teleported to spawn.</font></font></font></font></font></font></font></font></font></font></font></font></font></font>
    * <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000">You can only teleport to spawn if you are not currently in game.</font></font></font></font></font></font></font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf spectate <font color="#000000">- 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.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf commands<font color="#000000"> - This command will list some useful commands to the user.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf concept - This command will tell the player what the game is about.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf setspawn - This will set the spawn.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf setarena - This will set the starting point of the game inside the arena.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
    - <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">/inf setspectating - This will set the room in which the player will be teleported to when he wishes to spectate.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
    * <font color="#0000ff"><font color="#000000"><font color="#ff0000"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff"><font color="#000000"><font color="#0000ff">I recommend that this room be made of glass, as it is transparent, and will allow the user easy visibility to the arena.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>

    Configuration File:
    ==============
    As I feel that this plugin comes with some options that server owners may want to keep enabled/disabled, I have added the config with options to help you manage this plugin more for your taste.
    * 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.
    - general.CreativeNotifier
    * This node will shout a message if a player joins an infection game is in Creative. This is mostly to notify of this player having "god mode." If true, it will notify the server. If set to false, it will not do anything.

    * 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.

    Instructions:
    ==========
    5. Load up the plugin into your /plugins directory
    6. Start console, or reload. Edit the config.yml that was created to your likings.
    7. After, in game, create a sign that has on the first line: "[Infected]" and on the second line: "[Join Game]".
    8. Set the spawns... Normal, Spectator, and Arena. (See the commands for more information on that.)
    9. 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'
    10. The game will start. Enjoy :D

    Things to come in v1.3
    =================
    * Inventory Saving
    * Alpha Zombie will no longer freeze, but will be chosen after 60 seconds.
    * An Intermission in-between games.
    * An Automatic game starter after Intermission.
    * Customizable Starting, In-game, and Intermission time.
    * Multi-Arena support
    * A voting system allowing users, in the intermission period, to vote for the next played map.

    ChangeLog:
    =========
    Version 1.2
    Changed the timer from 15 seconds to 5 minutes. (I was using 15 sec. for debugging)

    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


    Known Interferences:
    ================
    * To the best of my knowledge, this plugin does not interfere with any other plugin. If you find one, please report it in a reply, and I will try my best to fix it.

    Download:
    =========
    Latest Version (1.2): Download Here

    Older versions:
    * 1.1 Download Here

    * 1.0 Download here

    Poster's Notes:
    ===========
    Thank you for downloading my plugin. This is my first one, so I hope you enjoy. I, myself, enjoy making these "minigame" type plugins. If you like them, please let me know, so I can continue to make more. Minecraft Nazi Zombies??? Let me know.
     
    Last edited by a moderator: Nov 10, 2016
  2. Missing plugin version in thread title
     
  3. Offline

    NinjaWAffles

    I am unable to change the thread title.
     
  4. Near the top right of the first post, there should be an option called "Thread Tools." Click it, and select "Edit Thread."
     
  5. Offline

    NinjaWAffles

    Ahh. Thank you for that. It has now been changed.
     
  6. Offline

    md_5

    Approved.
     
  7. Offline

    stfupls

    It works perfect i got only one problem,
    how can i change the time because i got only 20 sec to infect somebody how i change it to 3 minutes?
     
  8. Offline

    NinjaWAffles

    If I assuming correctly, you are using version 1.1. If so, download version 1.2. Version 1.1 had a bug where the timer started at 15 seconds. In version 1.2, that is fixed. It is set for 5 minutes. In later versions, I will allow people to custom configure the time.
     
  9. Offline

    stfupls

    Code:
    general:
      TpToSpawnOnEnter: false
      OverrideWorldSpawn: false
      CreativeNotifier: false
    game:
      NumberOfPlayersToStart: 2
    block:
      CancelBlockBreakEvent: true
      CancelBlockPlaceEvent: true
    player:
      ErasePlayerFileOnLeave: true
      AllowHealthRegen: false
    That i get and its version 1.2 @ the config i cant change time if u can see
    btw its 5 min now

    may bug idk how i can fix: i was infected somebody killed me and i respawned i killed him 1 time and i win
     
  10. Offline

    NinjaWAffles

    "In later versions, I will allow people to custom configure the time." - It will be in later versions. As of now, it is preset for 5 minutes.

    If you were infected, and he wasn't. Then when you killed him, you infected him. If you two were the only ones playing, and there were no more infected, then that is why the game ended.
     
  11. Offline

    stfupls

    Yeah but im mean, if somebody kill me (me infect) then i respawn can u add in later versions the infect can have 2 lives and then the game is ended.

    + its REALLY hard for infects to kill humans cus humans shoot and team and its impossible to get them 3 arrows and you death..
     
  12. Offline

    NinjaWAffles

    I will consider adding two lives in later versions. Though, this game is supposed to be challenging. Some things you may want to consider: 1. Play with a good amount of people. 10-15, maybe more. 2. Go for the easier people to kill. They will accumulate over time. The humans cannot hide from 14 infected for long. Sooner or later, the infected will kill him.
     
  13. Offline

    stfupls

    Thanks i hope the update will be quick out cus i play now with 4 people and i was host 2 camped in a connor and shoot both a arrow i had 1 life..
     
  14. Offline

    xBlueXFoxx

    You lose your inventory when doing /inf leave, pretty big issue when you got a server full of whining kids.
     
  15. Offline

    NinjaWAffles

    I understand the inventory losing issue. That is definitely being addressed in the next update.
     
  16. Offline

    xBlueXFoxx

    I actually found another issue, it seems if you leave the round or the round ends, you can no longer build/break until the server is reloaded.
     
  17. Offline

    NinjaWAffles

    This should not be the case. Check a couple of things for me:
    1. Look in the config. Make sure "CancelBlockBreakEvent" and "CancelBlockPlaceEvent" are both set to 'False'
    If the player is OP, they will override what is set in the config file.
    If the player is not OP, make sure that those two nodes are set to false.
    Just to restate what is in my original post: If they are set to false, then player's can build. If they are set to true, then player's cannot build.

    If it still doesn't work, please reply back to me.
     
  18. Offline

    xBlueXFoxx

    They were set to true, however this allows players to break the arena I made, on the other hand the only way I can prevent this is to disable building in the full server?

    I will see if a worldguard region will protect it for now, but I think the arena's should definitely be defined better.

    [Edit]
    That failed to protect it.
     
  19. Offline

    NinjaWAffles

    Right now the plugin does not come with region protection. And to be honest, it doesn't need to. There are many different plugins geared toward region protection. If WorldGuard doesn't work, then try Regios. But like I said, I'm not going to add region protection to this plugin.
     
  20. Offline

    QuintenVis

    Can you make it so Humans have Wooden Sword and Infected Stone?
     
  21. Offline

    NinjaWAffles

    Possibly.
     
  22. Offline

    iWonTonSoup099

    hey ninjawaffles i really think this is a cool pluging and u should make plugins like cod style games such as search n destroy and capture the flags.Etc
    I have 1 Question, can you make it so you can change what zombies and humans have when the start the game
    please along with the other stuff in the other comments. I think it would be really helpful.
     
  23. Offline

    RiotShielder

    Just epic! Is there any way for you to add a currency system, I.E. I kill the 'alpha zombie' and I get 100 points, I can say /inf upgrade which will take my 100 points and give me a random enchantment to the thing I had in my hand when I used the command, or if I say /inf buy sword iron it would take the costs of an iron sword from my points, just a suggestion to make gameplay more dynamic :p
     
  24. Offline

    NinjaWAffles

    Possibly so. If you look in the Plugin Releases (or maybe Plugin Submissions), there is a Search and Destroy plugin. And yes, I am working on allowing you guys to change what the people spawn with. ;)

    Here is the SnD Plugin: Click me :D

    Of course. I am adding things into the next update that would sort of go along the lines of this. One being multi-arena support (which you didn't mention), but the other being the ability to earn points for kills. The only thing is that I am having to make my own economy system to run this plugin. It may be a little bit. Shouldn't be too long though.
     
    iWonTonSoup099 likes this.
  25. Offline

    RiotShielder

    Okay epic! This is really a unique plug-in and reminds me of AlterIWNet's infection gamemode :p
     
  26. Offline

    NinjaWAffles

    Thanks. I have never played AlterIWNet. I bought the games, and played them on Xbox... at least until Minecraft made me fall in love with the PC. I will work on putting out 1.4 soon. It will be a pretty big update compared to what I've already done.
     
  27. Offline

    QuintenVis

    Can you do it for me please? (Another idea: Zombie skin, Autostart)
     
  28. Offline

    NinjaWAffles

    In the next version, the config file will need to be used a lot. By that, I mean that I will add a lot more options. One of them being, that you can choose the items that Zombies and Humans spawn with.
     
  29. Offline

    QuintenVis

    Ok... But can you make it that you look like a zombie or pigman?
     
  30. Offline

    NinjaWAffles

    The addition of MobDisguise has been discussed. There is no real answer at the moment.
     

Share This Page