From 888eca98455d10e3cc5159c0a118d1fc3ce42594 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 13 Jan 2023 10:40:19 +0100 Subject: [PATCH] Added build tools #1 --- README.md | 24 +++++++++++++++++++++++- build.sh | 1 + run.sh | 5 +++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 build.sh create mode 100644 run.sh diff --git a/README.md b/README.md index 35f61d6..0d60cf7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,26 @@ # spigot_ontime_handler Spigot plugin to send Minecraft derivates to OnMemberJoin, OnMemberRemove & OnMessage to the KDB-API to be processed -accordingly \ No newline at end of file +accordingly + +## Execute + +### Install dependencies: + +Install ```spigot server``` in folder ```./spigot``` first!! + +```bash +mvn install +``` + +### Build and Run the plugin: + +```bash +./run.sh +``` + +### Build only: + +```bash +./build.sh +``` \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..0c35637 --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +mvn package -f pom.xml \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..fd9919b --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +bash build.sh +cp target/kd_ontime_handler_spigot-*-SNAPSHOT.jar spigot/plugins +cd spigot +export PLUGIN_ENVIRONMENT=development +java -Xms1G -Xmx8G -jar spigot.jar --nogui \ No newline at end of file