Update Drone to only build on main branch
All checks were successful
continuous-integration/drone/push Build is passing

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

@ -7,3 +7,6 @@ steps:
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- 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, ()->
{