mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 01:27:42 +01:00
Update PlayerOnlineListener.java
This commit is contained in:
parent
2f78f5528e
commit
f1de7ad85e
@ -166,7 +166,7 @@ public class PlayerOnlineListener implements Listener {
|
||||
BukkitAFKListener.afkTracker.performedAction(playerUUID, time);
|
||||
|
||||
String world = player.getWorld().getName();
|
||||
String gm = Optional.of(player.getGameMode()).map(gameMode -> gameMode.name()).orElse("Unknown");
|
||||
String gm = Optional.ofNullable(player.getGameMode()).map(gameMode -> gameMode.name()).orElse("Unknown");
|
||||
|
||||
Database database = dbSystem.getDatabase();
|
||||
database.executeTransaction(new WorldNameStoreTransaction(serverUUID, world));
|
||||
|
Loading…
Reference in New Issue
Block a user