# Capture The Flag

Holographic Displays & ProtocolLib are recommended to use CTF so each team can see the flag holograms correctly.



<figure><img src="https://4293080539-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrTV6pKptRagG0E9N0EQ%2Fuploads%2F1zscWRNFoqCNOEAbo14T%2Fbd73c0eb5d821c2ad9683d8a500c02783ee572af.png?alt=media&#x26;token=039488e0-88e6-4ae1-8495-568fdee287b3" alt=""><figcaption></figcaption></figure>

This is not a separated game mode, you can set your arena to be CTF but there's no CTF wins or anything like that.\
\
Key game features:

* Your flag has to be safe for you to capture the enemy flag
  * The flag has 5 states: Safe, Stolen, Dropped, Captured, Respawning
* Fully Holographic System
* Scoreboard flag data
* All sounds & messages can be changed
* Works with classes and kits
* You can make it works however you want
* You can enable or disable certain skills for the flag carrier, like Crusader's Shield, Enderman's Recall and Double Jump.



<figure><img src="https://4293080539-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrTV6pKptRagG0E9N0EQ%2Fuploads%2FzNoRUfy1PfBGjJPfDX5C%2F7458d31a985c98cfd712b27f857c86757f380456.png?alt=media&#x26;token=474d1c0b-655f-4cef-86e0-fc47a1f0d15e" alt=""><figcaption></figcaption></figure>

The CTF can be played along the other game modes as well! You can add game objectives, CTF flags and use the KOTH system all at the same time.\
\
To enable CTF go to Options.Game.CTF.Enable-Game-Tasks and set it to true, this will enable some tasks for the game to work. This is a option because if CTF is not being used the task would be still be running but doing nothing so the tasks will just not run if this is not enabled to save server resources.\
\
After enabling the game tasks, you can add the flags to your arena by using\


* /wizards setLocation \<arena> RED\_FLAG and BLUE\_FLAG

That's it! You can now customize the game mode. There's a ton of options, sounds and messages - everything is separated by a CTF section in config, so look for those.\
\
Additionally, if you want to use CTF in some arenas and not on others, you can! Just like the Objectives Placeholder in scoreboard you can use %ctf%. If the game does not detect any flags this placeholder will just be empty and the Scoreboard line will be reduced accordingly.



<figure><img src="https://4293080539-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrTV6pKptRagG0E9N0EQ%2Fuploads%2F6OEISavKrYKwJIe7HaaK%2F231eb19c20c6af38d28385b646c6514076593a19.png?alt=media&#x26;token=da96000f-074b-40f9-adfb-e41df575cdc9" alt=""><figcaption></figcaption></figure>

Other Scoreboard Placeholders:\


* %red\_flags\_captured%
* %blue\_flags\_captured%

When capturing a flag you can add points to the team OR set a specific amount of flags that a team has to capture to win:\
\
By setting Captures-To-Win to -1, the score system will be used. You can also set Score-To-Win to -1 and Captures-To-Win to positive value if you don't want kills to be part of the game; players can still get points by kills.



<div align="left"><figure><img src="https://4293080539-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrTV6pKptRagG0E9N0EQ%2Fuploads%2FmTLYM4E756W8QCZpKJ1q%2Fa3424c03c24380feb157c8e2e3d8c706749217af.png?alt=media&#x26;token=c822d152-95d6-442f-a037-994a748038c2" alt=""><figcaption></figcaption></figure></div>



For classes, your Objective-Protection-Size at map config will apply to flags.\
\
Very important config settings to know what they do:\


* Options.Game.CTF.Flag-Location-Threshold
  * The distance that the player needs to be to capture a flag
* Options.Game.CTF.Update-Type
  * How frequent should the capture flag check update be, check Updates & Timer at plugin's page for more. Default is FAST (0.5 sec)

Everything is customizable.



<div align="left" data-full-width="false"><figure><img src="https://4293080539-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrTV6pKptRagG0E9N0EQ%2Fuploads%2F08ZKtGaPHFirBVBi5nuR%2F1.png?alt=media&#x26;token=0d6c1141-9543-417a-badc-c67bae9ed372" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://4293080539-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrTV6pKptRagG0E9N0EQ%2Fuploads%2FPzBVYvP1iqy1BTrmgEbE%2F2.png?alt=media&#x26;token=ecccaf32-d309-4b6d-b013-f8ff6d783d48" alt=""><figcaption></figcaption></figure>
