by this Reddit Post. CaptureThePoints, A Plugin Inspired

co-authors: compdude5, Humsas ​

Version: 2.5 ​

Description: ​

Capture Points for your team by filling in 4x4 squares of a certain block (bedrock by default) with your team's color of wool. ​

​

This is a quick overview of how the game looks/works. It is not a game for only one player by any means. ​

(This video is out of date: I hope to get videos explaining it whenever I find good recording software (unless someone wants to make videos :3 )) ​

​

​

Permissions: ​

- capturethepoints

This permission allows the player to use every command, and not just /joingame and /leavegame. If you do not have Permissions, only your OPs will be able to use the commands. ​

Commands: ​

/setteamspawn <color> ​

Sets the place this team is teleported to when they die or when they join the game.​

​

/capturestart <number of points needed to win> ​

This starts a game where a team needs to hold <number of points needed to win> points to win. ​

​

/captureend​

Ends the current game.​

​

/roles​

Tells the different roles for in game​

​

/joingame <color> <role> ​

Teleport to your team color spawn, get a block on your head to indicate your color, get a customizable set of items for the game (including your team color's wool and weapons/bread by default), clear your inventory for until the game is finished (whereupon you get your inventory back), and wait for a game to start. Warning: if the server shuts down during a game, your original inventory will be lost, so I suggest starting a game with a clear inventory. ​

​

/playerjoingame <player> <color> <role> ​

Makes the player join this team color and join game.​

​

/leavegame ​

Teleport out of the arena (useful for player disconnects so you're not stuck in there)​

​

/setteampoints: ​

Sets the chosen teams points to this number. This is useful for games where teams start out with points already captured.​

​

Download: ​

(Humsas Source code (A branch of compdude5's code): http://dl.dropbox.com/u/36326695/CaptureThePointsHumsas.zip)

(compdude5 Source code (A branch of 2.5's code): http://dl.dropbox.com/u/36326695/CaptureThePoints.zip )​

​

Humsas' version has a different command scheme. All commands start with /ctp now. ​

(A branch of compdude5's code) : http://dl.dropbox.com/u/36326695/CaptureThePointsv3.0.zip​ vHumsas' version

compdude5's version

(A branch of 2.5's code)

​

​

Installation: ​

Extract CaptureThePoints.zip. Insert CaptureThePoints.jar and CaptureSettings.yml into your plugins folder. ​

Customizing: ​

CaptureSettings.yml is where you can customize what 4x4 square the wool should be placed in (by default, it's bedrock), how much wool they start with, and what items they get from different roles. ​

​

ToDo: ​

whenever someone quits the game, mark them as having left the game, restore inventory and such

Known Bugs: ​

None I can recall

Changelog: ​

​

Humsas' Version:

added /ctp removespawn <color> and /ctp teams

added error checking

permissions changed (read the plugin.yml in the jar file)

You will need to add this to your .yml in your CaptureThePoints folder (not your normal customize .yml).

Existing team spawns: 'red, green, etc'

Need at least 2 spawn points and two players to start now

compdude5's version: implements a role system (made by compdude5) when joining a game and has code cleanup by him also ​

2.5: ​

Vertical points can now be made

Players are stuck in place until /capturestart

2.35: fixed silly bugs 2.2 caused ​

2.3: ​

Fixed 2 message errors

added /playerjoingame

2.2: ​

/captureend ends the current game fixed a message broadcasting issue health set to max when joining a game you now cannot rejoin a game you left (this solves a couple issues) deleted /erasewool and deletewool on shutdown in .yml. It does it automatically now. on leave, it teleports you to where you were before you started the game deleted /setgameexit since now you're teleported to back where you were before the game Compressed and standardized more code



​

2.1: Fixed and standardized code. ​

2.0: ​

Added a lot of commands

Most messages only broadcast to players in the game

1.35: Games that need less points captured than the whole game has can be created now. The number of points needed to be captured cannot be less than 1/16th of the total points though (but that should not be an issue). ​

1.30: Fixed an /erasewool issue​

1.25: Added the /erasewool function ​