Added an !

This commit is contained in:
Norbi Peti 2016-12-22 22:38:58 +01:00
parent 222a1225bc
commit 60d6a03236

View file

@ -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;
}