Minesweeper - Play Minesweeper in a inventory

This is a discussion topic for the Ore project, Minesweeper. View the full project on Ore for downloads and more information.


Minesweeper

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

A new version has been released for Minesweeper, it is available for download here.


Updated to current version of MegaMenus

A new version has been released for Minesweeper, it is available for download here.


  • Updated to gradle
  • Fixed MinesweeperGameEvent not returning the player