Skip to content

Building from source

TheGaBr0 edited this page Feb 25, 2026 · 4 revisions

Building from Source

Standard build

  1. Clone this repository
git clone https://github.com/youruser/PlayTimeManager.git
cd PlayTimeManager
  1. Build
mvn clean package

The compiled JAR will be located in:

target/PlayTimeManager-<version>.jar

Building with JetsAntiAFKPro support

JetsAntiAFKPro is a paid plugin and cannot be distributed with this project. If you want to compile PlayTimeManager with JetsAntiAFKPro AFK detection support, follow these steps:

  1. Purchase and obtain JetsAntiAFKPro.jar
  2. Clone this repository:
git clone https://github.com/youruser/PlayTimeManager.git
cd PlayTimeManager
  1. Install JetsAntiAFKPro into the local Maven repository:
mvn install:install-file ^
  -Dfile="C:\path\to\JetsAntiAFKPro.jar" ^
  -DgroupId=jetsantiafk ^
  -DartifactId=jetsantiafk ^
  -Dversion=3.8.8 ^
  -Dpackaging=jar

replace <path/to/JetsAntiAFKPro.jar> accordingly.

  1. Build with the profile:
mvn clean package -P jetsantiafk

The compiled JAR will be located in:

target/PlayTimeManager-<version>.jar

Note: The pre-built releases available on SpigotMC/Modrinth already include JetsAntiAFKPro support. You only need to follow the steps above if you are compiling from source and want that integration.

Clone this wiki locally