public class LoginHandling extends Object
Constructor and Description |
---|
LoginHandling() |
Modifier and Type | Method and Description |
---|---|
static void |
processLoginInfo(UserData data,
long time,
InetAddress ip,
boolean banned,
String nickname,
int loginTimes)
Processes the information of the Event and changes UserData object
accordingly.
|
static void |
updateGeolocation(InetAddress ip,
UserData data)
Updates the geolocation of the player.
|
public static void processLoginInfo(UserData data, long time, InetAddress ip, boolean banned, String nickname, int loginTimes)
data
- UserData of the player.time
- Epoch ms the event occurred.ip
- IP of the playerbanned
- Is the player bannednickname
- Nickname of the playerloginTimes
- amount the loginTimes should be incremented with.public static void updateGeolocation(InetAddress ip, UserData data)
ip
- InetAddress used for location.data
- UserData of the player.Copyright © 2017. All rights reserved.