We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21187ed commit b7366b4Copy full SHA for b7366b4
Bukkit/src/main/java/net/avicus/compendium/countdown/CountdownManager.java
@@ -132,7 +132,7 @@ public void cancelAll() {
132
* @return if a countdown of the specified class is running
133
*/
134
public boolean isRunning(Class<? extends Countdown> clazz) {
135
- return this.countdowns.values().stream().anyMatch(countdown -> clazz.isInstance(clazz));
+ return this.countdowns.keySet().stream().anyMatch(clazz::isInstance);
136
}
137
138
/**
0 commit comments