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...)
Error? Please help.
[16:38:25 ERROR]: Could not pass event InventoryClickEvent to CTF v0.7 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:1363) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.PacketPlayInWindowClick.a(SourceFile:32) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.PacketPlayInWindowClick.handle(SourceFile:10) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] 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.GeneratedMethodAccessor59.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_55] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [bukkit.jar:git-Bukkit-1.7.2-R0.3-63-g8356f65-b3075jnks] ... 13 more
Hello,
I can start a game of CTF, but you have to manualy enter the commands ?
how do I for example make a sign, teleport to this world en the game begins ?
@Mistererwin
That did not fix the problem. : - (
@Mistererwin
When is this getting updated? :(
@Flash247
Well - there occurs an error while loading the classes.
Are you sure you/bukkit has the rights to read the classes folder or class files?
Can someone please help me to fix this null error?
@VareWolf011
Duh. Add the permissions with PermissionsEx, GroupManager, bPermissions or something like that.
Hey i install this awesome plugin in my server but when players without permisions are trying to join it says to them you don't have the permission and some other things.. can you help me please ...??? thanks
@BGVolTec
Unsupported major.minor means, that you may use java 6 instead of java 7!
@red0fireus
Well - I'm atm not at home and have barely any free time
He never fixes them last year I had to annoy him for 3 months -_-
It seems that I am not the only one having this issue. Mistererwin can you please update this plugin and fix the many issues sometime soon?
Can someone please help me fix this! [20:18:16 ERROR]: Could not load 'plugins/CTF.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: net/askarian/MisterErwin/CTF/CTF : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:137) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:313) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:236) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:350) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:312) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] Caused by: java.lang.UnsupportedClassVersionError: net/askarian/MisterErwin/CTF/CTF : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) [?:1.6.0_30] at java.lang.ClassLoader.defineClass(ClassLoader.java:643) [?:1.6.0_30] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [?:1.6.0_30] at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) [?:1.6.0_30] at java.net.URLClassLoader.access$000(URLClassLoader.java:73) [?:1.6.0_30] at java.net.URLClassLoader$1.run(URLClassLoader.java:212) [?:1.6.0_30] at java.security.AccessController.doPrivileged(Native Method) [?:1.6.0_30] at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [?:1.6.0_30] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at java.lang.ClassLoader.loadClass(ClassLoader.java:323) [?:1.6.0_30] at java.lang.ClassLoader.loadClass(ClassLoader.java:268) [?:1.6.0_30] at java.lang.Class.forName0(Native Method) [?:1.6.0_30] at java.lang.Class.forName(Class.java:270) [?:1.6.0_30] at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] ... 9 more
Please fix bug
Can someone please help me fix this! [20:18:16 ERROR]: Could not load 'plugins/CTF.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: net/askarian/MisterErwin/CTF/CTF : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:137) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:313) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:236) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:350) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:312) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] Caused by: java.lang.UnsupportedClassVersionError: net/askarian/MisterErwin/CTF/CTF : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) [?:1.6.0_30] at java.lang.ClassLoader.defineClass(ClassLoader.java:643) [?:1.6.0_30] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [?:1.6.0_30] at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) [?:1.6.0_30] at java.net.URLClassLoader.access$000(URLClassLoader.java:73) [?:1.6.0_30] at java.net.URLClassLoader$1.run(URLClassLoader.java:212) [?:1.6.0_30] at java.security.AccessController.doPrivileged(Native Method) [?:1.6.0_30] at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [?:1.6.0_30] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at java.lang.ClassLoader.loadClass(ClassLoader.java:323) [?:1.6.0_30] at java.lang.ClassLoader.loadClass(ClassLoader.java:268) [?:1.6.0_30] at java.lang.Class.forName0(Native Method) [?:1.6.0_30] at java.lang.Class.forName(Class.java:270) [?:1.6.0_30] at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:40) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) [craftbukkit-1.7.2-R0.3.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] ... 9 more
Error?
[CTF] A null caused assassin to fail to load! [19:26:26 WARN]: [CTF] A null caused archer to fail to load! [19:26:26 WARN]: [CTF] A null caused medic to fail to load! [19:26:26 WARN]: [CTF] A null caused pyro to fail to load! [19:26:26 WARN]: [CTF] A null caused heavy to fail to load! [19:26:26 WARN]: [CTF] A null caused Thrower to fail to load! [19:26:26 WARN]: [CTF] A null caused engineer to fail to load! [19:26:26 WARN]: [CTF] A null caused test to fail to load! [19:26:26 WARN]: [CTF] A commander$1 caused commander$1 to fail to load! [19:26:26 WARN]: [CTF] A null caused commander to fail to load! [19:26:26 WARN]: [CTF] A null caused chemist to fail to load! [19:26:26 WARN]: [CTF] A ninja$1 caused ninja$1 to fail to load! [19:26:26 WARN]: [CTF] A null caused ninja to fail to load! [19:26:26 INFO]: [CTF] CTF has been enabled!
@Mistererwin I get a message saying: You killed yourself :D When I capture a flag and then, I die. How do I fix this?
@fr0dekene
If you set auto-mode to true, the players will join automatically into a new game and when this game will finish, thay will be teleported to the next game. Without restarting server.
Will this work automatically? I mean players join the server, play the game, get disconnectetd and the game will start up automatically?
You should really change the plugin so you dont have to have a world with ctf map at the start It would make it much easier
I got this error and it disallowed a player to choose a class.
[12:21:16] [Server thread/ERROR]: Could not pass event PlayerJoinEvent to CTF v0.7 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:481) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:466) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerList.c(PlayerList.java:225) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerList.a(PlayerList.java:116) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.LoginListener.c(LoginListener.java:78) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.LoginListener.a(LoginListener.java:42) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:149) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.lang.NoClassDefFoundError: org/kitteh/tag/TagAPI at net.askarian.MisterErwin.CTF.util.Tags.refreshPlayer(Tags.java:66) [?:?] at net.askarian.MisterErwin.CTF.util.Tags.setTag(Tags.java:55) [?:?] at net.askarian.MisterErwin.CTF.TeamManager.setTeam(TeamManager.java:51) [?:?] at net.askarian.MisterErwin.CTF.TeamManager.JoinTeam(TeamManager.java:110) [?:?] at net.askarian.MisterErwin.CTF.ClassManager.setKit(ClassManager.java:155) [?:?] at net.askarian.MisterErwin.CTF.listener.PlayerListener.onPlayerJoin(PlayerListener.java:53) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_11] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0_11] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0_11] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_11] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] ... 14 more
@Blackwolf700
Use the permissions =)
@CubedBlock
Is CTF maybe in automode?