[FUN] PVP Arena v0.0.5 - Team Style PVP Arena [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Carbon131, Jul 6, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Carbon131

    PVP Arena - Team Style PVP Arena
    version: 0.0.5 | Download | Permissions

    This is the same plugin as Deminetix's Fight plugin, but since he hasn't updated it (on github) since May 10, 2011 and people are asking for it to be fixed/updated and features added we decided to not let this amazing plugin die. Right now we've just done bug fixes and changed the commands, but we do have great things planned and are working on getting multiple arenas working. Below is a modified version of Deminetix's orginal post. This is a continuation of a continuation started by Bradley Hilton located here.

    Features
    • PVP Arena style!
    • Two Teams (Red and Blue)
    • Customisable classes
    • Easy to set up
    • Permissions support
    • iConomy(v5+) and item rewards support
    • Saving of inventory when joining, restoration on end of game
    • Cuboid arena protection
    • Team killing protection
    How to use
    1. Type /pvparena (or /pa) and you will automatically be assigned to a team (Red or Blue) and teleported to that team's lounge. (Your inventory will be saved, but if server crashes, you'll lose it.)
    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, and thus the 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 pvparena.jar in your plugins directory.
    2. Boot your server to generate the config.yml file in plugins/pvparena directory.
    3. Edit the config.yml file and add your own custom classes and rewards, see example below.
    4. Add the permissions for users (fight.user) and admins (fight.admin).
    5. Boot up your server and set the Waypoints by typing /pvparena <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 we usually 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. Select the wand you defined in your config to create a cuboid selection area
    • First you need to type '/pvparena region set'
    • Then you need to select one corner by left clicking a block while holding the wand item
    • Next, you need to select another corner by right clicking a block while holding the wand item
    • Now type '/pvparena region save' and you have your arena protection set, configure the arena protection by opening up your config.yml and change the config options.
    Note: You do not have to have the arena protection enabled; however, if you want the arrows and items that are left in the arena to be removed after each round, you must setup a region.

    Config.yml
    Code:
    classes:
        Ranger:
            items: 261,262:128,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
    protection:
        enabled: false
        player:
            disable-block-placement: true
            disable-block-damage: true
        ignition:
            block-tnt: true
            block-lighter: true
        fire:
            disable-lava-fire-spread: true
            disable-all-fire-spread: true
        wand: 280
    teams:
        manually-select-teams: false
        team-killing-enabled: false
        randomly-select-teams: true
    How to Move Your Existing Set Up From Fight to PVP Arena

    Before reloading or restarting your server, after downloading the pvparena.jar do the following:
    1. Go into your plugins folder
    2. Locate the Fight folder
    3. Rename it to pvparena(yes all lowercase)
    4. Restart or reload your server and continue as normal.
    Commands

    You can replace /pvparena with the short version of /pa in any of these.
    • Admin Commands
      • /pvparena redlounge - Sets the Waypoint for the Red team lounge
      • /pvparena redspawn - Sets the Waypoint in the arena where Red team starts
      • /pvparena bluelounge - Sets the Waypoint for the Blue team lounge
      • /pvparena bluespawn - Sets the Waypoint in the arena where Blue team starts
      • /pvparena spectator - Sets the Waypoint where spectators go, and where players go when they die in the arena.
      • /pvparena exit - Sets the Waypoint players will go to when they type /pvparena leave
      • /pvparena region set - Enables cuboid selecting for arena protection
      • /pvparena region save - Saves cuboid selection for arena protection
      • /pvparena region edit - Edits the existing cuboid selection for arena protection
      • /pvparena forcestop - Forces a complete stop of a game and teleports players out
    • User Commands
      • /pvparena - Automatically picks a team and warps you to that lounge
      • /pvparena watch - Warps your to the spectator area
      • /pvparena leave - Leaves the team your on, and the fight
      • */pvparena blue - Joins the blue team
      • */pvparena red - Joins the red team
    * = Only works when 'manually-select-teams' is set to true in the config

    Permissions
    • fight.admin - Allows you to set up the waypoints and arena protection
    • fight.user - Allows you to fight!
    NOTE: If the Permissions plugin isn't detected, fight.admin will default to operators and fight.user can be accessed by anyone.

    To Do
    • Add support for multiple arenas! (it will come within a week depending on how much time I have)
    • Lives.. Makes more sense and make interesting to have more than one life in the game.
    • Make the ready block configurable.
    • Block commands, configurable.
    Suggestions
    • You tell me!
    Changelog
    • 0.0.5 - July 15, 2011
      - Made it so when the game is finished, if a region is setup for the arena it will remove all the items and arrows that are left in the arena when the game is done
      - Added more config options, 'manually-select-team' and 'randomly-select-team' and commands '/pa blue' and '/pa red'
      - Fixed a bug so when a player disconnected while playing a game it would say the player is still in game (still testing, please report bugs)
      - Fixed another bug so when a player disconnected while in game the game wouldn't end
    • 0.0.4 - July 6, 2011
      - Added cuboid arena protection, this includes block placement, block removal, fire spread, lava fire spread, block tnt, block lighter protection
      - Added team killing protection so you can enable/disable team killing
      - Hopefully fixed the bug where if you had put 'none' for the items option in the config the plugin would break after one round
      - Fixed some coding redundancies that I found, which made it more efficient (still needs more work though)
    • 0.0.3 - May 20, 2011
      - Thanks to @Carbon131you no longer have to have an empty inventory. BUT to make this happen, you have to hit the respawn button. This will stay like this unless we figure out something different.
      - Fixed the bug where if a user was on fire when killed, they'd still be on fire when respawned.
      - We also hopefully fixed the spawn issue where players weren't getting teleported out of the arena. If you're still having problems, please let me know and maybe I can come on your server once and see what's happening.
      - Also thanks to @Carbon131, the [pvparena] is now [PVP Arena]. I was going to do that, but he beat me to the punch lol
    • 0.0.2 - May 18, 2011
      -Worked with the new die/spawn, when you get killed you no longer have to "respwan"
      - FIXED: Inventory bug, where if you had more than 64 arrows, for example, in your configuration they'd appear later
      - Added our commands instead, so the two don't conflict... And added a short version, /pa.
    All original coding goes the the first author of this plugin, and unless he comes back I'm going to continue development of this plugin for the sake of this community.
     
  2. Offline

    Bomberman852

    Thanks, its a nice plugin and i like it :)
    Im using it on my server now :D
     
    Misteralex likes this.
  3. Nice to see another fork of a fork. :p Thanks for keeping it alive.
    oooo

    Edit: Nice additions you added too.
     
  4. Offline

    Carbon131

    @Bomberman852

    Np, I'm glad you like it :)

    @kahlilnc
    Haha ikr? :p

    Np, thanks.

    And this no longer requires permissions, for those of you who are wondering.

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

    Snaipe

    Along with command blocking, could you put an option to allow teleporting ? It would be ok since the /spawn and other tp commands would be blocked in the config by the admin, and that would be cool for in-battle Portals.
     
  6. Offline

    Muyloco1

    Is there a way to leave the spectator area?
     
  7. Offline

    Carbon131

    @Snaipe

    Sure, I'll look into it.

    @Muyloco1

    The 'spectator area' is just a warp you designate yourself. You have to manually leave since '/pa leave' is for people who are playing. However, I could make it so you could use '/pa leave' when your not on a team and your teleported to the exit waypoint if you'd like.
     
    pucky likes this.
  8. Offline

    Muyloco1

    If it's no trouble, then sure! Thanks
     
  9. Offline

    Carbon131

    @Muyloco1
    Alright I will try and get that working in the next release :)
     
  10. Offline

    Muyloco1

    Thanks, also sometimes when someone leaves the arena in the middle of a fight, or starts a match alone and leaves, it says the fight is still going on. So then I have to delete the data for whoever was in the fight to make it so you can start a game. I'm not sure if I did something wrong or not.
     
  11. Offline

    Carbon131

    @Muyloco1

    No problem. Ah I see, I've had that same problem before, and I will see if I can figure out why its doing that. Also, did they actually leave the server or use '/pa leave' or '/pa watch' while in a game?
     
  12. Offline

    Muyloco1

    The first few times it was disconnecting during a fight and the other time it was '/pa leave' (or atleast the person said he did that).
     
  13. Offline

    NotYetRated

    You should check out MobArena, he has the same idea as you(and is based off of yours) but has much more versatility. Would be nice if you could get some of his code for things like protections, rebuilding the arena after destruction, commands to show who is playing and on what team, command for admin to force close/force start a match...

    Would also be nice to be able to bet on a match.

    Ability to pick teams. Ability to not allow matches to start with uneven teams. Stats would be cool too, win losses per person... A way to tell teams apart somehow would be beneficial haha....

    We also get the bug with the "match still going"

    Damn good start though my players love it.

    items also are not being awarded for my members?

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

    Muyloco1

    Here's another suggestion: Have the armor auto equipped like in MobArena
     
  15. Offline

    Carbon131

    Alright I have a version which attempts to fix that, it'll be released soon.

    Interesting ideas, I will look and see what I can do and keep you posted. I'll see if I can add betting on a match as well.

    Thanks, I will be updated this frequently!

    Could you post your config please?
     
  16. Offline

    NotYetRated

    Let me know if any help is needed!
    Config:
    Code:
    classes:
        Pyro:
            items: 259,46:2,298,299,300,301,268
        Tank:
            items: 272,310,311,312,313
        Swordsman:
            items: 276,306,307,308,309
        Ranger:
            items: 261,262:128,298,299,300,301
    rewards:
        amount: 125
        entry-fee: 100
        items: 264:1
    team-killing:
        enabled: false
    protection:
        enabled: true
        player:
            disable-block-placement: false
            disable-block-damage: true
        ignition:
            block-tnt: false
            block-lighter: false
        fire:
            disable-lava-fire-spread: true
            disable-all-fire-spread: true
        wand: 280
        region:
            min: -476.0, 58.0, 1696.0
            max: -357.0, 90.0, 1813.0
            world: world
    coords:
        bluelounge:
            yaw: 90.60201
            pitch: 8.100013
            z: 1748.0
            y: 70.0
            world: world
            x: -372.375
        redlounge:
            yaw: 89.10202
            pitch: 10.2000065
            z: 1780.0902984811312
            y: 70.0
            world: world
            x: -370.8388796130422
        redspawn:
            yaw: -267.5987
            pitch: 13.499971
            z: 1770.085309211421
            y: 70.5
            world: world
            x: -399.2513518392658
        bluespawn:
            yaw: -91.19867
            pitch: -3.169775E-5
            z: 1769.65625
            y: 70.5
            world: world
            x: -449.9375
        spectator:
            yaw: -356.99863
            pitch: 8.999966
            z: 1729.1560705557326
            y: 79.5
            world: world
            x: -421.0651687897928
        exit:
            yaw: 196.43733
            pitch: 27.599907
            z: 330.54014949756134
            y: 75.0
            world: world
            x: -33.920314840246135
    
     
  17. Offline

    dvdbrander

    Nice plugin, but there is 1 failure, you can still enter the arena with more items than default. As ranger: shoot your arrows in the lounge, loose your class and get it again, and you've got more arrows. As a pyro, build the tnt in the lounge, re-pick your class, and remove your tnt, and there you are, 4 tnt.
    further, does the arena resets when the fight is over? and when exactly is the fight over, I wasn't able to find that in your first post.
     
  18. Offline

    Carbon131

    Thanks for posting it, could you try removing the :1 from your 264 in your items config option, and tell me what happens?

    Yeah I have noticed that as well, but thanks for reminding me again. I will write a function that will 'clean up' the arena after each round. And the fight is over when everyone on either one of the teams is dead.
     
  19. Offline

    NotYetRated

     
  20. Offline

    Carbon131

    Alright thanks, could you see if it would work if you did 264,265?

    items: 264,265
     
  21. Offline

    beatcomet

    Hi , I have a suggestion for you :

    After making the multiple arena support, it will be better if every arena will have it's own configuration file.
     
  22. Offline

    dvdbrander

    and maybe hitting a sign to join the fight, leave the fight etc?
     
  23. Offline

    gmore70

    A little problem. I cant select a region for my region...wand not working.

    I do the following:
    1. I type /pvparena region set
    2. then I use my wand - item 280 - left click block 1 with 280, then right click block 2 with 280. Just like world guard and worldedit.
    3. When I hit with my item, I get nothing in my console to say I select the point. Its blank...nothing.
    4. I type /pvparena region save and it says I have not selected my area yet.

    I have set all my spawns.

    No errors at all in logs.

    Im running MC 1.7.2, RB 953 and your latest. Here is my config.yml:

    classes:
    Sith:
    items: 283,46:2,298,299,300,301,322:10
    Trooper:
    items: 272,310,311,312,313,320:4
    Jedi:
    items: 276,306,307,308,309,320:2
    Sniper:
    items: 261,262:128,306,307,308,309,320:2
    rewards:
    amount: 0
    entry-fee: 0
    items: none
    team-killing:
    enabled: false
    protection:
    enabled: true
    player:
    disable-block-placement: true
    disable-block-damage: true
    ignition:
    block-tnt: true
    block-lighter: true
    fire:
    disable-lava-fire-spread: true
    disable-all-fire-spread: true
    wand: 280
    coords:
    redlounge:
    yaw: -268.35062
    pitch: -1.3854648
    z: 76.53125
    y: 69.0
    world: starwars
    x: 229.375
    bluelounge:
    yaw: -89.39498
    pitch: 14.267459
    z: 57.34375
    y: 69.0
    world: starwars
    x: 220.5625
    spectator:
    yaw: -3.9944868
    pitch: 11.735386
    z: 114.1875
    y: 64.0
    world: starwars
    x: 211.9375
    exit:
    yaw: 182.2292
    pitch: 11.85048
    z: 114.1875
    y: 64.0
    world: starwars
    x: 201.9375
    bluespawn:
    yaw: 68.762695
    pitch: 9.54858
    z: 158.90625
    y: 72.0
    world: starwars
    x: 231.5
    redspawn:
    yaw: 9.258631
    pitch: 14.727858
    z: 167.3971270971582
    y: 122.0
    world: starwars
    x: 227.86064620831038
     
  24. Offline

    Carbon131

    @gmore70

    Are you using permissions, and if so, what version?

    And could you try and see if you used a different item for your wand if it would work and tell me if it works?
     
  25. Offline

    gmore70

    Im using permissions 3.1.6 (http://forums.bukkit.org/threads/admn-dev-permissions-3-1-6-the-plugin-of-tomorrow-935.18430/)

    I changed my wand to 294 golden hoe, no luck, no better. Here is my config.yml:

    classes:
    Sith:
    items: 283,46:2,298,299,300,301,322:10
    Trooper:
    items: 272,310,311,312,313,320:4
    Jedi:
    items: 276,306,307,308,309,320:2
    Sniper:
    items: 261,262:128,306,307,308,309,320:2
    rewards:
    amount: 0
    entry-fee: 0
    items: none
    team-killing:
    enabled: false
    protection:
    enabled: true
    player:
    disable-block-placement: true
    disable-block-damage: true
    ignition:
    block-tnt: true
    block-lighter: true
    fire:
    disable-lava-fire-spread: true
    disable-all-fire-spread: true
    wand: 294
    coords:
    redlounge:
    yaw: -268.35062
    pitch: -1.3854648
    z: 76.53125
    y: 69.0
    world: starwars
    x: 229.375
    bluelounge:
    yaw: -89.39498
    pitch: 14.267459
    z: 57.34375
    y: 69.0
    world: starwars
    x: 220.5625
    spectator:
    yaw: -3.9944868
    pitch: 11.735386
    z: 114.1875
    y: 64.0
    world: starwars
    x: 211.9375
    exit:
    yaw: 182.2292
    pitch: 11.85048
    z: 114.1875
    y: 64.0
    world: starwars
    x: 201.9375
    bluespawn:
    yaw: 68.762695
    pitch: 9.54858
    z: 158.90625
    y: 72.0
    world: starwars
    x: 231.5
    redspawn:
    yaw: 9.258631
    pitch: 14.727858
    z: 167.3971270971582
    y: 122.0
    world: starwars
    x: 227.86064620831038

    Im treating my 294 wand just like I would a worldedit axe, left click 294 for point 1, right click for point 2. Just to be clear, so that I am not making any user errors.
     
  26. Offline

    dvdbrander

    And, what if you just continue even without the message that it's selected? Somtimes WE doesn't says he has marked a point, but then he has. Wow, bad english, sorry, dutch.
     
  27. Offline

    gmore70

    nothing...I get an message saying I must select a region first

    Solved! Its a permission thing. I put my permissions for my pvp map for myself to "*" and it worked. But when I put it back to just fight.admin, I can do everything BUT select corners.

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

    Carbon131

    @gmore70

    Interesting, I'm glad you solved it, but I will see if its a coding error on my part or Permissions 3.x thing.
     
  29. Offline

    TCLG6x6

    cant attack :(
     
    pucky likes this.
  30. Offline

    gmore70

    The new permissions is kind of strange....I would not be surprised if its an error on their part
     
Thread Status:
Not open for further replies.

Share This Page