Skip to content

Commit

Permalink
[Haro] Minor documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kakifrucht committed Oct 7, 2019
1 parent 8824e68 commit 634b16e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
Expand Up @@ -5,6 +5,7 @@

/**
* Player where only the name is known. Used when a player hasn't joined the server before.
* Objects can be created and discarded on demand, as this class does not store any state in memory.
*/
public class NameHaroPlayer extends YAMLHaroPlayer {

Expand Down
Expand Up @@ -41,11 +41,6 @@ public Player getBase() {
return player.getBase().getPlayer();
}

/**
* Check if player was initialized for the current game.
*
* @return true if player was initialized before for the current game, else false
*/
@Override
public boolean isInitialized() {
if (!isAdded()) {
Expand Down Expand Up @@ -74,9 +69,6 @@ public void setEliminated(boolean eliminated) {
getPlayerSection().set(IS_ELIMINATED_KEY, eliminated);
}

/**
* @return true if the player still has time left to play
*/
@Override
public boolean hasTimeLeft() {
return getTimeLeftSeconds() > 0;
Expand Down
Expand Up @@ -3,7 +3,7 @@
import org.bukkit.configuration.ConfigurationSection;

/**
* Extending haro player implementation is backed by a YAML {@link ConfigurationSection}.
* Implementations where data is backed by a YAML {@link ConfigurationSection}.
* Use {@link #getPlayerSection()} to access the players data section.
*/
abstract class YAMLHaroPlayer implements HaroPlayer {
Expand Down

0 comments on commit 634b16e

Please sign in to comment.