From 4c66cf42fed8fad42954e5dcca2dae596adb17f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Wed, 1 Jun 2022 18:05:14 +0200 Subject: [PATCH] Update Drone to only build on main branch --- .drone.yml | 5 ++++- src/main/java/wtf/beatrice/uhccore/UhcCore.java | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8290a02..c2d5d4c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 \ No newline at end of file + - mvn test -B + when: + branch: + - main \ No newline at end of file diff --git a/src/main/java/wtf/beatrice/uhccore/UhcCore.java b/src/main/java/wtf/beatrice/uhccore/UhcCore.java index 51f1eb1..b2fef3a 100644 --- a/src/main/java/wtf/beatrice/uhccore/UhcCore.java +++ b/src/main/java/wtf/beatrice/uhccore/UhcCore.java @@ -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, ()-> {