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...)




-
View User Profile
-
Send Message
Posted Mar 12, 2013@Mistererwin
yep, I only have one map so I will add another one. To create a map, do you have to generate a new world for each map or is there a better way to create the map?
-
View User Profile
-
Send Message
Posted Mar 11, 2013@baku1999
I'll add also the /<classname> way. ;)
@fbafaro
I think, you have only 1 CTF-Map. Try to put another into your folder .
-
View User Profile
-
Send Message
Posted Mar 11, 2013After doing /CTF start and /CTF next, I'm getting the following error:
2013-03-11 16:22:52 [INFO] fbafaro issued server command: /CTF next 2013-03-11 16:22:52 [FINEST] [WGCustomFlags] Saving flags for world CTF-MAP_VALLEY 2013-03-11 16:22:52 [INFO] [CTF] Found map CTF-MAP_VALLEY 2013-03-11 16:22:52 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'ctf' in plugin CTF v0.5 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServer.java:514) at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:980) at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:898) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:853) at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(Unknown Source) at java.util.ArrayList.get(Unknown Source) at net.askarian.MisterErwin.CTF.CTFGame.start(CTFGame.java:411) at net.askarian.MisterErwin.CTF.CommandManager.start(CommandManager.java:223) at net.askarian.MisterErwin.CTF.CommandManager.next(CommandManager.java:272) at net.askarian.MisterErwin.CTF.CommandManager.onCommand(CommandManager.java:118) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
-
View User Profile
-
Send Message
Posted Mar 11, 2013Renaud444, that would be helpful if he can add it so sure, I just feel its a bit weird to type /class (class name) when you could just do /classname. Maybe he will want it or not, I actually think the whole GUI menu for classes is actually pretty nifty. So do what you wish, both seem ok to me 😎
-
View User Profile
-
Send Message
Posted Mar 11, 2013Just a question:
If they are up to 4 Teams, which colors should I use: red, blue, green and yellow?
What do you think?
-
View User Profile
-
Send Message
Posted Mar 10, 2013@Renaud444
Does it work also with more / custom classes?
-
View User Profile
-
Send Message
Posted Mar 10, 2013@baku1999
i had the /classname code done, i could send it to him if he wants it.
-
View User Profile
-
Send Message
Posted Mar 9, 2013@Poongko
You received a PM
@GmanCraft Did you put them in the right folder? plugins/CTF/classes/
@baku1999
Do you have the Version 0.5 ?
And maybe I'll add the commands without /class.
But until now, just type /class to see a GUI
-
View User Profile
-
Send Message
Posted Mar 9, 2013Alright well I got it to work thanks. Also, the kills/deaths and kill streak doesnt display anything. Aswell as the ninja kit doesnt seem to work? Oh, also could you change the command to change classes to /<classname> that would be easier. Thanks again baku.
-
View User Profile
-
Send Message
Posted Mar 9, 2013Hey it says no classes were loaded on startup but in the download I have all of them... What do I do?
-
View User Profile
-
Send Message
Posted Mar 9, 2013its /class <classname>?
-
View User Profile
-
Send Message
Posted Mar 9, 2013Hello Mistererwin, Im having some problems with the classes. I downloaded them all properly, and I put them all in the correct folder, but when I try to use any of them by doing /<classname>, it says "Unknown command". Any help would be very much appreciated.
Thanks again, baku
-
View User Profile
-
Send Message
Posted Mar 9, 2013What do you mean? Do you have facebook or skype.. It would be much easier.. I have ALOT To say..
The chat spams alot for example : type /class to pick a class it will say that a random ammount of time.
and after 1 shot hitting people it makes my server crash.. please reply? Skype?
-
View User Profile
-
Send Message
Posted Mar 9, 2013@Poongko
What stands in the chat?
-
View User Profile
-
Send Message
Posted Mar 9, 2013Now i have a bigger problem. :/ I don't think this has anything to do with CTF PLugin but.. when i behead people or 1 shot people they freeze, then my server crashes shortly after. Also, the chat spams ALOT.. And please, do you have skype or facebook? Letm e add you plase.
-
View User Profile
-
Send Message
Posted Mar 9, 2013@legomaster5000
You can select which mode you onna play in your Map (for each Map)
-
View User Profile
-
Send Message
Posted Mar 9, 2013Is the "capture" function block (Break their flag, Break your flag to capture their flag) going to be configurable?
-
View User Profile
-
Send Message
Posted Mar 9, 2013@Poongko
do /class <anything> and goto creative mode.
Them playe the sponges like you wan't and type /CTF save
I'll make an video ;)
-
View User Profile
-
Send Message
Posted Mar 9, 2013how do u place them :/ their confusing. and, my chat doesnt appear in the chat box. Any ctf maps other than the example ones?
-
View User Profile
-
Send Message
Posted Mar 9, 2013@legomaster5000
Yes... I'll upload a fix
@legomaster5000
Yes... this class isn't finished yet ;)