A simple plugin to play tic tac toe in Minecraft (Data base still under construction ...)
You can access different sections from here:
Here we have the source code for the actual plugin, you can change stuff in it, especially if you want to add your SQL server to store the saved games.
The usage is pretty easy. After you're done with the code just compile the tic tac toe class and copy the .jar file from the target folder into your plugins folder in your dedicated server folder.
You can start the game by using /challenge or /ttt followed by your friends' game id. Note that your friend must be online.
After that, your friend has 10 seconds to accept your request by using /accept. They also can deny your request by using the /deny command.
You have 2 options to place your piece:
->First, simply right-click on the block you want to place your piece.
->Second, use command /put followed by a number from 1 to 9.
As you proceed to play, note that you can save your game by connecting the code to your SQL server. To save your game use /save command followed by any number. Just remember that the number shouldn't be repetitious. You can also load your game by using the /load command followed by your previously saved game number.
This plugin used the TicTacToe repository as its base, feel free to use it.
I would appreciate your comments on the code. I'm an amateur programmer and open to all opinions.😊