SurvivalArena
Description
SurvivalArena is a Hunger Games plugin built on the BattleArena API, therefore, BattleArena is required to be installed in order to use this plugin.
This is by far, the easiest, Hunger/Survival Games plugin to setup, with no config file editing at all. Everything can be done in game.
Features
- Freeze players on Join until game starts
- Configurable Grace Period (No PVP) on game start
- Configurable sudden death mode on last number of players, and or, last minutes of game
- Lightning effect on players remaining in sudden death
- Add chests to be populated in game with item_sets (No config file editing)
- Create item_sets in game (No config file editing)
- Each item in an item_set can have a % chance of spawning
- Create Arenas in your existing world, or run fully automated on a separate server
- Multi World and Multi Arenas support with per Arena settings
- Rollback chests at end of game
- Automatically add chests based on a WorldEdit selection
Requirements
Installing
- Download and put the SurvivalArena.jar into your plugins folder along with BattleArena.jar and WorldGuard.jar
- Restart your server
Creating a Survival Arena
Create the Arena
- Stand on the first Spawn Point you want and type /sa create <arena name>
- Stand on each of your remaining Spawn Points and type /sa alter <arena name> # (Starting with 2)
- Select a WorldGaurd region for your arena and type /sa alter <arena name> addregion
Create an Item Set
- Place items into a chest that you want to be in the item set
- Type /sa additemset <arena name> <item_set name>
- Left click the chest to create and save the item set (You can create as many item sets as you wish)
- Note that items default to a 100% chance of spawning
Set items to spawn randomly
- First type /sa showitemset <arena name> <item_set name> this will show you a list of items prefixed with an index number
- Type /sa setchance <arena name> <item_set name> <index number> <chance> where <chance> is a percentage, such as 10, 50, 77, etc
Adding Chests to the Arena
Manually
- Place chests where ever you want in your Arena
- Type /sa addchests <arena name> <item_set name>
- Left click each chest that you want to be populated with <item_set name>
- To change to another item_set, type /sa addchests <arena name> <item_set name>
- When you are done adding chests, type /sa addchests <arena name> done
Automatically
- Create a WorldEdit region covering the area of chests you want to auto assign an item_set to
- Type /sa autochests <arena name> <item_set> <clear>
Where <clear> is either 0, or 1, depending on if you want to clear the contents of the chests being added to the <item_set>. This is useful if you already have an existing Survival/Hunger Games plugin that does not clear the contents of the chests at the end of the game.
Joining an Arena
- /sa join
Configuration Options
Grace Period: With this option you can set the number of seconds at the beginning of the match where there is no PVP, allowing players to grab items from the chests at Spawn.
- /sa set <arena name> graceperiod <seconds>
Sudden Death Players: With this option you can set the number of players remaining in the match to start the lightning effect which will pin point each players location.
- /sa set <arena name> suddendeathplayers <#>
Permissions
Players will need the following permission nodes
- arena.sa.join
- arena.leave
Help
- Post a comment below with your question
- I can usually be found on IRC in #battleplugins. IRC through a browser
WOW, somebody made the HUNGER GAMES with BattleArena. I'm so using it!
Maybe you can add joinsigns and deathmatch, I would higjly appreciate that.
Sincerely,
FlipGaming
Only 1 item is showing up in every chest and its always the first item on the list in config, i think im having the same problem as megasnipez_
@Salugi3
To set it to a JoinQueue instead of a JoinPhase (Event), edit your SurivalArenaConfig where it says "joinType: JoinPhase" to "joinType: Queue". This will force people into a queue for a default of, I believe, 90 seconds. This can also be changed in the config through "matchForceStartTime: 90" and 90 being however many seconds you want it to be. I have mine set to JoinType: Queue with matchForceStartTime: 90 and I have no issues at all!
Hey, I set up everything as instructed above but when i try to join it says there is no event set up, is there a way of making it so it is not events. Also when i set an items chance to 100% it still doesn't always spawn
how does the chest randomizer work i dont get the <clear>
Also how do i add more than 1 item in a single chest?
Also when i try and add iron_chestplate and leggings in the chests it never works
And when i do /sa addchests myarena item name it comes up with add item set for iron_sword first but i added the item set allready.
@Stryker76
Man, I thought I downloaded the file you sent before I went to bed, but I apparantly didn't and I lost the link... Could you perhaps send it one last time? :D
@ericpret
Were you able to test that dev version I gave you?
@Johnnymills
Yeah. The plugin would then choose what goes where, based on randomeness. That might give a few OP chests, but it all comes down to what you've put in the item_set. I like the feature of several item_set's, don't get me wrong, but it'd help me alot more if I could make one item_set cover multiple chest and then it would be one item_set instead of a duplicate of the item_set for each chest. One item_set to control all the chests, if you know what I mean.
@ericpret oh okay, so are you saying the items are spread out more evenly? And if Stryker would implement something like that that would be very cool, although I like the feature right now where I can make a tier 2 chest if I wanted to.
@Johnnymills
That doesn't actually help me. You're clearly misreading my point. I've been talking alot with Stryker on IRC and I believe we understand each other :3 Either way, dev version with more or less what I'm looking for is coming out :D It's difficult to explain over the internet, but the way I've understood this plugins use of the item_sets (and correct me if I'm wrong), goes like this: You create an item_set and that is assigned to all your chests. Now, based on your randomization, that item_set may spawn 5 of the same items in a total of 10 chests because the item_set is selected individually for each chest. So each chest has it's own item_set, but with the same items as every other chest. That way, if I make each item_set have one iron_sword and the randomization is 5%, I could see some unlucky games with 5 iron_sword being used in the game. What is ideal for me is to have one item_set that is assigned as a "hub" for all chests. That way, the server uses some kind of way to distribute the items from said hub and into the chests. Kindof like you have a massive pool of items, and the pool has tons of branches leading to each and every chest. By chance, some items go here and some items go there. The way it works right now is that every chest has it's own pool which it chooses from, based on the chance each item has of spawning. Get my drift?
@ericpret
Automatically
Create a WorldEdit region covering the area of chests you want to auto assign an item_set to Type /sa autochests <arena name> <item_set> <clear> Where <clear> is either 0, or 1, depending on if you want to clear the contents of the chests being added to the <item_set>. This is useful if you already have an existing Survival/Hunger Games plugin that does not clear the contents of the chests at the end of the game.
read...
@Stryker76
Basically, I want it so that there are no item sets, so to speak. You make a list of items to include in the arena, then set each items chance of spawning. Instead of having the plugin assign that "item_set" to each chest individually, it would then assign one "item_set" to ALL chests. So one item_set actually covers multiple chests. Say for example like this:
So now, the items in the list will be spread evenly amongs the 5 selected chests with the selected chance of spawning. Maybe 2 apples spawn in one chest, 3 apples in another, an iron sword in another, or maybe you're so lucky that you find a chest with an iron sword, stone sword and 5 apples. It's all randomized, but the items still stay true to the chance you've set. Maybe the items don't spawn at all, and maybe you hit the God-Almighty jackpot of chests?
Understand better?
@ericpret
Yeah, if you can explain a bit more.
Currently you can assign an item_set to a chest, and the items in that item_set have a random % chance of spawning.
I don't see how that's different than what you are wanting?
Alright, so I love the new feature for selecting all chests through WorldEdit. That's incredibly nifty. Now, what I'm wondering is if it would be possible for you to look into selecting all chests, and then making the loot that appears in the chests absolutely randomized. So you make a list of items to spawn in the chests, and set each items randomizable level (preferrably in a config file) and make those items randomly spawn in the chests. So perhaps there will be a sword here, food there etc. The plugin will select from that list and randomly place items in the chests selected through the WorldEdit region. The only thing you have control over is the list of items and how often they spawn, and the plugin does the rest. If you get my drift... I can try to explain more in detail, if need be, but would this be possible? Edit: I believe this is what johnnymills is looking for aswell.
@Johnnymills
Hmm, the config appears to be ok.
Can you PM me your server address and I'll come have a look.
alright i figured out my problem with the "there is no current event open" in the battlearena config. now my problem is that when my friend and I joined the game, there were no chest with stuff in them. Here is my config and other files : http://pastebin.com/S6ADfXh3
@Johnnymills
First question of yours:
I've gotten around this part by adding "joinType: Queue" instead of the joinPhase that's already in place. This makes it so players join a queue instead of having to wait for you to open the event. Players can now join without needing any permission from an OP to create the event and start the game. You might also want to add "matchForceStartTime: 90" to your SurvivalGamesConfig. You can change the number of seconds to anything you want. This is just the number of seconds the plugin waits for an amount of players. Good luck! If you need any more help with this specifically, let me know.
@Johnnymills
@Stryker76