ProxioDev / ValioBungee

Synchronize players data between BungeeCord / Velocity proxies
Eclipse Public License 1.0
191 stars 50 forks source link

The last online cache is delayed #97

Closed md5nake closed 2 months ago

md5nake commented 2 months ago

intended behavior

I expect RedisBungeeAPI.getRedisBungeeApi().getLastOnline(uuid) to return 0 when a player is online.

what the behavior you actually saw

It instead returns a timestamp, which also breaks RedisBungeeAPI.getRedisBungeeApi().isPlayerOnline(uuid).

Steps to reproduce

Run RedisBungeeAPI.getRedisBungeeApi().getLastOnline(uuid) whilst a player is online. It does not return 0.

Velocity or Bungeecord Versions

Velocity 3.3.0-SNAPSHOT

RedisBungee Version & Redis Version

Redis version 7.0.5 RedisBungee version: 0.12.1

Other

No response

ham1255 commented 2 months ago

i gotta admit that i forgot why i was caching the player last online

ham1255 commented 2 months ago

try download this release https://github.com/ProxioDev/RedisBungee/actions/runs/8989147227 should be 0.12.2 jar