debug msg
parent
9c9e2196dc
commit
4df911eb0a
|
@ -26,9 +26,6 @@ public class PlayerJoinListener implements Listener {
|
||||||
KrakatoaAPI.getInstance().getLogger().info("redis player: " + map.keySet());
|
KrakatoaAPI.getInstance().getLogger().info("redis player: " + map.keySet());
|
||||||
|
|
||||||
map.put("currentServer", String.valueOf(KrakatoaAPI.getInstance().getKraSocketClient().getSocketClient().getDest()));
|
map.put("currentServer", String.valueOf(KrakatoaAPI.getInstance().getKraSocketClient().getSocketClient().getDest()));
|
||||||
|
|
||||||
player.sendMessage(player.getLocation().getX() + " " + player.getLocation().getY() + " " + player.getLocation().getZ());
|
|
||||||
player.sendMessage(player.getLocation().getBlockX() + " " + player.getLocation().getBlockY() + " " + player.getLocation().getBlockZ());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,5 +34,11 @@ public class PlayerJoinListener implements Listener {
|
||||||
RMap<String, String> map = ProxySystem.getInstance().getRedisManager()
|
RMap<String, String> map = ProxySystem.getInstance().getRedisManager()
|
||||||
.getRedissonClient()
|
.getRedissonClient()
|
||||||
.getMap("player:" + uuid); */
|
.getMap("player:" + uuid); */
|
||||||
|
player.sendMessage(player.getLocation().getX() + " " + player.getLocation().getY() + " " + player.getLocation().getZ());
|
||||||
|
player.sendMessage(round(player.getLocation().getX()) + " " + round(player.getLocation().getY()) + " " + round(player.getLocation().getZ()));
|
||||||
|
}
|
||||||
|
|
||||||
|
public double round(double location) {
|
||||||
|
return Math.round(location * 100.0) / 100.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue