[2.8.4] Bugfixes, tostring methods

Attempt to fix #50
This commit is contained in:
Rsl1122 2017-03-15 21:54:26 +02:00
parent 989dc17a4f
commit 8522e2fb05
5 changed files with 15 additions and 10 deletions

View File

@ -5,12 +5,6 @@
<artifactId>Plan</artifactId>
<version>2.0.0</version>
<packaging>jar</packaging>
<repositories>
<repository>
<id>org.bukkit</id>
<url>org/bukkit/craftbukkit/1.10.2-R0.1-SNAPSHOT/craftbukkit-1.10.2-R0.1-SNAPSHOT.jar</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.bukkit</groupId>

View File

@ -75,4 +75,10 @@ public class DemographicsData {
this.geoLocation = geoLocation;
}
@Override
public String toString() {
return "{" + "age:" + age + "|gender:" + gender + "|geoLocation:" + geoLocation + '}';
}
}

View File

@ -151,6 +151,11 @@ public class UserData {
sessions.addAll(data.getSessions());
}
@Override
public String toString() {
return "{" + "accessing:" + accessing + "|uuid:" + uuid + "|location:" + location + "|locations:" + locations + "|ips:" + ips + "|nicknames:" + nicknames + "|lastNick:" + lastNick + "|registered:" + registered + "|lastPlayed:" + lastPlayed + "|playTime:" + playTime + "|loginTimes:" + loginTimes + "|timesKicked:" + timesKicked + "|lastGmSwapTime:" + lastGmSwapTime + "|lastGamemode:" + lastGamemode + "|gmTimes:" + gmTimes + "|isOp:" + isOp + "|isBanned:" + isBanned + "|demData:" + demData + "|mobKills:" + mobKills + "|playerKills:" + playerKills + "|deaths:" + deaths + "|name:" + name + "|isOnline:" + isOnline + "|currentSession:" + currentSession + "|sessions:" + sessions + '}';
}
/**
*
* @param ip

View File

@ -51,10 +51,10 @@ public class GamemodeTimesHandler {
long lastSwap = data.getLastGmSwapTime();
long playTime = data.getPlayTime();
GameMode oldGM = data.getLastGamemode();
if (oldGM != null) {
data.setGMTime(oldGM, times.get(oldGM) + (playTime - lastSwap));
}
data.setLastGamemode(newGM);
data.setLastGmSwapTime(playTime);
}

View File

@ -1,7 +1,7 @@
name: Plan
author: Rsl1122
main: main.java.com.djrapitops.plan.Plan
version: 2.8.3
version: 2.8.4
softdepend:
- OnTime