Add message to /mcscoreboard keep when a board is not shown

This commit is contained in:
riking
2013-10-25 11:39:24 -07:00
parent c6ca65f5c9
commit bd611ee11c
3 changed files with 11 additions and 4 deletions

View File

@ -371,14 +371,16 @@ public class ScoreboardManager {
}
}
public static boolean isBoardShown(String playerName) {
return PLAYER_SCOREBOARDS.get(playerName).isBoardShown();
}
public static void clearBoard(String playerName) {
PLAYER_SCOREBOARDS.get(playerName).tryRevertBoard();
}
public static void keepBoard(String playerName) {
if (Config.getInstance().getAllowKeepBoard()) {
PLAYER_SCOREBOARDS.get(playerName).cancelRevert();
}
PLAYER_SCOREBOARDS.get(playerName).cancelRevert();
}
public static void setRevertTimer(String playerName, int seconds) {