[INACTIVE][FUN] Fight v1.1.4 - Arena Type Battles [740]

Discussion in 'Inactive/Unsupported Plugins' started by Deminetix, May 5, 2011.

  1. Offline

    Deminetix

    Fight - Arena Type Battles
    version 1.1.4 | Download | Source | Requires Permissions
    Features
    • PVP Arena style!
    • Two Teams (Red and Blue)
    • Customisable classes
    • Easy to set up
    • Almost commandless (one to join, one to watch)
    • Permissions support
    • iConomy(v5+) and item rewards support
    Arena Setup Suggestion



    How to use
    1. Type /Fight and you will automatically be chosen a team (Red or Blue) and teleported to that team lounge.

    2. Punch a sign with the class you want to be, your name will be added to an available slot on the sign and the class items will appear in your inventory.

    3. Punch it again to remove your name (and the items) if you want to choose a different class

    4. Once your team is ready (Everyone has picked a class) punch the Iron Block, when both teams are ready you will be teleported inside the arena, BATTLE BEGINS!

    5. Players that die will be teleported to the spectator area to watch the rest of the fight

    6. When only one team is left standing everyone will be teleported out and the winning team announced! They get bragging rights!
    How to set up
    1. Download and put Fight.jar in your plugins directory

    2. Boot your server to generate the config.yml file in plugins/Fight directory

    3. Edit the config.yml file and add your own custom classes and rewards, here is an example:
      Code:
                classes:
                    Ranger:
                        items: 261,262:64,298,299,300,301
                    Tank:
                         items: 272,310,311,312,313
                     Swordsman:
                         items: 276,306,307,308,309
                     Pyro:
                         items: 259,46:2,298,299,300,301
                 rewards:
                     amount: 0
                     entry-fee: 0
                     items: none
                                                            
      - Items must be written: <itemID>:<amount>
      - If no item amount is specified it will be 1
      - Seperate each item with a comma

    4. Add the permissions for users (fight.user) and admins (fight.admin)
      Permissions is REQUIRED

    5. Boot up your server and set the Waypoints by typing /Fight <command> (see commands below)

    6. Create a sign in each lounge for each class you have added.

      - The top line is the name of the class you have in config.yml - typed exactly (eg "Ranger" or "Tank")

      - The second line is unused so i put "------------" to make the class underlined
      - The bottom two lines are used for putting the players name on it.

    7. Each lounge needs an Iron Block. When it is punched and both teams are ready (chosen classes) the fight will begin.

    8. I recommend using WorldGuard or something to protect your arena from being destroyed.

    9. If you want destructible terrain inside the actual arena, you should use WorldEdit's blueprints commands to save and load the finished blueprint after each fight. I may try to incorporate this into Fight in the future.
    Commands
    • Admin Commands

      /Fight redlounge - Sets the Waypoint for the Red team lounge

      /Fight redspawn - Sets the Waypoint in the arena where Red team starts

      /Fight bluelounge - Sets the Waypoint for the Blue team lounge
      /Fight bluespawn - Sets the Waypoint in the arena where Blue team starts

      /Fight spectator - Sets the Waypoint where spectators go, and where players go when they die in the arena.

      /Fight exit - Sets the Waypoint players will go to when they type /Fight leave

    • User Commands

      /Fight - Automatically picks a team and warps you to that lounge
      /Fight watch - Warps your to the spectator area
      /Fight leave - Leaves the team your on, and the fight
    Permissions
    Very simple permissions structure
    • fight.admin - Allows you to set up the Waypoints
    • fight.user - Allows you to Fight!
    To Do Now
    • Not sure!
    Suggestions
    • Destructible terrain that reloads after a Fight finishes
    • Support multiple Arenas
    • Save and Restore inventory before/after a Fight
    • Leaderboards
    • Lives - So you can seek revenge!
    • Manually choose team (with command /Fight <Blue/Red>) (optional to admin)
    Changelog

    • v1.1.4(12th May 2011)
      When player disconnect/logout/crash player is removed from team properly and you can still fight again!
      Players get health refilled after a fight
      Hopefully a lot of bugs are gone with this build.
    • v1.1.3 (11th May 2011)
      When a player disconnect/logout his name is removed from signs
      You can no longer teleport out of a fight using /home or /spawn or anything else
      Entry fees for iConomy users - in config file under the node rewards.entry-fee is now charged to player who join a team
    • v1.1.2 (9th May 2011)
      Parentheses bug with rewards system - Now correctly configures config file on first run (do not use parenthesis)
    • v1.1.1 (9th May 2011)
      Fixed bug where respawned players permanently go to spectator area
      Added an Exit waypoint - Players go here when they type /Fight Leave
    • v1.1.0 (9th May 2011)
      Added iConomy support and item rewards for the winning team
      Fixed all major bugs, no item cheats, no problems with fights
    • v1.0.2 (7th May 2011)
      You can no longer drop items
      Fixed a bug when players used /Fight before setting waypoints

      Inventory now gets cleared properly when a fight finishes
    • v1.0.1 (7th May 2011)
      Fixed a bug with config file
    • v1.0 (6th May 2011)
      Initial Release
     
    frastie, PinkHell, jjoonn222 and 6 others like this.
  2. Offline

    beatcomet

    mcmmo works much better with fight plugin.
    You got the ability to go unarmed in the arena against an archer and win, Level craft got different type of effects and skills. So mcmmo is the perfect one for this plugin.
     
  3. Offline

    Deminetix

    Also i need to make this video of how my arena is set up so you guys can get a view from my perspective as to how this plugin should be used (in my eyes)
     
  4. Offline

    beatcomet

    cool, that will make people ask lees questions xD
    i'm going to show you my brand new arena as soon as I finish.

    Here is the arena I built , and it's ready to go :

    View attachment 3213

    Here are the two team lounges :

    View attachment 3214

    View attachment 3215

    Here is the lobby :

    View attachment 3216

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  5. Offline

    Gabriel Crowe

    Nice, but this needs to be simpler. Is it possible to simply let people choose a team and have the arena be all the world? No reloads no teleporting, none of that is required.

    We dont need all the commands and arena stuff, on our server we just need 'Team PvP'.
    - Choose a team
    - Score points for your team
    - All team members get rewards
    - No rounds, no time limit, ongoing battles.
    - The ability to change team limited to once a day or something (traitors!)

    This gives freedom to set up things like forts and traps themselves without breaking the sandboxed approach that minecraft is famous for. Perhaps the rewards could be materials used to build better forts and traps (tnt, pressure plates, arrows dispensers and such).

    We have worldguard, we can set up protected zones ourselves. Simplify please. :D
     
  6. Offline

    naxed

    Awesome work dude !
     
  7. Offline

    beatcomet


    I'm not speaking for the plugin developer so here is my opinion :

    - This plugin allows arena battle, not world wide battles.
    - As far as I know score system will be added later on, as well as leaderboard.
    - The winning team does gets rewards (i'm not sure about the losing team, because I never lost in a battle)
    - There are no rounds or time limit here, The fight ends when one of the team kills all the opponent team players.
    - The team change idea is good, and it will be awsome if id will be added, so players will be able to choose thier team or join a team randomly.

    Hi Demintix Here are my new ideas for improvment :

    - Hook into mcmmo : optionally hook into mcmmo to gain experiance in the arena battles, it will take a lot of work but it will be awsome.
    - Add timer : After every battle, the battle length will be announced.
    - Reward bonuses depanding on the battle length : The winner team will recieve bonuses depanding on the amount of time took them to win, the bonus will be relative to the reward amount set in the config file.
    - Multiple spectator spawn points : by typing the comand /fight watch, the players will be randomly teleported to on of the location set by the op.
     
  8. Offline

    Deminetix

    @Gabriel your idea to make it simpler is like requesting my Fight plugin to be a banana :p

    @beatcomet - How would it hook into McMMO? Don't you still gain XP in the battles? Bloody nice arena too!

    What does everyone think needs to be done with the plugin now that it is in it's current state? I am thinking maybe the "team lives" idea so that the fights last a bit longer and you can come back for revenge! Also, manually choosing teams (/fight red)
     
  9. Offline

    tmr

    Your addon setup was VERY easy. Setting new or removing existing "classes" is simple. The fights are working great as well. I have one question and one concern.
    Question: If I set multiple items for a reward does it randomly choose one? Or does it just give all in the list? I was hoping it would randomly give whatever quantity of whatever item I've set in the list of items available for reward.
    Concern: I see that you made it so you cannot throw items (diamond armor from "Tank" class) down. But you can still put them into a chest... I want this addon badly. But obviously this WILL be abused. So we won't be able to use it until that is addressed.

    TMR
     
  10. Offline

    SgtSquishy

    I keep getting Invalid Command messages when I try to set the way points?
     
  11. Offline

    Deminetix

    Don't put chests in your arena for players to put them in. Also, the reward can be multiple items (and amounts) but it is fixed, not random
     
  12. Offline

    tmr

    Couldn't they just walk to their house after typing /fight and choosing a class? Or bring a chest with them, set it down, choose their class and fill their chest with class items? I understand if it cannot be done though... I don't make addons so I don't know. Just asking.

    As for the rewards, is it possible to make it random? And possibly add percentage of chance to win those random rewards?

    Thanks,

    TMR
     
  13. Offline

    Rawhide_Gin

    Hey man, Great Plugin!!! Just put it on my server and the guys love it!!
     
  14. Offline

    godhand1942

    What does everyone think needs to be done with the plugin now that it is in it's current state? I am thinking maybe the "team lives" idea so that the fights last a bit longer and you can come back for revenge! Also, manually choosing teams (/fight red)[/quote]

    Seriously love this plugin. Made a great arena for it and we have tons of classes :D My fave is knight (saddle w/ mobrider). I really love how this plugin is soo simple. Its better than a banana. Team lives is a very good idea IMO. If you allow people to choose teams make it configurable.
    One bug we were having was with sticky signs. If you /fight and then disconnect the sign keeps the name and its impossible to remove someone's name without removing the sign. Not a big issue cuz I just replace the sign easily.

    An idea is a kill counter. So that people are rewarded for kills as well.
    Another idea is a death cost. Something of course configurable but if someone dies too many times, he loses more money than the potential reward when winning.
     
  15. Offline

    Deminetix

    I dont know why i never thought of that, ill make sure the next release removes a player from the sign if he disconnects whilst in a team/fight
     
  16. Offline

    beatcomet

    First can you tell me how to tag people like you did with the @ thing?

    And second the mcMMO hook means that you will get more exp in the arena battles, I also saind that it would be optional so people that do not use mcMMO will be able to use this plugin.
    About the lives, this is a good idea for my opinion and I think most people here will be glad if you add this feature.
    Mamually team choosing command will be awsome but only if it will not replace the current random system, I mean platers will be able to choose thier team or by simply typing /fight the system will choose a team for them randomly.

    Now it's time for some fresh new ideas :

    - In the arena netherracks will randomy ignite, making the arena more dangerous, as you can see in the arena I built, soulsand has been randomly placed to make it more interesting and hard to fight. Having radomly ingiting netherrack will make it even more interesting.
    - Arena master : after making the multiple player made arenas, you can make an arena master challange. Players will be able to compete against the arena master (the player who set the arena) to win special rewards just like in Poke'mon. By collecting all the special items you will be able to enter the WWT (World wide tournament).

    That's it :D
    Have a nice day
     
  17. Offline

    SgtSquishy

    Ahhh I put in the permissions, but when I go to set the areas, I get some 503 error or something telling me that the command doesn't exist. What is the problem? D: help please. I'd really like to use this plugin.
     
  18. Hmm i am getting alot of errors like this:

    Code:
    2011-05-10 11:23:43 [SEVERE] Could not pass event PLUGIN_ENABLE to Fight
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
        at me.ashconnell.Fight.FightServerListener.onPluginEnable(FightServerListener.java:30)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:408)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:633)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    Code:
    2011-05-10 11:31:04 [SEVERE] Could not pass event PLUGIN_ENABLE to Fight
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
        at me.ashconnell.Fight.FightServerListener.onPluginEnable(FightServerListener.java:30)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:408)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:633)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    using 740 build, and iconomy 4.6
     
  19. Offline

    beatcomet

    i'm getting an error when someone dies :

    2011-05-10 11:39:52 [SEVERE] Could not pass event ENTITY_DEATH to Fight
    java.lang.NumberFormatException: For input string: "none"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at me.ashconnell.Fight.Fight.giveRewards(Fight.java:543)
    at me.ashconnell.Fight.FightDeathListener.onEntityDeath(FightDeathListener.java:87)
    at org.bukkit.plugin.java.JavaPluginLoader$45.execute(JavaPluginLoader.java:480)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:121)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:393)
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:423)
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:149)
    at org.bukkit.craftbukkit.entity.CraftLivingEntity.damage(CraftLivingEntity.java:170)
    at TechGuard.iZone.listeners.eListener.onEntityDamageByEntity(eListener.java:71)
    at TechGuard.iZone.listeners.eListener.onEntityDamage(eListener.java:90)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:474)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:522)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:803)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  20. Offline

    Deminetix

    Please use the latest build of iConomy v5.0 and let me know what happens :) thank you

    Sorry please remove "none" from the rewards.item node in the config file, this should fix it and i will make a fix for the next update

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  21. Yup, its all good now with iconomy 5 thanks
     
  22. Offline

    beatcomet

    Thanks, it works.

    Here are some ideas that will improve the reward system:

    - Relative reward : The reward will be based on the amount of players in the opposite team. The more opponents defeated, the more money and items you get.
    - Class bonus/penalty : Archers will get less money/items while melee classed will get more (penalty will apply if the selceted class owns a bow and the bonus will be applied while having a sword).

    Some pre-fight ideas :

    - Registration fee : The registration fee will be charged after the player types the command /fight. If the player dosn't own enough money he will no be allowed to fight.
    - Leaving fee : If a player uses the command /figh leave in the middle of the battle he will pay a cretain amount of money.
    - Betting system : Sign-based betting system, each player will be able to place a bet over one of the teams.By combining it with the rating system you will be able to add miltipliers according to the team's rating (ex: If a player got a rating of 100 and his teammate got a rating of 150, they got total of 250 pts. The opponent team got one player with 95 and 210 rating, total of 305 that means that the odds that the second team will win will be higher because they got better rating).
    So here is a simple formula for the multiplier :
    weak team : 1.5 + (opponent's rating - my rating)/[amount of players * (opponent's rating - my rating)]
    strong team : 1 + (opponent's rating - my rating)/[amount of players * (opponent's rating - my rating)]

    So if you will place a bet over one of the teams you will get :
    amount of money risked * multiplier

    ex : placed 50 money on the weak team
    you will recieve 50 * (1.5 + 55/110) = 100 money
     
  23. Offline

    Deminetix

    The betting system is pretty cool - For hardcore pvp servers who want arena matches, placing a bet on a team once i add the ability to manually choose teams will be sweet!

    Just uploaded a video at the top of the page ^

    This shows off how i envision that your arenas should be set up for optimal use, let me know what you all think!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  24. Offline

    beatcomet

    Your arena is so awsome.
    I'm going to build another one, and maybe I will post the map here
     
  25. Offline

    Deminetix

    I have seen some pretty awesome arenas in youtube videos - i made mine without putting much thought into it - It needs more challenges and obstacles and it also needs to be a lot bigger!
     
  26. Offline

    Dyllon

    I dont want to be pushy or anything but there is just one more big thing that "must" add i asap! And that one big thing is tomake it so u can use this without permissions! (Ops)
     
  27. Offline

    Runeslayer

    I have two suggestions that I would personally like to see for this plugin:

    1. BOSeconomy support! /begs
    2. Capture-The-Flag - I honestly feel that this is too important to pass up for this plugin. It's the only thing I can honestly say that I really feel is a pressing need for this great plugin.

    Thanks for the great work - I love this plugin. :)
     
  28. Offline

    philipborg

    rip off of war?
     
  29. Amazing plugin! The only problem I have is I am also using multiple lives, which means that when someone dies he keeps his stuff! I can obviously turn this off, but i was just wondering if you, (or anyone else) had an idea about how to temporarily disable it when starting a fight

    Brilliant stuff though, Multiple lives (in battle), points, capture the flag and choosing teams would make this plugin the best in minecraft by a long way.
     
  30. Offline

    Jakawar

    Hee greetings i have started a New pvp server and already made few arena's! Because i saw your Plugin ofcourse because i didnt knew it was possible that way :) Now i have installed it, And i walk to the place wher i want to be the Blue lounge. It says : An internal error occured while attempting to perform this command. Can you please help me because i wasted so many times on building those arena's so maby you could help me! ;) Thnx!
     
  31. Offline

    beatcomet

    Consider using soulsand and flamable netherrack obstacles. I'm using false book so I will be able to make self triggered flames that will appear in random spots in the arena.
    I will post my new arena soon and add a download link as well.
     

Share This Page