Skip to content

Commit

Permalink
Treat revoked bans as expired bans at user coloring
Browse files Browse the repository at this point in the history
(fixes #93)
  • Loading branch information
Brutus5000 committed Jul 25, 2019
1 parent 3809879 commit 0e25409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ protected void updateItem(PlayerFX item, boolean empty) {
tooltip.setText("Permanent ban");
setTextFill(Color.valueOf("#ca0000"));
} else if (item.getBans().stream()
.allMatch(banInfo -> banInfo.getBanStatus() == BanStatus.EXPIRED)) {
.allMatch(banInfo -> banInfo.getBanStatus() == BanStatus.EXPIRED || banInfo.getBanStatus() == BanStatus.DISABLED)) {
tooltip.setText("Expired ban");
setTextFill(Color.valueOf("#098700"));
} else {
Expand Down

0 comments on commit 0e25409

Please sign in to comment.