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...)
Help! I want to cap by being by the flag when its home! I don't want to right click! Plus! How can you change it to /a for all people can hear your msg?!?! One more thing! How you make team color for players names!?
@alexjvan
You could make your own addon, otherwise: I'm going to code some maybe this week ;)
@FireAlarmFreak
Can you maybe tell me, what the error is ;)? - pastebin
I'm getting a huge error on this when I try to load it. :(
I was wondering if you could try and intergrade an option for the winning team to earn money, or for every kill/capture you earn some money? I feel it would be a really cool feature
Thanks a lot, Alex
@CarlsbergCitrus
Check the server log - Does it says, that you need to download the classes first?
Installation
Uhm the plugin shows up red on my plugin list.... it's not working.
@Cameronmo99
Sry for the last answer:
CTF.admin should work :P
Other than that (+OP) there is no other way except copy and paste...
can you copy and paste a permissions to make all classes avalible
@Cameronmo99
Just give them the permission: CTF.<classname>
How do I make all classes available to any one
@justjort
Pickup the item and place the wool on your opponents flag..
Or use this addon: Addon-K
i got the plugin working, but how do i capture the flag. i know how to get the flag but i can't get the number of "capture" to go up
@Fillpant Sry for the late answer, but school... is there any error log? Like the world isn't found... ?
@haydenaa Just read this ;) http:dev.bukkit.org/bukkit-plugins/ctf/#w-color-red-troubleshooting-color
In /plugins it the CTF plugin is red. That means its not working. I don't know why, since I downloaded it and installed it. Can I have some help?
is there any way i can remove the green wool from playeer head? when ctf ends ppl keep the wool and in my case (where i run factions on sam,e server) people join-leave to keep wool!!!! any way i can remove it?
@Mistererwin
thanks, i couldnt locate the code mentioning it... and another prob, sometimes when a game finishes ctf stops and it needs manual /ctf start, why is that!?
@Fillpant
Green wool? - and I'll add the wool-removing part ;)
@Klausi452
Dankööö
Hab ein Ticket gepostet, das alte mit dem Unendlich herunterfallen hab ich durch mein addon package gefixt das Ticket kann gelöscht werden
is there any way i can remove the green wool from playeer head? when ctf ends ppl keep the wool and in my case (where i run factions on sam,e server) people join-leave to keep wool!!!! any way i can remove it?
Please Help!
when trying to choose a class map that gives me this in the console:
19:26:09 [INFO] [CTF] trying to unloadCTF-MAP_Blocks
19:26:09 [INFO] [CTF] unloading CTF-MAP_Blocks
19:26:09 [INFO] [CTF] Found map CTF-MAP_Blocks
19:26:09 [INFO] [CTF] Found map CTF-MAP_Mountains
19:26:09 [INFO] [CTF] Found map CTF-MAP_Dziki-Las
19:26:09 [INFO] [CTF] Found map CTF-MAP_Planety
19:26:09 [INFO] [CTF] Found map CTF-MAP_Zamki
19:26:09 [INFO] [CTF] 5SIZE
19:26:09 [INFO] [CTF] 5 - 1
19:26:09 [INFO] [CTF] trying to unloadCTF-MAP_Mountains
19:26:09 [INFO] [CTF] failed to unload CTF-MAP_Mountains (World not found!)
19:26:09 [INFO] Preparing start region for level 3 (Seed: -7788813775875702272)
19:26:10 [INFO] Preparing spawn area for CTF-MAP_Mountains, 77%
19:26:12 [INFO] Preparing spawn area for CTF-MAP_Mountains, 85%
19:26:12 [INFO] [WorldGuard] (CTF-MAP_Mountains) TNT ignition is PERMITTED.
19:26:12 [INFO] [WorldGuard] (CTF-MAP_Mountains) Lighters are PERMITTED.
19:26:12 [INFO] [WorldGuard] (CTF-MAP_Mountains) Lava fire is blocked.
19:26:12 [INFO] [WorldGuard] (CTF-MAP_Mountains) Fire spread is UNRESTRICTED.
19:26:12 [INFO] [WorldGuard] Loaded configuration for world 'CTF-MAP_Mountains'
19:26:12 [INFO] [CTF] [CTF] Loaded map CTF-MAP_Mountains
19:26:12 [WARNING] [CTF] /home/servers/269391/CTF-MAP_Mountains/spawnloc.ctf does not exist
19:26:12 [INFO] kuba260198 issued server command: /ctf next
19:26:12 [INFO] [CTF] trying to unloadCTF-MAP_Mountains
19:26:12 [INFO] [CTF] unloading CTF-MAP_Mountains
19:26:12 [INFO] [CTF] Found map CTF-MAP_Blocks
19:26:12 [INFO] [CTF] Found map CTF-MAP_Mountains
19:26:12 [INFO] [CTF] Found map CTF-MAP_Dziki-Las
19:26:12 [INFO] [CTF] Found map CTF-MAP_Planety
19:26:12 [INFO] [CTF] Found map CTF-MAP_Zamki
19:26:12 [INFO] [CTF] 5SIZE
19:26:12 [INFO] [CTF] 5 - 2
19:26:12 [INFO] [CTF] trying to unloadCTF-MAP_Dziki-Las
19:26:12 [INFO] [CTF] failed to unload CTF-MAP_Dziki-Las (World not found!)
19:26:12 [INFO] Preparing start region for level 3 (Seed: -2634183340253684916)
19:26:12 [INFO] [WorldGuard] (CTF-MAP_Dziki-Las) TNT ignition is PERMITTED.
19:26:12 [INFO] [WorldGuard] (CTF-MAP_Dziki-Las) Lighters are PERMITTED.
19:26:12 [INFO] [WorldGuard] (CTF-MAP_Dziki-Las) Lava fire is blocked.
19:26:12 [INFO] [WorldGuard] (CTF-MAP_Dziki-Las) Fire spread is UNRESTRICTED.
19:26:12 [INFO] [WorldGuard] Loaded configuration for world 'CTF-MAP_Dziki-Las'
19:26:13 [INFO] [CTF] [CTF] Loaded map CTF-MAP_Dziki-Las
19:26:18 [INFO] kuba260198 issued server command: /ctf join
19:26:18 [INFO] [CTF] ERROR
19:26:19 [SEVERE] Could not pass event InventoryClickEvent to CTF v0.7
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1374)
at net.minecraft.server.v1_6_R3.Packet102WindowClick.handle(SourceFile:31)
at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.NullPointerException
at net.askarian.MisterErwin.CTF.ClassManager.setKit(ClassManager.java:118)
at net.askarian.MisterErwin.CTF.CommandManager.changeclass(CommandManager.java:286)
at net.askarian.MisterErwin.CTF.ClassManager$1.onOptionClick(ClassManager.java:58)
at net.askarian.MisterErwin.CTF.util.IconMenu.onInventoryClick(IconMenu.java:115)
at net.askarian.MisterErwin.CTF.util.IconMenuManager.onInventoryClick(IconMenuManager.java:82)
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:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 14 more
19:26:22 [SEVERE] Could not pass event InventoryClickEvent to CTF v0.7
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1374)
at net.minecraft.server.v1_6_R3.Packet102WindowClick.handle(SourceFile:31)
at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.NullPointerException
at net.askarian.MisterErwin.CTF.ClassManager.setKit(ClassManager.java:118)
at net.askarian.MisterErwin.CTF.CommandManager.changeclass(CommandManager.java:286)
at net.askarian.MisterErwin.CTF.ClassManager$1.onOptionClick(ClassManager.java:58)
at net.askarian.MisterErwin.CTF.util.IconMenu.onInventoryClick(IconMenu.java:115)
at net.askarian.MisterErwin.CTF.util.IconMenuManager.onInventoryClick(IconMenuManager.java:82)
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:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 14 more
19:29:26 [SEVERE] Could not pass event InventoryClickEvent to CTF v0.7
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1374)
at net.minecraft.server.v1_6_R3.Packet102WindowClick.handle(SourceFile:31)
at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116)
at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592)
at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227)
at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488)
at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421)
at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
Caused by: java.lang.NullPointerException
at net.askarian.MisterErwin.CTF.ClassManager.setKit(ClassManager.java:118)
at net.askarian.MisterErwin.CTF.CommandManager.changeclass(CommandManager.java:286)
at net.askarian.MisterErwin.CTF.ClassManager$1.onOptionClick(ClassManager.java:58)
at net.askarian.MisterErwin.CTF.util.IconMenu.onInventoryClick(IconMenu.java:115)
at net.askarian.MisterErwin.CTF.util.IconMenuManager.onInventoryClick(IconMenuManager.java:82)
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:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 14 more
Sorry for the lack of spoiler
@Mistererwin
ok, I was just thinking you can give them a sign to lock the dispenser like lockette.