mattysweeps / SurvivalGames

Survival Games Minigame Plugin for Sponge
MIT License
3 stars 6 forks source link
minecraft minecraft-plugin minigame minigame-plugin sponge sponge-plugin

SurvivalGames

Build Status Discord

SurvivalGames is a Sponge Plugin which lets you play the classic Minecraft Survival Games game mode on your Sponge Server! You can run multiple survival games at once, and each game is customizable. Config files for survival games can be saved and loaded from file.

This plugin was created for the Sponge Summer Plugin Competition 2016.

Demo

NOTE: Players participating in the demo must be operators.

NOTE: Command blocks must be enabled to use all the features.

Installing the plugin on your server gives you instant access to survival games. just run /ssg demo to have the demo worlds and config files automatically downloaded. I'm still working out bugs, so please run it on a fresh server. Run these commands to get the server running:

Commands

Everything which can be set via a config can also be adjusted through commands. The root command is /ssg. Other commands include:

Permissions

Each command has its own permission, based on the structure of the command in the command tree. For example, to run /ssg add player, you need the permission "ssg.add.player".

Config

Each survival game config has the following options:

Mob Spawners

You can configure a certain region to spawn mobs when a survival game is running. This is done via the /ssg add mob-spawn-area <game> <x> <y> <z> <x> <y> <z> <EntityType> <EntitysPerMinute>

Events

SurvivalGames has its own events which are fired when game-related things happen. Not only can other players use these events, but SurvivalGames also can fire command blocks with the command /ssg event [EventName]. This allows for mapmakers to do some really custom stuff!

For example, If a command block is set with the command /ssg event MobSpawnedEvent, then whenever a MobSpawnedEvent occurs, the command block is executed. It is then turned into a redstone torch for 5 seconds, so surrounding blocks can be powered. (This is a temporary workaround)

Java Docs

You can view the Javadocs here: http://mattysweeps.github.io/SurvivalGames/docs/index.html I recommend you just look at the source code ;)

Contributing

Don't forget to add the git hooks:

cp scripts/pre-commit .git/hooks