Simple Minesweeper demo plugin for Mega Menus
Get Mega Menus here

Start a game with /minesweeper [mines] where mines is a number between 3 and 10.
The command requires the permission minesweeper.command.

You can also start a game programatically using new Minefield(mines).play(player);
Upon winning or losing the plugin emits Events for other plugins to react to (if such is desired).

Alt text

If you’re server admin and want to give rewards for playing you can hook the events with EventCommand:

@ de.dosmike.sponge.minesweeper.MinesweeperGameEvent$Victory
  with player as getTargetEntity getName
  !effect ${player} minecraft:luck 30 1
@ de.dosmike.sponge.minesweeper.MinesweeperGameEvent$Defeat
  with player as getTargetEntity getName
  !effect ${player} minecraft:unluck 30 1

Need Help?

Join my Discord

Category: Games

Published on Mar 2, 2019




total downloads

Licensed under MIT

Promoted Versions