forked from ChomeNS/chomens-bot-java
fix
This commit is contained in:
parent
a948ef84e2
commit
ef5ec8dc27
1 changed files with 2 additions and 2 deletions
|
@ -31,8 +31,8 @@ public class PlayersPersistentDataPlugin extends PlayersPlugin.Listener {
|
||||||
public void playerJoined(PlayerEntry target) {
|
public void playerJoined(PlayerEntry target) {
|
||||||
final JsonObject object = new JsonObject();
|
final JsonObject object = new JsonObject();
|
||||||
object.addProperty("uuid", target.profile.getIdAsString());
|
object.addProperty("uuid", target.profile.getIdAsString());
|
||||||
object.add("lastSeen", new JsonObject());
|
if (!object.has("lastSeen")) object.add("lastSeen", new JsonObject());
|
||||||
object.add("ips", new JsonObject());
|
if (!object.has("ips")) object.add("ips", new JsonObject());
|
||||||
|
|
||||||
final CompletableFuture<String> future = bot.players.getPlayerIP(target);
|
final CompletableFuture<String> future = bot.players.getPlayerIP(target);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue