[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


    Sounds great and like a thing i can use!
    but the leak of iConomy Support is hurting me!
    Please add it Asap!
  3. Offline


    just awesome thnx! :D
  4. Offline


    Please Help Me! I Tried The Command Fight And Got The Message: An Internal Server Error Occured While Attempting To Perform The Command.

    18:59:09 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'figh
    t' in plugin Fight v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:613)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:607)
    at net.minecraft.server.Packet3Chat.a(SourceFile:36)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
    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.NoClassDefFoundError: com/nijiko/permissions/PermissionHand
    at me.ashconnell.Fight.Fight.hasPermissions(Fight.java:336)
    at me.ashconnell.Fight.Fight.onCommand(Fight.java:162)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHa
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 15 more


    :mad:GRRRRRR. HELP ME PLEASE! I HAVE TRIED EVERYTHING!!!!! :mad::mad::mad::mad:

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


    create the spawn abd lounge points for each team and it will work.
    Tested it and it works well.

    Here are some of my improvment ideas :

    - Leaving command : once you use /fight you will be teleported to the lounge, but if you want to leave you need to use warp/teleportation command. It will be good if you will add another parameter of exit area or something, to make it even more simple add sign support (ex. by interacting with the sign you will leave the lounge area and all the equipment you got will be removed)
    - Teleportation : by selecting the exit area, the winners and the dead people will be teleported to that spot as soon as they die/win the battle.
    - Winner reward : add a configurable reward system based on iConomy and/or items. As soon as one team wins a battle all the team members will get reward based on the parameters in the config file.

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


    Thanks for the suggestions beatcomet, i like the exit sign idea!

    I will be adding iConomy support and item rewards shortly

    Okay so in the next release the winners wont get to keep their items after a fight, that was a bug and i didn't notice it. Thanks a lot to everyone helping me out with these bugs. I want to squish all the little things before working on slightly bigger things like iConomy, as i think things like the extra Waypoint needs to be addressed now

    EDIT: And i am working on the dropping items problem now...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 15, 2016
  7. nice plugin :) and perfect timing. I had just finished making an arena.
    I was planning to do all this manually with chests and warp points lol
    Too bad in the end the items dont disappear, but nonetheless great plugin
  8. Offline


    was about to tell you about the winning thing but glad you are already working on it ^^

    hope you can make it possible for iconomy rewards
  9. Offline


    Hi verry great plugin Nice Idea :D

    can you build in that when the Fight ends, an automatic command like /clearinventorry comes, to prevent farming for Armors/weapons?
  10. Offline


    Alright version 1.0.2 is out, keep the feedback coming - this makes my job so much easier and it allows me to give you guys what you want. With version 1.0.2 i have:

    - Disabled dropping items when you are in a Fight team.
    - Fixed a bug when using /Fight before setting any Waypoints
    - Inventory is now properly cleaned out after a Fight (including armor slots)

    Woot! This is very close to being a stable and usable plugin that will allow me to add features instead of squash bugs and fix little things

    I beat you to it!

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


    Hi, I get the same error as James0 and when I try to run '/fight bluelounge' it says 'Invalid Command. (503)'.
    Looks like a really neat little plugin, would be nice to get it working...
  12. Offline


    can you make a video Toturial for this plugin, please
  13. Offline


    Looks like you don't have permissions or you haven't added 'fight.admin' to your permissions

    Yes mate i am just waiting for my girlfriend to have a free minute to help with recording, i need her to play as the opposite team to show you guys!

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


    OK, I never looked into java because I didn't want to spend weeks to do the simple stuff I might want to add, but 2, or even 4 days if I take it easie are OK.

    How did you learn it? Books? web-tutorials? Would you mind PMing me?
  15. Offline


    Hey dude, i'm loving the idea so far but i've hit a bump in the road while setting up.
    This is what i get when i try setting the spawn points:

    An Internal Error occured while attempting to perform this command.
    An Internal Error occured while attempting to perform this command.

    Does this plugin REQUIRE Permissions? I keep getting this same Internal Error, i don't have permissions though.
    Is that it?
  16. Offline


    Yeah I forgot to make a hook for what to do if you dont have permissions so it just errors. So it requires permissions for now I may change it later
  17. Offline


    Could you please add support to not require permissions?

    May i also suggest being able to limit the amount of people that can select classes.

    For example, have a whole team stack Tank could be extremely unbalanced.
  18. Offline


    Sorry, I'm new to bukkit and permissions, do I make files called fight.admin and fight.user in my permissions folder and then put my username in them, because I tried that and it changed nothing. The permissions plugin is not well documented...
  19. Offline


    Great work with this update! Nice!
    But now, when the last player die, the winner drop his stuff...
    And other question: is it possible to have some more "rounds"?
    And... about conflict with levelcraft, is there any solution? :s
  20. Offline

    Jeremy Mancini

    It Says To Me On My Server:
    An Internal Error Occured While Attempting To Peform This Command.
  21. Offline


    An internal error occured while attempting to perform this command. :( Don't know why. It's when I'm trying to set the lounge and spawn.
    Ah nevermind I read I need permissions. ugh I hate that plugin, I can never seem to get it working. haha
  22. Offline

    Tfs Halo

    i use group manager and works fine :) also deminetix check the changelog dates :) it's may not april :D

  23. Offline


    players still keep items after the fight on my server

    anything I have to do to enable it or something?
  24. Could you maybe make it so that you could have more than one arena? I run an RPG server with to different main races so one arena complicates things a bit.
  25. Offline


    Got some fresh new ideas, you are free to choose and use any of the below :

    - Multy arena support by adding the arena name to the command (ex: /fight redspawn <arena name>)
    - Sign based teleportation system : I'm using command sign and a warp plugin for simple use of the arena plugin but that causes lags and crashes, so making sign based teleportation will be awsome.
    - Clear inventory : using the command /fight while having items is impossible so you can add item deletion support.
    By hitting a sign the player will be automaticly teleported to the lounge and all his items will be taken away.
    - Lobby support : another cool feature would be the lobby, by setting a lobby room it will be much easier to use this plugin, if you will add this feature and the sign based teleportation, player will be able to use multy arena easily.
    The lobby will contain chests to store the items of each player before he enters a battle. If you can try to add wand selection feature.
    - Rating system : every win will give you pionts, every loss will take some of your points away, by using this feature you can make the fights more interesting and mybe add leaderboard support.
    - Leaderboard : using the rating system, you can create a leaderboard. Players will now want to fight to prove that they can be the next champs.
    - FFA mode : You vs. everybody else, this is the ultimate survival fight.

    That's it, I hope you will like some of the ideas and use them :D
    Have a good day
  26. Offline


    this plugin is awesome :D thanks man!
  27. Offline


    Small error: it is May
  28. Offline


    Multiple arenas and iconomy / reward system would make this the best :p.
  29. Offline


    This is probaly related to my own stupidity, but how exactly do you make the signs to choose the classes? Ive tried typing
    Ranger and "Ranger" and [Ranger] on the top line but it never works, I also leave the bottom 3 lines
    blank. Help, because this looks like a really awesome plugin and I cant wait to try it!
  30. Offline


    I think it needs to be


    with an underline on the second line.
  31. Offline


    I am a Web Developer so learning a new language isn't too hard, i wouldn't suggest working on plugins to be your first experience with java though!

    When you install the permissions plugin you need to rename the config file to <world-name>.yml - For example world.yml and then edit the the file and add the permissions nodes. For example the node fight.user would go under default, and fight.admin would go under admin, and then add yourself to the list of admins. If you still need help please ask in the Permissions forum post

Share This Page