Skip to content

Commit

Permalink
added isSpectating to the API
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofpu committed Sep 19, 2021
1 parent fc7d0b3 commit 16589c8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions api/src/main/java/me/tofpu/speedbridge/api/game/GameService.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,23 @@ public interface GameService {
Result leave(final Player player);

/**
* This method is for checking if the player were playing or not.
* This method is for checking if the player are playing or not.
*
* @param player the player instance
* @param player the player you want to check against
*
* @return true if player is an island, otherwise false
*/
boolean isPlaying(final Player player);

/**
* This method is for checking if the player are spectating or not.
*
* @param player the player you want to check against
*
* @return true if player is spectating, otherwise false
*/
boolean isSpectating(final Player player);

/**
* This method is for adding a brand new timer
* to the list and have it start ticking.
Expand Down

0 comments on commit 16589c8

Please sign in to comment.