From 60d6a03236fedbb90237d0f796849d57d98dafd2 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 22 Dec 2016 22:38:58 +0100 Subject: [PATCH] Added an ! --- src/main/java/buttondevteam/lib/TBMCCoreAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/buttondevteam/lib/TBMCCoreAPI.java b/src/main/java/buttondevteam/lib/TBMCCoreAPI.java index f33d7c8..9e2f639 100644 --- a/src/main/java/buttondevteam/lib/TBMCCoreAPI.java +++ b/src/main/java/buttondevteam/lib/TBMCCoreAPI.java @@ -69,7 +69,7 @@ public final class TBMCCoreAPI { return false; } info(sender, "Checking branch name..."); - if (TBMCCoreAPI.IsTestServer() && !branch.equalsIgnoreCase("master")) { + if (!TBMCCoreAPI.IsTestServer() && !branch.equalsIgnoreCase("master")) { error(sender, "The server is in production mode, updating only allowed from master!"); return false; }