Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H authored Jun 24, 2024
1 parent ada1b22 commit eb33e00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ To continously track a player, you can use the `track` method.
```ts
// Start tracking a player, with 5s delay, outputting the safest route.
const tracker = await Aurora.GPS.track("PlayerName", , Routes.SAFEST).catch(e => {
console.error("Error tracking player:", e)
console.error("Error fetching player: " + e)
})

// Listen for any errors that may occur.
tracker.on('error', e => {
console.error("An error occurred:", e);
console.error("An error occurred: " + e);
})

tracker.on('underground', (playerInfo) => {
Expand Down

0 comments on commit eb33e00

Please sign in to comment.