Improved UpdatePlugin and added IsTestServer #26

Merged
NorbiPeti merged 3 commits from dev into master 2016-12-22 22:08:05 +00:00
Showing only changes of commit 60d6a03236 - Show all commits

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