ArenaSpleef
A Spleef plugin where players can queue and will join a free Spleef arena. You can make more than one Spleef arena and players will cycle through them. If all arenas are in use, the players are kept in the queue and will join when one opens up.
You can modify all aspects of the spleef by editing the SpleefConfig.yml. Including what items they get for the spleef, whether they get prizes, etc.
Features
- Regen layers at specified intervals
- Multiple layers can be created for any arena
- Multiple arenas can be used at one time
- Small team matches or server wide spleef events
Installing
- Put the ArenaSpleef.jar in your plugins folder, along with BattleArena.jar, WorldEdit.jar, and WorldGuard.jar
Making a Spleef arena
You will have to create an area for the spleef. Make one or more layers you want the players to fight on. Make sure that below the last layer that the players either land in water or lava/some other deadly trap.
- /spleef create <Spleef arena name> : Example /spleef create myFirstArena
- /spleef alter <Spleef arena name> 2 <- setup a second spawn, you can keep adding them if you want more than 2, like /spleef alter <Spleef arena name> 3. Example : /spleef alter myFirstArena 2
- Now select the layer you want the players to fight on with the WorldGuard edit tool (usually a wood_axe)
- /spleef setLayer <spleef arena name> . Example /spleef setLayer myArena
- you should probably protect the entire area with worldguard so they can't break out of the spleef arena.
Adding Multiple Layers
- /spleef setLayer <spleef arena name> <layer num> .
- Example /spleef setLayer myArena 2
Adding Regeneration to Layers
- /spleef setRegen <spleef arena name> <regen time>.
- /spleef setRegen <spleef arena name> <layer num> <regen time> .
- Example /spleef setRegen myArena 45 <- regen layer 1 every 45 seconds
Joining
- players will need the permission node arena.join.spleef
- /spleef join
- Permissions to leave arena.leave
Youtube Tutorials
YouTube Tutorials. If you find others please let me know
Help
- BattleArena wiki: Works for this plugin as well. Wiki
- Adding Signs : support for joining/leaving and status
- IRC: You can ask me questions in real time on irc when I'm on. You can usually find me in the rooms battleplugins, or bukkit in irc.esper.net. IRC through a browser
Requirements
This plugin is made to hook into BattleArena, so you also need to download it as well, along with WorldEdit and WorldGuard.
@alkarinv
http://pastebin.com/dNUddJNE
here is spleepconfig
@jwa1
You're actually doing it how I expected it would be used (just check out the first line of making a spleef arena). Someone suggested that I make an option where if they click water or lava they die which I think I'll put in there. Problem with killing them if they fall down is 1) I have to listen to onPlayerMove (which I hate doing unless necessary) 2) many people have multiple layers 3) some people are using multiple layers on the same floor (like having different sections) so I can't really tell when they should die.
If you really need it, I suppose I could work it in, but I like the concept of a fight to the death over some deadly drop :)
Awesome plugin, i use it on my server and the players love it :D
just one question, Currently i use a pit of lava below the arena to finish the game, since it wouldn't end when a player falls down. How do i set it up so if a player falls down the arena, he loses? The death this works, but it isn't optimal.
@Dawidkamil1
I'll see if I can hook it up to the BattleArena tutorials for the options that are generic to that plugin.
Otherwise yeah it's a good idea!
What are you having trouble with right now?
Would be good If you made a Tutorial.
@kustomcraft
Could you tell me what versions of BattleArena and ArenaSpleef you are running? That really looks like a version incompatibility. If they are 1.0.6.2 and 3.6.9.4 then maybe do a hard restart instead of a reload.
@Saeberin
I actually meant the SpleefConfig.yml, sorry about that.
@alkarinv
http://pastebin.com/1GSdfvPi
Here is the config.
Thanks for your help
I have latest versions of Arenaspleef and Battlearena, and also bukkit still happening :/
@Saeberin
Well you would have to pastebin me your spleef config as well for me to be exactly sure. But it looks like you set the spleef config so that it wants all spleef matches to have 4 teams. I can't really reproduce it(so maybe a bug?), but that's what it sounds like.
Try this though.
After creating a Spleef Arena and configuring it with 2 player it works fine. When I try creating a 4 person Spleef I get this red notification Arena Accepts nTeams=4, you requested 2+
Looked at the configs and dont see anything referencing 2+ the arena looks like this in the config.
arenas: spleef1: persistable: worldName: world layerNames: - ba-spleef-spleef1-0 teamSize: '1' locations: '3': world,-300.2047416028195,75.0,-397.4139516999857,90.75842,26.399845 '2': world,-335.50048864907666,75.0,-400.47573509044446,273.7575,18.599833 '1': world,-318.44519259769385,75.0,-421.58833937992745,7.958496,18.899845 '0': world,-313.457201717796,75.0,-375.0903037006671,184.65863,12.749841 nTeams: '4' type: Spleef
any help would be appreciated.
@kustomcraft
Hey kustom, so you need to update BattleArena or ArenaSpleef, maybe just do both to make it easy. It's missing a function that the updated version has.
Getting this when doing /spleef join
15.10 23:02:13 [Server] SEVERE at mc.arena.spleef.SpleefArena.getInvalidReasons(SpleefArena.java:171) 15.10 23:02:13 [Server] SEVERE Caused by: java.lang.NoSuchMethodError: mc.alk.arena.objects.arenas.Arena.getInvalidReasons()Ljava/util/Collection; 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.ServerConnection.b(SourceFile:35) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.NetworkManager.b(NetworkManager.java:282) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:808) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:826) 15.10 23:02:13 [Server] SEVERE at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:880) 15.10 23:02:13 [Server] SEVERE at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:498) 15.10 23:02:13 [Server] SEVERE at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) 15.10 23:02:13 [Server] SEVERE at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 15.10 23:02:13 [Server] SEVERE at mc.alk.arena.executors.CustomCommandExecutor.onCommand(CustomCommandExecutor.java:168) 15.10 23:02:13 [Server] SEVERE at java.lang.reflect.Method.invoke(Method.java:601) 15.10 23:02:13 [Server] SEVERE at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15.10 23:02:13 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 15.10 23:02:13 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15.10 23:02:13 [Server] SEVERE java.lang.reflect.InvocationTargetException 15.10 23:02:05 [Server] SEVERE ... 21 more 15.10 23:02:05 [Server] SEVERE at mc.alk.arena.executors.BAExecutor.join(BAExecutor.java:123) 15.10 23:02:05 [Server] SEVERE at mc.alk.arena.executors.BAExecutor.join(BAExecutor.java:174) 15.10 23:02:05 [Server] SEVERE at mc.alk.arena.controllers.BattleArenaController.getNotMachingArenaReasons(BattleArenaController.java:198) 15.10 23:02:05 [Server] SEVERE at mc.arena.spleef.SpleefArena.getInvalidReasons(SpleefArena.java:171) 15.10 23:02:05 [Server] SEVERE Caused by: java.lang.NoSuchMethodError: mc.alk.arena.objects.arenas.Arena.getInvalidReasons()Ljava/util/Collection; 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.ServerConnection.b(SourceFile:35) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.NetworkManager.b(NetworkManager.java:282) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:808) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:826) 15.10 23:02:05 [Server] SEVERE at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:880) 15.10 23:02:05 [Server] SEVERE at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:498) 15.10 23:02:05 [Server] SEVERE at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) 15.10 23:02:05 [Server] SEVERE at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 15.10 23:02:05 [Server] SEVERE at mc.alk.arena.executors.CustomCommandExecutor.onCommand(CustomCommandExecutor.java:168) 15.10 23:02:05 [Server] SEVERE at java.lang.reflect.Method.invoke(Method.java:601) 15.10 23:02:05 [Server] SEVERE at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15.10 23:02:05 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 15.10 23:02:05 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15.10 23:02:05 [Server] SEVERE java.lang.reflect.InvocationTargetException 15.10 23:01:47 [Server] SEVERE ... 21 more 15.10 23:01:47 [Server] SEVERE at mc.alk.arena.executors.BAExecutor.join(BAExecutor.java:123) 15.10 23:01:47 [Server] SEVERE at mc.alk.arena.executors.BAExecutor.join(BAExecutor.java:174) 15.10 23:01:47 [Server] SEVERE at mc.alk.arena.controllers.BattleArenaController.getNotMachingArenaReasons(BattleArenaController.java:198) 15.10 23:01:47 [Server] SEVERE at mc.arena.spleef.SpleefArena.getInvalidReasons(SpleefArena.java:171) 15.10 23:01:47 [Server] SEVERE Caused by: java.lang.NoSuchMethodError: mc.alk.arena.objects.arenas.Arena.getInvalidReasons()Ljava/util/Collection; 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.ServerConnection.b(SourceFile:35) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.NetworkManager.b(NetworkManager.java:282) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:808) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:826) 15.10 23:01:47 [Server] SEVERE at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:880) 15.10 23:01:47 [Server] SEVERE at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:498) 15.10 23:01:47 [Server] SEVERE at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) 15.10 23:01:47 [Server] SEVERE at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 15.10 23:01:47 [Server] SEVERE at mc.alk.arena.executors.CustomCommandExecutor.onCommand(CustomCommandExecutor.java:168) 15.10 23:01:47 [Server] SEVERE at java.lang.reflect.Method.invoke(Method.java:601) 15.10 23:01:47 [Server] SEVERE at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15.10 23:01:47 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 15.10 23:01:47 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15.10 23:01:47 [Server] SEVERE java.lang.reflect.InvocationTargetException 15.10 23:01:45 [Server] SEVERE ... 21 more 15.10 23:01:45 [Server] SEVERE at mc.alk.arena.executors.BAExecutor.join(BAExecutor.java:123) 15.10 23:01:45 [Server] SEVERE at mc.alk.arena.executors.BAExecutor.join(BAExecutor.java:174) 15.10 23:01:45 [Server] SEVERE at mc.alk.arena.controllers.BattleArenaController.getNotMachingArenaReasons(BattleArenaController.java:198) 15.10 23:01:45 [Server] SEVERE at mc.arena.spleef.SpleefArena.getInvalidReasons(SpleefArena.java:171) 15.10 23:01:45 [Server] SEVERE Caused by: java.lang.NoSuchMethodError: mc.alk.arena.objects.arenas.Arena.getInvalidReasons()Ljava/util/Collection; 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.ServerConnection.b(SourceFile:35) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.NetworkManager.b(NetworkManager.java:282) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:808) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:826) 15.10 23:01:45 [Server] SEVERE at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:880) 15.10 23:01:45 [Server] SEVERE at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:498) 15.10 23:01:45 [Server] SEVERE at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) 15.10 23:01:45 [Server] SEVERE at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 15.10 23:01:45 [Server] SEVERE at mc.alk.arena.executors.CustomCommandExecutor.onCommand(CustomCommandExecutor.java:168) 15.10 23:01:45 [Server] SEVERE at java.lang.reflect.Method.invoke(Method.java:601) 15.10 23:01:45 [Server] SEVERE at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15.10 23:01:45 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 15.10 23:01:45 [Server] SEVERE at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15.10 23:01:45 [Server] SEVERE java.lang.reflect.InvocationTargetException 15.10 23:01:42 [Server] SEVERE ... 21 more 15.10 23:01:42 [Server] SEVERE at mc.alk.arena.executors.BAExecutor.join(BAExecutor.java:123) 15.10 23:01:42 [Server] SEVERE at mc.alk.arena.executors.BAExecutor.join(BAExecutor.java:174) 15.10 23:01:42 [Server] SEVERE at mc.alk.arena.controllers.BattleArenaController.getNotMachingArenaReasons(BattleArenaController.java:198) 15.10 23:01:42 [Server] SEVERE at mc.arena.spleef.SpleefArena.getInvalidReasons(SpleefArena.java:171) 15.10 23:01:42 [Server] SEVERE Caused by: java.lang.NoSuchMethodError: mc.alk.arena.objects.arenas.Arena.getInvalidReasons()Ljava/util/Collection;
I can't see the comment except as a summary for some reason... but for the person who who wrote '12.10 13:13:59 [Server] SEVERE Could not load 'plugins/ArenaSpleef.jar' in folder 'plugins''
Do you have WorldGuard, and BattleArena?
If you do paste the rest of the error so I can see why it's not loading
@laptopdude90
Well that was odd! Glad it works now though!
@laptopdude90
Wooo! It suddenly works! Thanks! Its public now :D
@alkarinv
Its mc.stephendownward.ca, It's private at the moment to I'll haver to give you the permission.
@laptopdude90
that config looks totally right, in fact I copied it and it worked. Did you do a reload to refresh the config?
If not maybe theres some errors on console?
Otherwise give me your server ip so I can check it out!
@alkarinv
http://adf.ly/DbfsY
@laptopdude90
pastebin me your config. I'm sure its a small fix.
I'm trying to reward players one diamond. Why won't it work? :( I have the winner set with giveItems and I added the items thing, it won't work!