Skip to content

Commit

Permalink
Analytics works in non-debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyoondotcom committed Nov 16, 2020
1 parent 67c0c10 commit af5157a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion MinecraftManhunt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.yoonicode</groupId>
<artifactId>MinecraftManhunt</artifactId>
<version>1.3.3.1</version>
<version>1.3.3.2</version>

<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ public void sendEvent(String eventName, JsonObjectBuilder params){
writer.write(json.toString());
writer.close();

if(DEBUG_MODE){
BufferedInputStream inputStream = new BufferedInputStream(connection.getInputStream());
ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
int resInt = inputStream.read();
while(resInt != -1){
byteStream.write((byte)resInt);
resInt = inputStream.read();
}
String result = byteStream.toString();
main.logger.info(result);

BufferedInputStream inputStream = new BufferedInputStream(connection.getInputStream());
ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
int resInt = inputStream.read();
while(resInt != -1){
byteStream.write((byte)resInt);
resInt = inputStream.read();
}
String result = byteStream.toString();
main.logger.info(result);


} catch(Exception e){
main.logger.info("Exception sending analytics event: " + e.toString());
Expand Down
2 changes: 1 addition & 1 deletion MinecraftManhunt/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MinecraftManhunt
version: 1.3.3.1
version: 1.3.3.2
main: com.yoonicode.minecraftmanhunt.PluginMain
api-version: 1.16
commands:
Expand Down

0 comments on commit af5157a

Please sign in to comment.