Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fixed gamewisp url being twitch for some reason (4am copy pasta?)

  • Loading branch information...
dries007 committed Oct 5, 2016
1 parent ea10e27 commit ded3650377493fe513d4f0c3c97c61715811bd99
Showing with 5 additions and 10 deletions.
  1. +5 −10 src/main/java/net/doubledoordev/fsw/ForgeSubWhitelist.java
@@ -145,7 +145,7 @@ public void tickEvent(TickEvent.ServerTickEvent event)
}
}

public void syncConfig()
private void syncConfig()
{
configuration.addCustomCategoryComment(MODID, "This information is required for server side operation.");

@@ -173,9 +173,9 @@ public void syncConfig()
throw e;
}
url = BASE_URL + "&uuid=$UUID$";
if (twitch) url += "&twitch=$TWITCH$";
if (beam) url += "&beam=$BEAM$";
if (gamewisp != -1) url += "&twitch=$TWITCH$";
if (twitch) url += "&twitch=true";
if (beam) url += "&beam=true";
if (gamewisp != -1) url += "&gamewisp=" + gamewisp;
}

private static class Checker implements Runnable
@@ -207,12 +207,7 @@ public void run()

try
{
String out = IOUtils.toString(new URL(url
.replace("$TOKEN$", apiToken)
.replace("$TWITCH$", String.valueOf(twitch))
.replace("$BEAM$", String.valueOf(beam))
.replace("$UUID$", uuid.toString())
.replace("$GAMEWISP$", String.valueOf(gamewisp))));
String out = IOUtils.toString(new URL(url.replace("$TOKEN$", apiToken).replace("$UUID$", uuid.toString())));
if (Boolean.parseBoolean(out))
{
logger.info("Letting {} join, authorized online.", uuid);

0 comments on commit ded3650

Please sign in to comment.
You can’t perform that action at this time.