@Test public void removePlayer() { ChatCooldowns chatCooldowns = new ChatCooldowns(100); UUID uuid = UUID.randomUUID(); chatCooldowns.onChat(uuid); assertTrue(chatCooldowns.checkCooldown(uuid).isPresent()); chatCooldowns.removePlayer(uuid); assertFalse(chatCooldowns.checkCooldown(uuid).isPresent()); }
public void removePlayer(UUID player) { cooldowns.remove(player); }
ChatCooldowns { public void removePlayer(UUID player) { cooldowns.remove(player); } }
ChatCooldowns { public void removePlayer(UUID player) { cooldowns.remove(player); }  }
ChatCooldowns { public void removePlayer(UUID player) { cooldowns.remove(player); }  Optional<Integer> checkCooldown(UUID player); void removePlayer(UUID player); void onChat(UUID uuid); }
ChatCooldowns { public void removePlayer(UUID player) { cooldowns.remove(player); }  Optional<Integer> checkCooldown(UUID player); void removePlayer(UUID player); void onChat(UUID uuid);  }