aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/handler/events
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2017-12-10 19:32:21 +1000
committerJordan Byrne <draknyte1@hotmail.com>2017-12-10 19:32:21 +1000
commit78866b8e89f4060f5a03e8a66888b8899d3c2c83 (patch)
tree648f7c633c90d862c13889a32bcbb5b6626ec27a /src/Java/gtPlusPlus/core/handler/events
parent6d2e0d2192356447b37809f62c6eb41faf09a83b (diff)
downloadGT5-Unofficial-78866b8e89f4060f5a03e8a66888b8899d3c2c83.tar.gz
GT5-Unofficial-78866b8e89f4060f5a03e8a66888b8899d3c2c83.tar.bz2
GT5-Unofficial-78866b8e89f4060f5a03e8a66888b8899d3c2c83.zip
+ Added First Test unit for Analytics. (Analytics Class is not available publicly, but please do ask for a redacted version.)
+ Added support for Fancy Graphics and shit Graphics modes. (Things like leaves will soon have variable textures) + Added Beyond Reality Classic check, for future pack specific features. % Refactored CORE.java - Removed many useless or duplicate GT variables.
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler/events')
-rw-r--r--src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java b/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java
index 1096816690..830f986d0b 100644
--- a/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java
+++ b/src/Java/gtPlusPlus/core/handler/events/LoginEventHandler.java
@@ -1,5 +1,7 @@
package gtPlusPlus.core.handler.events;
+import static gtPlusPlus.core.lib.CORE.mLocalProfile;
+
import java.util.*;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
@@ -28,7 +30,10 @@ public class LoginEventHandler {
//Set this for easier use elsewhere.
if (event.player.getEntityWorld().isRemote){
ClientProxy.playerName = this.localPlayersName;
- }
+ if (mLocalProfile == null){
+ mLocalProfile = this.localPlayerRef.getGameProfile();
+ }
+ }
try {
@@ -39,6 +44,14 @@ public class LoginEventHandler {
if (!this.localPlayerRef.worldObj.isRemote){
PlayerCache.appendParamChanges(this.localPlayersName, this.localPlayersUUID.toString());
+ //Submit Analytics
+ try {
+ CORE.mAnalytics.SubmitNewUserSession();
+ }
+ catch (Throwable t){
+ Utils.LOG_INFO("Failed to submit analytics data.");
+ }
+
if (CORE.ConfigSwitches.enableUpdateChecker){
if (!Utils.isModUpToDate()){
Utils.LOG_INFO("[GT++] You're not using the latest recommended version of GT++, consider updating.");