You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getPlayerLocation, err = db.Prepare("SELECT current, previous, in_pre_lobby FROM player_locations WHERE uuid = $1")
if err != nil {
return err
}
setPlayerLocation, err = db.Prepare("INSERT INTO player_locations (uuid, current, previous, in_pre_lobby) VALUES ($1, $2, $3, $4) ON CONFLICT (uuid) DO UPDATE SET current = $2, previous = $3, in_pre_lobby = $4")
if err != nil {
return err
}
removePlayerLocation, err = db.Prepare("DELETE FROM player_locations WHERE uuid = $1")
if err != nil {
return err
}
getSharedPlayers, err = db.Prepare("SELECT uuid FROM player_locations WHERE current = (SELECT current FROM player_locations WHERE uuid = $1) AND uuid != $1")