40 lines
1.6 KiB
Markdown
40 lines
1.6 KiB
Markdown
# Bukkit hardcore revive
|
|
|
|
# Installation
|
|
Only put the jar file inside the plugins directory and your done.
|
|
|
|
# Usage
|
|
TODO
|
|
|
|
# Build
|
|
The build is handled by gradle. So run `./gradlew clean build`. The doc for the plugin used can be found
|
|
[here](https://plugins.gradle.org/plugin/dev.ethp.bukkit/0.1.3) and [here](https://github.com/eth-p/gradle-bukkit).
|
|
|
|
Running gradle from Intellij works fine but from the terminal i had to use
|
|
`JAVA_HOME=/usr/lib/jvm/java-11-openjdk ./gradlew clean build`.
|
|
|
|
# Dev tools
|
|
|
|
## Local Server
|
|
You can compile the spigot server on your own by running `./buildSpigot.sh 1.16.1` inside the dev directory. The first
|
|
parameter is the version. If no version is given the `latest` tag is used which is not always the newest minecraft
|
|
version.
|
|
|
|
After that you can start the server and it will run inside the `server` directory.
|
|
|
|
## Server
|
|
You can run a spigot server for development. Run `sudo docker-compose up` inside of `dev`.
|
|
To make inserting the plugin easier change the `SPIGOT_UID` to your UID (run the `id` command). The only problem is
|
|
that you have to change to `container` directory to 777 (`sudo chmod 777 container`). The container dir is getting created by docker so it is owned
|
|
by root and we can't write in there.
|
|
Documentation for the container can be found [here](https://hub.docker.com/r/nimmis/spigot).
|
|
The most important commands are:
|
|
- `sudo docker exec spigot-dev mc_send op myMcUsername`
|
|
- `sudo docker exec spigot-dev mc_restart`
|
|
- `sudo docker exec spigot-dev mc_log`
|
|
|
|
## Scripts
|
|
- `insertPlugin.sh` moves all files in the build to the dev server
|
|
- `restartServer.sh` restarts the spigot server
|
|
- `log.sh` shows and follows the server log
|