diff --git a/README.md b/README.md new file mode 100644 index 0000000..f4ccb71 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# Paintball + +Minecraft Plugin enabling users to play versions of Paintball. + +> [!WARNING] +> This plugin is currently under development and release has not been finalized. Bugs are expected. + +## Quickstart +Download the .jar file corresponding to your server version and insert in `plugins` folder. +Once loaded, assign players to teams with + +```/changeteam ``` + +Toggle gamemode with + +```/gametype [PAINTBALL/QUICKFIRE/FROSTBITE]``` + +Finally, start the game with + +```/start``` + +## Gameplay + +### Paintball +The default paintball gamemode currently offers a single weapon with a set cooldown. More customization features are planned in the future. +Last team alive wins. + +### Quickfire +A faster paced version of paintball with quickcharge crossbows, where players have fewer hearts of health by default. Each crossbow shot deals one heart. +Last team alive wins. + +### Frostbite +Tagging players with a bow freezes them in place, but frozen players can be revived by unfrozen teammates with a punch. Last team alive wins. + +## Development + +Feature requests, bugs, feedback, etc. can be made [here](https://github.com/rspacerr/Minecraft-Paintball/issues). \ No newline at end of file diff --git a/src/main/java/me/rspacerr/paintball/GameManager.java b/src/main/java/me/rspacerr/paintball/GameManager.java index d9c370b..418918c 100644 --- a/src/main/java/me/rspacerr/paintball/GameManager.java +++ b/src/main/java/me/rspacerr/paintball/GameManager.java @@ -185,10 +185,11 @@ public static void countdown() { } private static void winMessages() { - // TODO: store which team(s) win for (GamePlayer player : players.values()) { if (!(isTeamDead(player))) { - player.player().sendMessage(ChatColor.GREEN + "Your team has won the round!"); + player.player().sendMessage(ChatColor.GREEN + "Your team has won!"); + } else { + player.player().sendMessage(ChatColor.RED + "Your team lost!"); } } } diff --git a/src/main/java/me/rspacerr/paintball/games/Game.java b/src/main/java/me/rspacerr/paintball/games/Game.java index 992e19c..28921a0 100644 --- a/src/main/java/me/rspacerr/paintball/games/Game.java +++ b/src/main/java/me/rspacerr/paintball/games/Game.java @@ -1,7 +1,6 @@ package me.rspacerr.paintball.games; import me.rspacerr.paintball.GameManager; -import me.rspacerr.paintball.GameTeam; import me.rspacerr.paintball.players.GamePlayer; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index ba6e8e2..37e6988 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -8,6 +8,7 @@ commands: description: starts the game. end: description: ends any current active game. + aliases: [ gametype ] type: description: change the game type. changeteam: