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

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

  1. Offline


    Fight - Arena Type Battles
    version 1.1.4 | Download | Source | Requires Permissions
    • 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:
                        items: 261,262:64,298,299,300,301
                         items: 272,310,311,312,313
                         items: 276,306,307,308,309
                         items: 259,46:2,298,299,300,301
                     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.
    • 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
    Very simple permissions structure
    • fight.admin - Allows you to set up the Waypoints
    • fight.user - Allows you to Fight!
    To Do Now
    • Not sure!
    • 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)

    • 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


    I agree with previous poster regards setting registration fee (optional of course), otherwise any set reward becomes a backdoor way for people to collude to alternatively fight and win to build up their money. I would suspect setting this fixed deduction per player (when they type /fight) in the config file would be relatively simple to implement as well. I like lots of the other sophisticated ideas proposed about iconomy based rewards, betting etc but the one I mention would be a pretty quick fix and close off this loophole while the longer term ideas are developed.

    I am also a big fan of a leaderboard and the associated ideas but I personally think the auto empty inventory at start and return at end is more important to make this plugin instantly accessible to players.
  3. Offline


    Can you post me the code for the error - Then i can tell you whats wrong

    Sounds insane!

    Would it be right to set a registration fee that automatically gets deducted with no message or should there be a message that says "xx dollars was deducted from your holdings to enter the arena" when you type /fight.

    I think the registration fee is brilliant, because as you said, the rewards will be farmed, but if your server is quite reliant on money then a registration fee would stop farming, and only people who want to fight for fun will do it
  4. Offline


    Make it so that a person can start a fight for no money by using /fight
    or give them the option to say /fight 80
    which would start a fight that costs 80 coins to join to, all the money taken goes to the winner/winning team
  5. Offline


    Okay, here's the code for the error on my server. I've got a lot of plugins, but they all work fine so no of the Severe errors are from those. :\

  6. Offline


    Alright easy fix - your using an older version of iConomy, upgrade to version 5 and let me know if that fixes it!
  7. Offline


    Building a cool arena now, getting my falsebook on with collapsing bridges and cages and stuff. Works awesomely with mcMMO, since my server has a Builder class that gets free kits (which they aren't supposed to use in the arena) and Survivalists who are fairly OP with their mcMMO skills.

    This has brought up an issue, though, in that Builders can indeed just use kits in the arena. They're wiped after the match and their previous items replaced, of course, but if it's possible, I was wondering if there was a way to maybe give people a temporary permissions class when they enter the lounge?

    Also a way to ban specific people from joining arena matches if they have a flying mod or use it in the arena. Currently I'm doing this by giving the specific players a negative permission node for this plugin, but I imagine some people might like to do it without futzing about in the backend.

    Finally, is it possible to add a minimum player count? It hasn't happened yet, but I'm worried that I might get a couple of people constantly joining fights to get mountains of delicious cake.
  8. Offline


    Okay the new release is up. This is what i have done:
    • You can no longer teleport out of the arena using /home or /spawn or anything else
      You have to leave the Fight using /fight leave, or /fight watch
    • iConomy support for entry fees.
      Existing users just need to add the node [rewards > entry-fee: #] to their config files (see the template up top of page)
    • Players who disconnect/logout will be removed from teams and their name will be removed from signs
    • I cleaned the code up and changed a few messages etc to make it slightly more solid

    With the entry-fee feature and iConomy you could make the entry-fee amount close to half the price of a cake on your server. This way with 2 players farming it, the cake is paid for, and the winner of the fight rightfully wins the cake.

    Edit: This is where iConomy shines!

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

    Casey Key

    Hey I set up anything and have no items but when I type /Fight nothing happens
  10. Offline


    Does the console throw any errors?
  11. Offline


    This is exactly what I was looking for. My only issue so far though is users can /fight pick a class to get the gear then just /home and keep the diamond armor. Is there anyway to stop that from happening? Also in the future it would be great if we could set more than one arena.
    tmr likes this.
  12. Offline


    I just added a fix for that - all Fights disable any kind of teleporting
  13. Offline


    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?



    Sorry I forgot to quote what you said the first time I replied so you may have missed it.

  14. Offline


    I dont think i will add random reward support.

    About the cheating - If you set your arena up like i have in my video (up top), and using worldguard, there is no way people can walk out of the arena with the gear. Sure you put items in a chest (if an admin put a chest in the arena) but you cant leave the arena with any items... so that is useless. You now also cannot teleport out of the arena either.

    I think the reason this plugin was never made to begin with was because it is just plain hard to make it secure so people can't steal items. But i have managed to do it, even if it was harder than i thought.
  15. Offline


    Missed me?
    Well I saw the update and it's awsome, thanks for that.
    And I got some great ideas for you :
    - Reward room support : optionaly set a reward room support, so player will be able to get extra rewards using phatloots for example.
    - Auto fight reset : after the fight ends I can't fight again because it says that there is already a fight going on (no error massege or fight going on in the arena).

    that's it, i'm going to school now I will get you some other ideas after I finish studying.
  16. Offline

    Casey Key

    nvm I had to fix the permissions.
  17. This is realy a nice plugin and work very fine for me, but is there any possibility to fight only the other team and also fight, due to that pvp is disabled on the server?
  18. Offline


    I thought about this a while back. I might add an option to turn off hurting team members. Also for larger teams its hard to tell who is who so ill see what options I have for that, like colored block heads red and blue for each team which I think they use in War
  19. Offline


    Alright so after trying this out more, it works great!

    I was about to suggest wool on the heads of participants to show the team they're on, and other people have already mentioned multiple arenas so WHELP i guess thats everything dealt with!
  20. Offline


    Here is a list of stuff that will be easy to make and will improve the plugin (and im assuming that they are not too hard to make as well):

    1. Manually choose team - Command based team selection (/fight <Blue|Red>).

    2. Optional team choose - Players will not have to choose a team in order to fight, by simply typing /fight, the system will automaticly choose a team for the player according to the amount of players in each team.

    3. Arena status sign - By placing a sign with a certain syntax, the arena status will be automaticly displayed (Fighting|Clear).

    4. Auto fight reset - The arena will automaticly teleoprt players out of the arena to the exit point (the one set by /fight exit) after 30 seconds. After the players will be teleported out of the arena, the status will change into Clear or and players will be able to get in and start a new fight.

    5. Reward room waypoint - An optional way point that will be set by using a certain command such as /fight rw. the winner in each fight will be teleported to the reward roon and collect thier extra reward. Phatloot plugin can be used for that (this plugins enables you to create chests thta will contain rewards with setable refresh time and reward chance).

    These are my suggestions, some have been taken fron the suggestions list in the main post and the others are my new ideas. I will be glad if you will add these features to the next release (i'm sure other users will as well) :D

    Have a nice day
  21. Offline

    Gabriel Crowe

    After some consider ation about my simplifaction requests, i have found a plugin that does exactly what i want, and i realise that both plugins have their place, the plugin is called 'factions'.
  22. Offline


    I am trying to keep this plugin from becoming bloated so I think support for manual teams, friendly fire on/off, and team colored heads will be the biggest changes coming. From then on I might create an addon plugin that will allow users to place bets, have tournaments, and leaderboards.

    What does everyone think? I dont want this plugin to become a monster!
    beatcomet likes this.
  23. Offline


    Awsome idea, can you assume when will the next verstion come out?
  24. Offline


    I see you picked an avatar haha good work. I will work on it this week as I have a few clients to work with first
  25. Offline


    Cool :D
  26. Offline


    BOO. That's a shame really, we were looking forward to this specifically.

    Ok, I didn't quite understand at first you had your arena completely walled off. I did not. I've changed that now and locked the area down with Worldguard. Now to setup Worldedit's schematics.
  27. Offline


    Great that you can help me ! here is the bunch of error i get ! Thank you for helping me!
    org.bukkit.command.CommandException: Unhandled exception executing command 'figh
    t' in plugin Fight v1.1.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    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)
    Caused by: java.lang.NullPointerException
    at me.ashconnell.Fight.Fight.hasPermissions(Fight.java:365)
    at me.ashconnell.Fight.Fight.onCommand(Fight.java:183)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
  28. Offline


    Do u have the latest permissions set up and added fight.admin and fight.user? Also update to v1.1.3 of my plugin
  29. Offline


    I updated it to the latest version right now. it still give me that errors, i think ther is something wrong with my persmissions can you please check it out for me ! :)

    This is what i typed in permissions:
    default: false
    prefix: ''
    suffix: ''
    build: true
    - '*'
    - 'Fight.admin'
    - 'Fight.user'

    Then a little bit lower under users:
    group: Admins
    - 'fight.user'
    - 'fight.admin'
    - '*'
  30. Offline


    Hello ,

    Something is wrong for me because when iam going to write /fight bluespawn or redspawn or something like that its just standing, Invalid Command. (503) , pls help me!
  31. Offline


    are you using permissions?
    If you are not, download permissions and set up the following permissions :
    default group : - 'fight.user'
    admins group : - 'fight.admin'

    You can add random rewards by setting the exit point to a special room, and by using phatloots you can create reward chests, i'm using that on my server to get some extra rewards.

Share This Page