MiniBoardGames Documentation

Contents

Creating your own games

API

Creating Your Own Games
Setup
Requirements
  • MiniBoardGames
  • Java Knowledge
  • Java 8
Creating the project

For make games in MBG you have to create new Java project, then go to Properties > Java Build Path > Add External JARs... and then search MiniBoardGames {version}.jar you download from spigotmc.org

Note

You don’t need Spigot lib, or create new plugin

Inventory Games
Map Games
MBG API
How to use it

MBG has a class called MBGApi with this class you can force players to play, get loaded games and more things

ArrayList<MBGGame> getLoadedGames();

With this method you can get a list of all loaded games

Note

WIP...

Configuration

Rewards

You can create rewards for each game, and when player win the game, all command go to be executed

How to add it

For add rewards select a game, then go to the node (Configuration Section):

https://proxy.spigotmc.org/fc93c04a1ca7b1cb6107ec9ab1ad3f9a493fb9aa?url=http%3A%2F%2Fimage.prntscr.com%2Fimage%2F57900485a6a24c138381f011c479e682.png

Then in the same space (Like “colors: ” node) add “finalCommand: [COMMAND HERE]” You can use {player} to replace it for the winner name and multiple commands separated with comma:

Example: say {player} wins, it's super cool,give {player} minecraft:diamond_block 1000

With this you add all commands you wan’t vanilla, from other plugins etc

Note

More info about vanilla commands: http://minecraft.gamepedia.com/Commands

AFK

MiniBoardGames has Anti-AFK system, with this system, players playing will not be kicked

Enable/Disable

You can enable and disable this searching in config antiafk

My Players Get Kicked By Flying

MBG Anti-AFK system use move event to prevent AFK kick, and some anticheats detect this move like Hacked

If you dont need AFK system go to antiafk node in config and disable it but if you need it

You can modify the force of that movement searching in config afk Then you have x: 0.5 y: 0 z: 0.5 values, change this depending of you AFK system and your AntiCheat, example if you afk system detect slow movement set it to 0.05 0 0.05