Update Drone to only build on main branch
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bea 2022-06-01 18:05:14 +02:00
parent 452471c665
commit 4c66cf42fe
2 changed files with 5 additions and 1 deletions

View File

@ -6,4 +6,7 @@ steps:
image: maven:3-eclipse-temurin-17
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn test -B
- mvn test -B
when:
branch:
- main

View File

@ -34,6 +34,7 @@ public class UhcCore extends JavaPlugin
// We need to run this in a task, because the plugin has to be initialized AFTER all the worlds are loaded.
// todo: after a few months, this sounds like a badly implemented idea
// ^ i agree, why the hell is this happening?
getServer().getScheduler().runTask(this, ()->
{