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
A video tutorial would be great :D
@Harrynpotter
Hmm, I will have to think about this.
In the mean time, have you considered using join signs?
@Johnnymills
How should it work, can you explain a bit more?
adding a deathmatch would be cool
Hi Stryker,
Firstly would like to say this plugin is great. One issue though on my end, since I am not using permissions and instead having it so only ops can use the commands is there and option so that ops and get other players to join? e.g
/sa join <player>
@ericpret
I have released a new version for you, not approved by bukkit yet but, you can download it here
You can now select a region via WorldEdit and have all of the chests in the selection automatically assigned to an item_set
If you have already assigned an item_set to a chest in the selection, it will be skipped.
Also, you can already set items in an item_set to randomly spawn as per the instructions above.
If you have any other questions, or suggestions, please let me know.
Would it be possible for you to include in the next release or so, a command to select all chests in an area and set a config file to cycle through a list of items and place them randomly inside the chests based on randomized percentage?
For example: Config file includes: iron_sword (5%), stone_word (10%), various food items (40%). 10 selected chests in HungerGames arena. Divide set items on the chests with selected percentage.
Not sure if this is actually a feature, but your thread here seems to say it's one hell of a process...
@Stryker76
thank you! :)
@Puseidr
Yes, edit your SurvivalArenaConfig.yml and change :-
command: sa
to
command: hg
can you add the alias /hg to this plugin or can we add this?( how? )
@JamesDuncann
It's the same name that you used when you did /sa create <arena name>
You can find it by typing /sa list, it will show in red
How do I find out what my Arena name is because I can't create chest without knowing.
Sorry if it's n00by.
@megasnipez_
I've released a new version that you can find here
However, your config.yml will not work with it, PM me your email address and I will send you a fixed up version of yours.
@Stryker76
Sorry for the late reply
here is my config.yml Config And here is the survivalarena config im not sure which one you wanted. Arenaconfig
@megasnipez_
Can you please pastebin you config.yml for me?
@megasnipez_
To set the event start time, edit your SurvivalArenaConfig.yml and add :-
matchForceStartTime: #
Where number equals the number of seconds you want
To change the length of the match, edit your SurvivalConfig.yml and change
matchTime: 300
and change 300 to be however many seconds you want your match to be
@Stryker76
and i also got this error on arena start, 09:10:20 [INFO] [SurvivalArena] megasnipez_[1250] vs testguy[1250]! 09:10:26 [INFO] In onStart: gracePeriod: 0 09:10:26 [INFO] In onStart: PATH sg.CHESTS 09:10:26 [INFO] In onStart: CUR sg.CHESTS 09:10:26 [INFO] In onStart: NAME CHESTS 09:10:26 [SEVERE] java.lang.NullPointerException 09:10:26 [SEVERE] at net.clutchcraft.survivalarena.SurvivalArena.onStart(SurvivalArena.java:65) 09:10:26 [SEVERE] at mc.alk.arena.objects.arenas.Arena.privateOnStart(Arena.java:128) 09:10:26 [SEVERE] at mc.alk.arena.objects.arenas.ArenaControllerInterface.onStart(ArenaControllerInterface.java:23) 09:10:26 [SEVERE] at mc.alk.arena.competition.match.Match.startMatch(Match.java:386) 09:10:26 [SEVERE] at mc.alk.arena.competition.match.Match.access$100(Match.java:104) 09:10:26 [SEVERE] at mc.alk.arena.competition.match.Match$2.run(Match.java:338) 09:10:26 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:53) 09:10:26 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 09:10:26 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:513) 09:10:26 [SEVERE] at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) 09:10:26 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) 09:10:26 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) 09:10:26 [SEVERE] at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
@Stryker76
okay a few more questions how do set the event start time i think 2 minutes and 59 seconds is a bit long i would like it at 60 seconds also how do i make the event time longer it only goes for 4 minutes and 30 seconds which i think is a short time for a hungergames match
@megasnipez_
You should have no problem at all running this plugin with factions installed.
If you don't want to manually open the event you can edit the config.yml in your BattleArena folder and set allowPlayerCreation to true
This will auto start the SurvivalArena match when a player does /sa join
And yes, when players join, on Spawn, they will not be able to move until the match starts.
Also, there is an updated version that you can get here
This will allow you to set items in item_sets to randomly spawn.
If you have any other questions, please let me know.
i have created the spawns and the arena and all but it says this when i try and join There is no even currently open. and i have to manually open the arena which i dont want to do. Also sometimes when i jump it will not let me jump kind of the same when you cant move before the game starts, (which i know is ment to happen)