CTF
Overview
Would you ever play Capture the Flag?
Then is CtF the right plugin for you.
With CTF you can play epic CtF matches.
Installation
- Put the CTF.jar into your plugins folder
- Reload the server
- Put the mcctf.jar file into the classes folder (plugins/CTF/classes)
- Build or download worlds and copy into your server folder and rename them to CTF-MAP_<map_name>
- Reload the server
Usage:
Permissions:
- CTF.* -> allows player to access all commands & classes (default op)
- CTF.admin -> allows player to acces sall commands & classes (default op)
- CTF.<classname> -> allows player to access the <classname> class
Commands:
/CTF
- start <== Starts the first arena
- stop <== Stops the match and tp's all players in the default world
- next <== Loads next arena
- leave <== Leaves the Match
- set Spawn <==Sets the Spawn Location
- set SpawnA <==Sets the Spawn Location from Team A
- set SpawnB <==Sets the Spawn Location from Team B
- set FlagA <==Sets the Flag Location from Team A (Stand on a fence!)
- set FlagB <==Sets the Flag Location from Team B (Stand on a fence!)
- save <== Saves the map(If you changed something)
Class Command (join a class/the game)
- /class <- Opens the class-selection GUI
- /class [classname] <- changes your class
Vote Command (Vote for the next Map)
- /vote <- Opens the vote GUI
Chat
There are multiply chat-modes avaible:
- HUD
- it shows a GUI in the chat
- While ingame only your teammate can hear you, except if you shout (put a !" infront of your sentence)
- CHAT
- Everyone can listen you (also not ingame player)
- SCOREBOARD
- Like GUI, but with a scoreboard
- CHATBOARD
- Like CHAT, but also with a scoreboard
Maps:
Check out the Maps-Forum!
ToDo:
- "Capture" function Block (Break their flag, Break your flag to capture their)
- more languages
- Configuration
- more Classes
- YAML-Classes (almost done!)
Building
Build a Map, where no Player can escape. (Don't forgot Ninjas' Enderpearls & soldiers' climb skills) Rename it into CTF-MAP_<your_Mapname>. eg. CTF-MAP_Flying-City and copy it into your server folder (Not plugin folder!) Start you server and do /CTF start. You 'll teleport into this Map. If you have more than one Map, do /CTF next until you are in your new Map. After that:
- Set the Spawns from both teams. It's best, if you set the Spawn from Team A on Netherrack and from Team B on Lapis-Blocks. (/CTF set SpawnA or /CTF set SpawnB)
- Stand on a fence and set the Flag Location. (/CTF set FlagA or /CTF set FlagB)
- Set the Spawn Location, for the first seconds (/CTF set Spawn) Now you can play your Map.
If you onna change things on your map, use the /CTF save command
Note: If TeamA goes on Lapis, they will die. TeamA will get here their health back. And if TeamB goes on Netherrack, they will die. TeamB will get here their health back.
If you built a great map, share it to other...simply send me a PM with a title, description and download link.
Configuration
CTF.properties
- broadcastertime ==> The time until the broadcaster message changes (in ticks [20 ticks = 1 sec])
- player2start ==> how many players are neccessary that the game starts
- minPlayer ==> if the player amount is less, the game stops
- TeamNameB ==> You can ignore this
- TeamNameA ==> You can ignore this
- ChatMode ==> the chatmode. avaible values: HUD , CHAT, SCOREBOARD , CHATBOARD
- auto ==> dedicated server = true, also other games and survival = false
- language ==> Which language file should be loaded (en ==> en.yml) - Until now only English is avaible - 'll add more!
Troubleshooting
If you have problems with this plugin, check first:
- Do you have downloaded the classes in the right folder(plugins/CTF/classes/)?
- Is your default server world NOT a CTF-MAP_?
- Do you have checked your server log? Maybe are there more informations.
If this didn't helped you:
- Post a comment or a ticket with
- With a description of your problem
- Parts of the server log
Source
You can find the source of this project on github. (I am amazed it even works...)
@Mistererwin
If it was in the zip, I didn't see it. No worries, I just made a folder called "classes" and it works fine.
Some persisting bugs:
1. When the map is loaded and the timer is counting down, a chunk error appears at one corner of the arena. Is this the CTF plugin? It only occurrs when the timer is counting down to the start of the game.
2. When I'm playing by myself, I have no issues when I spawn/respawn once the game starts. However, (and I'm not sure if this is your plugin or not) the map doesn't render when I spawn when playing against my brother, so I slowly fall into the void. This could also be caused by the fact that I'm running the server on the same computer I'm playing on, but this type of thig hasn't happened before when I ran my test server. Hmm.....
3. I count this as a bug: where is the engineer class?!? :P I know it's not really a bug, but the engineer is my favorite!
Also, thank you so much for toning down the ninja's power. On mcctf they are way too overpowered.
@LeeTheENTP
In the zip-archive ctf.zip?
It is a folder for me...
@Mistererwin
Lol "classes" was a file with no extension, but it needs to be a folder.
http://dev.bukkit.org/server-mods/ctf/tickets/3-my-list-of-bugs-found/
there have fully set up an arena and i might make a video of how to set it up. and for now if anyones having errors make sure you have the 1.4.5R0.2 beta build. and want to see my CTF server go to: FINALCRAFT.HOPTO.ORG
@LeeTheENTP
I'm stupid :(
Extract the jar and copy it or use this file *CLICK*
@finalblade1234
Lol I couldn't be more wrong about where to extract the CTF-classes.jar How would I be able to extract it into a file with no extenstion?
@finalblade1234
Ah, so it's not a separate plugin that operates alongside CTF? I'll try extracting the jar into that directory you mentioned.
@LeeTheENTP
once i understand it more ill mkae a vid of how to use and extract it in to plugins\CTF\classes
@Mistererwin
OK, I turned Essential's respawn event priority to lowest (but I'll probably keep it highest on my actual server, and take it down a notch until the CTF respawning isn't affected). Also, the CTF-classes.jar isn't working, so none of the classes work. Here's the error:
2012-12-15 15:21:24 [SEVERE] Could not load 'plugins\CTF-classes.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:197)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:227)
at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:577)
at org.bukkit.Bukkit.reload(Bukkit.java:183)
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:502)
at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:494)
at net.minecraft.server.DedicatedServer.al(DedicatedServer.java:258)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:223)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
Caused by: java.io.FileNotFoundException Jar does not contain plugin.yml
... 14 more
Also, undefined classes are no longer selectable, but when one is attempted to be selected (i.e. /class norris), it doesn't work, but I get an "An internal error occurred while trying to perform this command" error. Is this due to there not being an
} else {
player.sendMessage("This class doesn't exist!");
//I don't remember the exact message-sending command off the top of my head, but you get the idea.
}
at the end of the class-choosing section of the code? Or it this comething more complicated?
how do you get classes? i place ctf-classes.jar in folder plugins\ctf\classes but it still faile!
[edit]
oh nvm figered it out but how do i load maps?
very nice plugin!
<<reply 1121902>>
1. Is there a way I can change that in the Essentials config? I'll look into it because Essentials usually gives up its priorities to other plugins, such as /ejail for Ess and /jail for the Jail plugin.
2. Lol but please have this changed by the time the plugin is released.
3. OK, it's just an annoyance that I can live with.
4. Lol didn't relaize that it would do that :P
6. I can live with that. I might either make a separate server for this or replace War with it on my main server.
7. Kool. When do you think Engineer will be added?
Also, the HUD does not show you what team you're on, which can cause confusion, and I didn't really pay attention to this, but do player's name labels change color according to their teams?
@nikgro
Can you post the whole Stacktrace, please? And have you downloaded the classes?
Zeile 119428: 2012-12-15 16:03:54 [SEVERE] Could not load 'plugins/CTF-classes.jar' in folder 'plugins'
@LeeTheENTP
But thanks.
@SacredWaste Just the Auto-join to true....and wait for the next beta-build;)
Can you make this automated?
@DeZIlla
Don't patronize me for giving a bug report to the plugin author. I told him I was going ot run it on my test server, and that means I would be testing it for bugs.
Of course it's gonna be buggy; it's an early aplha build. Bug reports are actually helpful to plugin authors because even if many of the bugs listed are already known, there will almost always be a bug on the list that the author didn't anticipate or know about.
tbh we all agree that the first build content lot of issues, but i'd like to thank the creator because he actually let us try it before it is done, even if there is bugs, i've been having lot of fun with friends today with that plugin. Since there is lot of issues, i believe it is moslty useless to report them as the creator possibly already know about most of them.
Something i also thinked it was an issue, you must place flag on fence to score, and when using /ctf set flagX you have to be exactly at fence position (not over it). Not a big deal if the flag is not exactly over the fence.
@Mistererwin
First test....
Things went well, except:
1. Whenever you die or change classes, you respawn at the spawn of the normal world (this could be Essentials doing this, but I'll check) CHECKED: Wasn't Essentials, but I can set the spawn in the map, but then anyone who changes their class spawns in the middle of the map!
2. When you join, it does not put you in survival mode.
3. The flags are supposed to be on the fence, but it appears and acts as if it was on the ground in front of the flag, about 3 blocks away.
4. You cannot leave a match.
5. Paintings are breakable.
6. Auto-join in the config does not work.
7. You can type /class using any name, and if that name does not match up with a class, you get nothing and are in a class that doesn't exist. (An easy .equalsIgnoreCase("<classname>"); for each class in a big if-else if statement should fix that, as well as an else that just tells the player the class doesn't exist)
The classes mostly worked smoothly, and the tools did not take durability damage (which is a nice touch).
But because of the spawning issue, the nonexistent class issue, and the leaving issue, I cannot use the plugin on my server as of now.
Great for an Alpha build, though.