Minecraft server side client for the Aalto University Guild of Automation and Systems Technology (AS) Kimble App.
- Install IntelliJ IDEA IDE.
- Install Java JDK. On Ubuntu you can install
the right JDK version with the command
sudo apt install openjdk-17-jdk
- Clone the project repository to your computer.
git clone git@github.com:AS-kilta/as-kimble-minecraft.git - Open IntelliJ IDEA
- Select
Open or Importnavigate to the location where you cloned the repository and select the repository root directory, and click ok. - Once the project has loaded go to
File>Project Structure...from the top menu and make sure that the Project SDK uses the right java version.
The following commands should work out of the box on any UNIX based OS. For Windows, you should set up Windows Subsystem for Linux (WSL) using the following guide and run the development server there.
-
Change working directory to
./serverLinux / macOS
cd serverWindows with WSL
On WSL you can access the Windows filesystem under
/mnt/c. As an example if the repository is located atC:\Users\User\Code\as-kimble-minecrafton the Windows file system, you access the directory on the WSL side with the commandcd /mnt/c/Users/User/Code/as-kimble-minecraft/server -
Download Spigot
wget https://papermc.io/api/v2/projects/paper/versions/1.18.2/builds/282/downloads/paper-1.18.2-282.jar -
Launch server. On first startup this will generate the world and various other config files which might take a while.
./start.shOn Windows completing the IDE Setup section only installs Java JDK on Windows, but you will also need to install it on WSL to run the server. Install the required Java runtime with the following command in the WSL terminal.
sudo apt install openjdk-17-jdk -
Launching the server should have generated a
pluginsdirectory. Place the compiled plugin jar file from../targetto thepluginsdirectory e.g. withcp ../target/*.jar plugins, and then reload bukkit plugins with the/reloadserver command.
You can use the script cleanup.sh to remove the world data and config files to reset the server directory to its original state.
In IntelliJ IDEA expand the panel maven on the right hand side of the window. Double click the menu item package
under MinecraftASKimble>Lifecycle to compile the plugin. The compiled plugin is placed in the target directory.
Alternatively you can invoke the maven package command from the terminal provided that you have it installed.
mvn package
Once you have compiled the plugin and placed it in server/plugins you can test it out by starting the development server and
connecting to it with the IP address localhost from Minecraft multiplayer menu.