Skip to content

A simple Tic Tac Toe game written as a spigot plugin, yes, I did decide to waste my time on this. It's still in development!

Notifications You must be signed in to change notification settings

toydotgames-archive/TicTacToeForSpigot

Repository files navigation

Tic Tac Toe

Usage

To start a new game:

/tictactoe

To make a move:

/tictactoe move <position>

Positions on the board are numbers from 1 to 9.

Example:
/tictactoe move 5

Contributing / Modifying

  • Clone the repo. with whatever you prefer:
git clone https://github.com/Toydotgame/TicTacToeForSpigot/ && cd TicTacToeForSpigot
gh repo clone Toydotgame/TicTacToeForSpigot && cd TicTacToeForSpigot
  • Set up this code in your IDE.
  • Make sure to add spigot.jar as an external JAR in the Libraries tab (In the project's properties) of Eclipse, or whatever is the alternative for your IDE.

Building

Compiling

When the project is set up in Eclipse (Again, or the other IDE that you use), Export the project as a plain JARfile - not a runnable JAR file! Once exported, get it ready to be copied to the server folder:

Running the Plugin

Conveniently, the Spigot SDK (spigot.jar) is also the server executable.

  • Make a copy of spigot.jar in an empty folder.
  • Run the server:
java -Xmx1G -Xms256M -jar spigot.jar nogui
  • Add your compiled plugin JAR to the plugins/ folder [at the same level as spigot.jar].
  • Type reload in the server console.
  • The plugin should be usable, either from said server console, or via connecting a Minecraft 1.6.4 client and using the same commands!

About

A simple Tic Tac Toe game written as a spigot plugin, yes, I did decide to waste my time on this. It's still in development!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages