Improved UpdatePlugin and added IsTestServer #26
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue