ArenaCTF
A Capture the Flag plugin where you pick up the wool color representing the other team, shown by visual around the wool. Once you pick it up teams are alerted and you need to bring the flag back to your base while your flag is still there. You can make more than one ctf arena and players will cycle through the different maps.
Installing
- Put the ArenaCTF.jar in your plugins folder, along with BattleArena.jar
Making a ctf arena
- /ctf create <ctf arena name>
- /ctf addFlag <ctf arena name> 1 <- add the flag for team 1
- /ctf alter <ctf arena name> 2 <- setup a second spawn
- /ctf addFlag <ctf arena name> 2 <- add the flag for team 2
- /ctf alter <ctf arena name> waitroom 1 <- add a waitroom (you can take a waitroom out by changing the config)
Joining
- /ctf join
Permission Node
- Players will need the permission node arena.join.capturetheflag
- arena.leave , so they can type /ctf leave
How do I win ?
To capture the flag you need to bring the enemy flag back to your flag at it's home. If your flag is being held by the enemy you will need to kill them and return it back ( just walk over it ).
Source
Images
Image of the red flag. All flags and and players holding a flag have the flaming visual effect around them.
Image of the score and a player surrounded by flames (showing they have the flag).
Requirements
This plugin is made to hook into BattleArena, so you also need to download it as well.
Help
- BattleArena : Wiki that has all the options available for both ArenaCTF and BattleArena
- Adding Signs : support for joining/leaving and status
- 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
SEVERE] Could not load 'plugins/ArenaCTF.jar' in folder 'plugins' org.bukkit.plugin.UnknownDependencyException: BattleArena at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:195) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugins(CraftServer.java:235) at org.bukkit.craftbukkit.v1_4_6.CraftServer.reload(CraftServer.java:585) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.alecgorge.minecraft.jsonapi.dynamic.Call.call(Call.java:153) at com.alecgorge.minecraft.jsonapi.dynamic.Caller$1.call(Caller.java:84) at org.bukkit.craftbukkit.v1_4_6.scheduler.CraftFuture.run(CraftFuture.java:89) at org.bukkit.craftbukkit.v1_4_6.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:530) at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) 2012-12-23 23:27:06 [INFO] [ExactSpawn] Loading ExactSpawn v0.1
Thanks for the info
@navbarry
It should be very good about cpu usage, I've done some profiling and it's been very fast. You can do your own test though :)
How much ram/cpu does this addon use? Because I'm planning on adding it to my server on Christmas and I want to make sure it doesn't lag my server.
@sonicwolfsspeed
I have it on my server and it works pretty well
@Kitten_Tails
By default I don't stop blockbreaks or block places, but you can configure it any way you want.
@sonicwolfsspeed
I don't have a server, but I'll find a server that is.
Can blocks in the arena be placed/broken? If so, is there a config for what kind?
do u have ur owne server that i can try it
@The_Epic_Yak
It it should. Though some people have been having trouble with BattleArena on 1.4.6, I'll be fixing everything tomorrow though if that is the case.
Does this work with 1.4.6?
@Thrystor
Yeah, try them and let me know. I'll cross fingers.
@alkarinv
I don't know, they must have changed something in the API too since R0.2 because it was throwing NoClassDefFound's and such for both plugins. I'll try the updated versions.
@Thrystor
The newer BattleArenas only depend on the Bukkit API, and ArenaCTF has always been strictly Bukkit. What version of BattleArena are you using?
Here is a direct link. http://dev.bukkit.org/server-mods/battlearena/files/95-battle-arena_v3-7-8-2/
http://dev.bukkit.org/media/files/658/129/ArenaCTF.jar
@alkarinv
I am using the new RB. Oh, and now both NMS and CraftBukkit imports are messed up, so anything that uses code outside of the actual API breaks.
@FuSe18
Honestly I'm very curious. If it does I know of some ways to speed things up, basically by changing the game to click on the flag as opposed to run over it.
@FuSe18
What does profiling say? I've done some and the usage has been very minimal. I've heard decent things about NoLagg and it's profiling.
I dont know what else to show u for any errors / bugs but the ctf seems to be lagging the server i think its due to all the [info] spamming the server.
@Thrystor
I don't use any net.minecraft server imports (well not in the most recent BattleArena). But thanks for letting me know. Are you running the most recent BattleArena? it shouldn't use any net minecraft code, or craftbukkit code.
An error (Just gave you the useful stuff):
java.lang.NoClassDefFoundError: at mc.alk.ctf.CTF.onEnable(CTF.java:28)
I believe this is simply because of the new Bukkit dev build I'm using, which breaks any plugins that use net.minecraft.server imports. I got the same error in BattleArena itself.
@FuSe18
That is just a very annoying debug message I left in. Very ugly.
You should take out the giveClass: onRespawn. That is setting them to the gladiator regardless of what they chose. After that in onRespawn: put the option "respawnWithClass"