add more debugging info to webservices
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m7s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m7s
This commit is contained in:
parent
3a33dbf4cc
commit
d208d5b729
3 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,8 @@ public class DevStub implements IFMLLoadingPlugin {
|
|||
|
||||
@Mod.EventHandler
|
||||
public void onInit(FMLPostInitializationEvent event) {
|
||||
if(LoadHandler.data.map.get("username") != null)
|
||||
throw new IllegalStateException();
|
||||
LoadHandler.data.set("release-branch", false);
|
||||
LoadHandler.data.set("branch", "[dev]");
|
||||
LoadHandler.data.set("username", "root");
|
||||
|
|
|
@ -75,6 +75,7 @@ public class WebServiceClient {
|
|||
return;
|
||||
}
|
||||
if(type.equals("info")) {
|
||||
BaseBand.LOGGER.info("Connected to BaseBand server");
|
||||
if(!packet.getString("commit").equals(GitHash.GIT_HASH) && !outdated) {
|
||||
outdated = true;
|
||||
BaseBand.notify("§d§lBaseBand has updated. You will receive the update automatically when you next restart your game.");
|
||||
|
|
|
@ -56,6 +56,8 @@ public class ClientHandler {
|
|||
if(branch.equals("[dev]"))
|
||||
branchHash = "[dev]";
|
||||
|
||||
System.out.println("Client connected from branch " + branch);
|
||||
|
||||
TCN initResponse = new TCN();
|
||||
initResponse.set("type", "info");
|
||||
if(branchHash == null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue