By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.

OK, Don't show this again

A minigame which provides a way to play TicTacToe with item frames.
version 0.1.5
Approved
Direct Download How to install?
Switch version
199 Downloads / 432 Total
Plugin Description §

TicTacToe

A PocketMine game plugin which provides a way to play TicTacToe with the help of item frames.

Usage:

Anyone with the permission TicTacToe.createArenas can create an Arena with the "tictactoe arenacreate" command. It will ask you to tap the lower left and then the upper right corner of the Game Board. (Make sure to click ON the itemframes, not the block behind the itemframes!) The Game Board currently only supports the classic 3x3 size.

Now create a sign where the first line is [TTT] (you can create multiple signs and the content of the remaining 3 lines can be anything). Every player clicking on it will get put into the queue (2 players are required for one game).

API:

This plugin does provide quite useful API, which is mostly home in GameManager and PlayerManager.

You can easily add and remove players from the queue, but you can also create custom games with specific Arenas, add Arenas for use by the queue and much more!

Please always check if you have the right API version before doing anything with TTT's API functions.

Example:

/** @var robske_110\TTT\TicTacToe $ticTacToe */
if(!$ticTacToe->isCompatible("0.1.0")){
	$this->getLogger()->critical("Your version of TicTacToe is not compatible with this plugin");
	$this->getServer()->getPluginManager()->disablePlugin($this);
	return;
}

Note: This plugin was initially written in 1.5hours (as a small challenge for myself), but since then it has evolved into a useful and working plugin.

I'm too lazy to write a proper API documentation for such a small plugin. There are a lot of phpdocs which will help you :) [And function names also give hints!]

What's new §
  • Update for API 3.0.0 (also working with 3.1.x)
  • randomize free Arenas for use
  • fix permissions missing a default value
  • Fix level saving&loading (now auto loading levels, and using FolderName)
  • Handle suddenly/unexpectedly unloaded levels better.
  • Fixed issue #4
  • Fix a typo, which caused a crash while trying to create an Arena
  • Fix Issue #2 (another crash while trying to create an Arena)
  • Fix console being able to execute the arenacreate command
  • Some code cleanup
Supported API versions
3.0.0
->
3.4.1
License §
Categories:
Minigame
Mechanics
Fun
Permissions
Other files
Permissions
Commands
Edit world

You can leave one review per plugin release, and delete or update your review at any time

Loading...